From 98aa62f637d4ced952a168cb19f8d2fb038c6a16 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Tue, 9 Jul 2013 22:04:07 +0100 Subject: Removed two dummy functions in plugin interface. --- src/common/plugin.c | 2 -- src/common/plugin.h | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/common') diff --git a/src/common/plugin.c b/src/common/plugin.c index 90c6bbc4..abdd6ea1 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -302,8 +302,6 @@ plugin_add (session *sess, char *filename, void *handle, void *init_func, pl->hexchat_hook_print_attrs = hexchat_hook_print_attrs; /* incase new plugins are loaded on older HexChat */ - pl->hexchat_dummy4 = hexchat_dummy; - pl->hexchat_dummy3 = hexchat_dummy; pl->hexchat_dummy2 = hexchat_dummy; pl->hexchat_dummy1 = hexchat_dummy; diff --git a/src/common/plugin.h b/src/common/plugin.h index d299e5af..32072b7d 100644 --- a/src/common/plugin.h +++ b/src/common/plugin.h @@ -144,10 +144,12 @@ struct _hexchat_plugin int (*callback) (char *word[], hexchat_event_attrs *attrs, void *user_data), void *userdata); - void *(*hexchat_dummy4) (hexchat_plugin *ph); - void *(*hexchat_dummy3) (hexchat_plugin *ph); + + /* If you add new functions here you should remove the corresponding number + * of dummy functions bellow. */ void *(*hexchat_dummy2) (hexchat_plugin *ph); void *(*hexchat_dummy1) (hexchat_plugin *ph); + /* PRIVATE FIELDS! */ void *handle; /* from dlopen */ char *filename; /* loaded from */ -- cgit 1.4.1