diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-01 13:31:20 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-01 13:31:20 +0100 |
commit | 5205be4b875c7fbc5d82818367e51ad49b667f72 (patch) | |
tree | ca4d107431f558e46a36a4b382ac89bf30585893 /src/plugins/weechat-plugin.h | |
parent | 33e733cb0adad382fde58764a2de29031c2df767 (diff) | |
download | weechat-5205be4b875c7fbc5d82818367e51ad49b667f72.zip |
Add function config_unset_plugin in API, fix return code of config_set_plugin
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r-- | src/plugins/weechat-plugin.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index feba82a5b..e3b0bb8e5 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -321,6 +321,8 @@ struct t_weechat_plugin const char *option_name); int (*config_set_plugin) (struct t_weechat_plugin *plugin, const char *option_name, const char *value); + int (*config_unset_plugin) (struct t_weechat_plugin *plugin, + const char *option_name); /* display */ const char *(*prefix) (const char *prefix); @@ -866,6 +868,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); #define weechat_config_set_plugin(__option, __value) \ weechat_plugin->config_set_plugin(weechat_plugin, __option, \ __value) +#define weechat_config_unset_plugin(__option) \ + weechat_plugin->config_unset_plugin(weechat_plugin, __option) /* display */ #define weechat_prefix(__prefix) \ |