diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-01-10 18:37:31 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-01-10 18:37:31 +0100 |
commit | 8a6729991214cbf02fe200940d7e0a5e39c90efc (patch) | |
tree | 39b6de492fc370d5236140de9e9fe44acfe55874 /src/plugins/weechat-plugin.h | |
parent | 938574feecf59ddd7df90e7266593dba5ac0e1c0 (diff) | |
download | weechat-8a6729991214cbf02fe200940d7e0a5e39c90efc.zip |
Added some missing functions in Perl plugin API
Diffstat (limited to 'src/plugins/weechat-plugin.h')
-rw-r--r-- | src/plugins/weechat-plugin.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index d9c778ebb..247d12cc6 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -261,8 +261,10 @@ struct t_weechat_plugin /* buffers */ struct t_gui_buffer *(*buffer_new) (struct t_weechat_plugin *plugin, char *category, char *name, - void (*callback_input_data)(struct t_gui_buffer *buffer, - char *data)); + int (*input_callback)(void *data, + struct t_gui_buffer *buffer, + char *input_data), + void *input_callback_data); struct t_gui_buffer *(*buffer_search) (char *category, char *name); void (*buffer_close) (struct t_gui_buffer *buffer, int switch_to_another); void *(*buffer_get) (struct t_gui_buffer *buffer, char *property); @@ -532,9 +534,10 @@ struct t_weechat_plugin weechat_plugin->unhook_all_plugin(weechat_plugin) /* buffers */ -#define weechat_buffer_new(__category, __name, __callback_input_data) \ +#define weechat_buffer_new(__category, __name, __input_callback, \ + __input_callback_data) \ weechat_plugin->buffer_new(weechat_plugin, __category, __name, \ - __callback_input_data) + __input_callback, __input_callback_data) #define weechat_buffer_search(__category, __name) \ weechat_plugin->buffer_search(__category, __name) #define weechat_current_buffer \ |