diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-12-06 22:57:21 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-12-06 22:57:21 +0100 |
commit | 00a3f990b3e512a7dc14343dd522a3a8497c4762 (patch) | |
tree | 4ab71d4301254e1f8dbf62355a86c2e2ec926eba /src/plugins | |
parent | 23c70b013bef27399911f14dae918afc702a3937 (diff) | |
download | weechat-00a3f990b3e512a7dc14343dd522a3a8497c4762.zip |
api: add new function nicklist_get_next_item
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/plugin.c | 1 | ||||
-rw-r--r-- | src/plugins/weechat-plugin.h | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index fe9b13e0c..5242f3293 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -681,6 +681,7 @@ plugin_load (const char *filename, int argc, char **argv) new_plugin->nicklist_remove_group = &gui_nicklist_remove_group; new_plugin->nicklist_remove_nick = &gui_nicklist_remove_nick; new_plugin->nicklist_remove_all = &gui_nicklist_remove_all; + new_plugin->nicklist_get_next_item = &gui_nicklist_get_next_item; new_plugin->nicklist_group_get_integer = &gui_nicklist_group_get_integer; new_plugin->nicklist_group_get_string = &gui_nicklist_group_get_string; new_plugin->nicklist_group_get_pointer = &gui_nicklist_group_get_pointer; diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index 8cbc1ae9b..32ac0be96 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -46,7 +46,7 @@ struct timeval; */ /* API version (used to check that plugin has same API and can be loaded) */ -#define WEECHAT_PLUGIN_API_VERSION "20111125-01" +#define WEECHAT_PLUGIN_API_VERSION "20111206-01" /* macros for defining plugin infos */ #define WEECHAT_PLUGIN_NAME(__name) \ @@ -694,6 +694,9 @@ struct t_weechat_plugin void (*nicklist_remove_nick) (struct t_gui_buffer *buffer, struct t_gui_nick *nick); void (*nicklist_remove_all) (struct t_gui_buffer *buffer); + void (*nicklist_get_next_item) (struct t_gui_buffer *buffer, + struct t_gui_nick_group **group, + struct t_gui_nick **nick); int (*nicklist_group_get_integer) (struct t_gui_buffer *buffer, struct t_gui_nick_group *group, const char *property); @@ -1416,6 +1419,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); weechat_plugin->nicklist_remove_nick(__buffer, __nick) #define weechat_nicklist_remove_all(__buffer) \ weechat_plugin->nicklist_remove_all(__buffer) +#define weechat_nicklist_get_next_item(__buffer, __group, __nick) \ + weechat_plugin->nicklist_get_next_item(__buffer, __group, __nick) #define weechat_nicklist_group_get_integer(__buffer, __group, \ __property) \ weechat_plugin->nicklist_group_get_integer(__buffer, __group, \ |