mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
api: add new function nicklist_get_next_item
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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, \
|
||||
|
||||
Reference in New Issue
Block a user