diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-11-26 14:27:53 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-11-26 14:27:53 +0000 |
commit | f5d026a775cc940c16d23ee9559140f4606d8aff (patch) | |
tree | 7809ee4bd647a8985692ad781e638c431806f144 /src/gui/gui-buffer.c | |
parent | 7cc78f4172631fc67d10045518dc6c5ac63ac66a (diff) | |
download | weechat-f5d026a775cc940c16d23ee9559140f4606d8aff.zip |
Added input_data callback argument to gui_buffer_new() function
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r-- | src/gui/gui-buffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 91bd41522..f4719d572 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -63,7 +63,8 @@ struct t_gui_buffer *gui_buffer_before_raw_data = NULL; /* buf. before raw */ */ struct t_gui_buffer * -gui_buffer_new (void *plugin, char *category, char *name) +gui_buffer_new (void *plugin, char *category, char *name, + void (*input_data_cb)(struct t_gui_buffer *, char *)) { struct t_gui_buffer *new_buffer; struct t_gui_completion *new_completion; @@ -118,7 +119,7 @@ gui_buffer_new (void *plugin, char *category, char *name) /* input */ new_buffer->input = 1; - new_buffer->input_data_cb = NULL; + new_buffer->input_data_cb = input_data_cb; new_buffer->input_nick = NULL; new_buffer->input_buffer_alloc = GUI_BUFFER_INPUT_BLOCK_SIZE; new_buffer->input_buffer = (char *) malloc (GUI_BUFFER_INPUT_BLOCK_SIZE); |