diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-01-02 16:32:54 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-01-02 16:32:54 +0100 |
commit | 44e16c05110a19fd8c622d3aeb46179d05d8ec69 (patch) | |
tree | 6804c2803ad8d51a72150270040427484ba8993b /src/plugins/weechat-plugin.h | |
parent | fcfe8544410de238f6329439b2dadb6cc6a8192a (diff) | |
download | weechat-44e16c05110a19fd8c622d3aeb46179d05d8ec69.zip |
Add function "hashtable_set_pointer" in plugin API
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r-- | src/plugins/weechat-plugin.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index 565e9cd1d..8f4550492 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 "20101220-01" +#define WEECHAT_PLUGIN_API_VERSION "20110102-01" /* macros for defining plugin infos */ #define WEECHAT_PLUGIN_NAME(__name) \ @@ -281,6 +281,9 @@ struct t_weechat_plugin const char *property); const char *(*hashtable_get_string) (struct t_hashtable *hashtable, const char *property); + void (*hashtable_set_pointer) (struct t_hashtable *hashtable, + const char *property, + void *pointer); int (*hashtable_add_to_infolist) (struct t_hashtable *hashtable, struct t_infolist_item *infolist_item, const char *prefix); @@ -950,6 +953,10 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); weechat_plugin->hashtable_get_integer(__hashtable, __property) #define weechat_hashtable_get_string(__hashtable, __property) \ weechat_plugin->hashtable_get_string(__hashtable, __property) +#define weechat_hashtable_set_pointer(__hashtable, __property, \ + __pointer) \ + weechat_plugin->hashtable_set_pointer(__hashtable, __property, \ + __pointer) #define weechat_hashtable_add_to_infolist(__hashtable, __infolist_item, \ __prefix) \ weechat_plugin->hashtable_add_to_infolist(__hashtable, \ |