1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

Added input_data callback argument to gui_buffer_new() function

This commit is contained in:
Sebastien Helleu
2007-11-26 14:27:53 +00:00
parent 7cc78f4172
commit f5d026a775
8 changed files with 35 additions and 19 deletions
+3 -2
View File
@@ -554,10 +554,11 @@ plugin_api_unhook_all (struct t_weechat_plugin *plugin)
struct t_gui_buffer *
plugin_api_buffer_new (struct t_weechat_plugin *plugin, char *category,
char *name)
char *name,
void (*input_data_cb)(struct t_gui_buffer *, char *))
{
if (plugin && name && name[0])
return gui_buffer_new (plugin, category, name);
return gui_buffer_new (plugin, category, name, input_data_cb);
return NULL;
}