diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-29 18:40:25 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-10-29 18:40:25 +0200 |
commit | 32db2eac25e01ee3cc65089df50c38214ef75238 (patch) | |
tree | 4b0f606b403cb50ca21721c52f46b1df6dd30789 /src/plugins/weechat-plugin.h | |
parent | 488de9895bb3da0ed22c6704084fe629c29a31a0 (diff) | |
download | weechat-32db2eac25e01ee3cc65089df50c38214ef75238.zip |
Add new functions in plugin API to get/set nicks/groups properties in nicklist
8 new functions added:
- nicklist_group_get_integer
- nicklist_group_get_string
- nicklist_group_get_pointer
- nicklist_group_set
- nicklist_nick_get_integer
- nicklist_nick_get_string
- nicklist_nick_get_pointer
- nicklist_nick_set
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r-- | src/plugins/weechat-plugin.h | 55 |
1 files changed, 54 insertions, 1 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index 68db356fe..3ae2cf881 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -45,7 +45,7 @@ struct timeval; */ /* API version (used to check that plugin has same API and can be loaded) */ -#define WEECHAT_PLUGIN_API_VERSION "20101023-01" +#define WEECHAT_PLUGIN_API_VERSION "20101029-01" /* macros for defining plugin infos */ #define WEECHAT_PLUGIN_NAME(__name) \ @@ -617,6 +617,30 @@ 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); + int (*nicklist_group_get_integer) (struct t_gui_buffer *buffer, + struct t_gui_nick_group *group, + const char *property); + const char *(*nicklist_group_get_string) (struct t_gui_buffer *buffer, + struct t_gui_nick_group *group, + const char *property); + void *(*nicklist_group_get_pointer) (struct t_gui_buffer *buffer, + struct t_gui_nick_group *group, + const char *property); + void (*nicklist_group_set) (struct t_gui_buffer *buffer, + struct t_gui_nick_group *group, + const char *property, const char *value); + int (*nicklist_nick_get_integer) (struct t_gui_buffer *buffer, + struct t_gui_nick *nick, + const char *property); + const char *(*nicklist_nick_get_string) (struct t_gui_buffer *buffer, + struct t_gui_nick *nick, + const char *property); + void *(*nicklist_nick_get_pointer) (struct t_gui_buffer *buffer, + struct t_gui_nick *nick, + const char *property); + void (*nicklist_nick_set) (struct t_gui_buffer *buffer, + struct t_gui_nick *nick, + const char *property, const char *value); /* bars */ struct t_gui_bar_item *(*bar_item_search) (const char *name); @@ -1239,6 +1263,35 @@ 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_group_get_integer(__buffer, __group, \ + __property) \ + weechat_plugin->nicklist_group_get_integer(__buffer, __group, \ + __property) +#define weechat_nicklist_group_get_string(__buffer, __group, \ + __property) \ + weechat_plugin->nicklist_group_get_string(__buffer, __group, \ + __property) +#define weechat_nicklist_group_get_pointer(__buffer, __group, \ + __property) \ + weechat_plugin->nicklist_group_get_pointer(__buffer, __group, \ + __property) +#define weechat_nicklist_group_set(__buffer, __group, __property, \ + __value) \ + weechat_plugin->nicklist_group_set(__buffer, __group, __property, \ + __value) +#define weechat_nicklist_nick_get_integer(__buffer, __nick, __property) \ + weechat_plugin->nicklist_nick_get_integer(__buffer, __nick, \ + __property) +#define weechat_nicklist_nick_get_string(__buffer, __nick, __property) \ + weechat_plugin->nicklist_nick_get_string(__buffer, __nick, \ + __property) +#define weechat_nicklist_nick_get_pointer(__buffer, __nick, __property) \ + weechat_plugin->nicklist_nick_get_pointer(__buffer, __nick, \ + __property) +#define weechat_nicklist_nick_set(__buffer, __nick, __property, \ + __value) \ + weechat_plugin->nicklist_nick_set(__buffer, __nick, __property, \ + __value) /* bars */ #define weechat_bar_item_search(__name) \ |