summaryrefslogtreecommitdiff
path: root/src/plugins/weechat-plugin.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-03-11 18:39:37 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-03-11 18:39:37 +0100
commitc71e2cad382544e01855ad668a55acf871c484c1 (patch)
tree909de9e11417ed34d6e7dcac07b2a74e91b9a3a0 /src/plugins/weechat-plugin.h
parentadae98e94d58ebc29dd02d9404dfc7593716baa8 (diff)
downloadweechat-c71e2cad382544e01855ad668a55acf871c484c1.zip
Add function "buffer_match_list" in plugin API
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r--src/plugins/weechat-plugin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index c5a8433d1..92b6c40b2 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 "20110302-01"
+#define WEECHAT_PLUGIN_API_VERSION "20110311-01"
/* macros for defining plugin infos */
#define WEECHAT_PLUGIN_NAME(__name) \
@@ -597,6 +597,7 @@ struct t_weechat_plugin
const char *property, void *pointer);
char *(*buffer_string_replace_local_var) (struct t_gui_buffer *buffer,
const char *string);
+ int (*buffer_match_list) (struct t_gui_buffer *buffer, const char *string);
/* windows */
int (*window_get_integer) (struct t_gui_window *window,
@@ -1255,6 +1256,8 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
weechat_plugin->buffer_set_pointer(__buffer, __property, __pointer)
#define weechat_buffer_string_replace_local_var(__buffer, __string) \
weechat_plugin->buffer_string_replace_local_var(__buffer, __string)
+#define weechat_buffer_match_list(__buffer, __string) \
+ weechat_plugin->buffer_match_list(__buffer, __string)
/* windows */
#define weechat_window_get_integer(__window, __property) \