diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-07-09 22:04:07 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-07-09 22:04:07 +0100 |
commit | 98aa62f637d4ced952a168cb19f8d2fb038c6a16 (patch) | |
tree | f420b31a5a859c3a30785b2edb0a8bb6627ba4ee /src/common | |
parent | 798db7368a2df832924be1f28c9720ae6bc60236 (diff) |
Removed two dummy functions in plugin interface.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/plugin.c | 2 | ||||
-rw-r--r-- | src/common/plugin.h | 6 |
2 files changed, 4 insertions, 4 deletions
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 */ |