summaryrefslogtreecommitdiff
path: root/src/plugins/weechat-plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r--src/plugins/weechat-plugin.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index d94b6748b..be24519d0 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/weechat-plugin.h
@@ -106,7 +106,8 @@ struct t_weechat_plugin
/* buffers */
struct t_gui_buffer *(*buffer_new) (struct t_weechat_plugin *,
- char *, char *);
+ char *, char *,
+ void (*)(struct t_gui_buffer *, char *));
struct t_gui_buffer *(*buffer_search) (struct t_weechat_plugin *,
char *, char *);
void (*buffer_close) (struct t_weechat_plugin *, void *);
@@ -210,8 +211,9 @@ struct t_weechat_plugin
#define weechat_unhook_all() \
weechat_plugin->unhook(weechat_plugin)
-#define weechat_buffer_new(category, name) \
- weechat_plugin->buffer_new(weechat_plugin, category, name)
+#define weechat_buffer_new(category, name, input_data_cb) \
+ weechat_plugin->buffer_new(weechat_plugin, category, name, \
+ input_data_cb)
#define weechat_buffer_search(category, name) \
weechat_plugin->buffer_search(weechat_plugin, category, name)
#define weechat_current_buffer \