diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-22 23:36:12 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-03-22 23:36:12 +0100 |
commit | 61ca92972886cd7a9bc301ae7e23d6dde74920bc (patch) | |
tree | 7b69905a86b095f4fe6dffaa5a86ae6a0725c125 /src/core/wee-hook.h | |
parent | 8c4dc57d8e5a6b1f9f239bdcbf30dd07480993be (diff) | |
download | weechat-61ca92972886cd7a9bc301ae7e23d6dde74920bc.zip |
Added tags for lines and custom filtering by tags or regex (task #7674), fixed many memory leaks
Diffstat (limited to 'src/core/wee-hook.h')
-rw-r--r-- | src/core/wee-hook.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/core/wee-hook.h b/src/core/wee-hook.h index 8cdb7946e..a287be2fa 100644 --- a/src/core/wee-hook.h +++ b/src/core/wee-hook.h @@ -104,12 +104,16 @@ struct t_hook_fd }; typedef int (t_hook_callback_print)(void *data, struct t_gui_buffer *buffer, - time_t date, char *prefix, char *message); + time_t date, int tags_count, + char **tags, char *prefix, + char *message); struct t_hook_print { t_hook_callback_print *callback; /* print callback */ struct t_gui_buffer *buffer; /* buffer selected (NULL = all) */ + int tags_count; /* number of tags selected */ + char **tags_array; /* tags selected (NULL = any) */ char *message; /* part of message (NULL/empty = all)*/ int strip_colors; /* strip colors in msg for callback? */ }; @@ -120,7 +124,8 @@ typedef int (t_hook_callback_signal)(void *data, char *signal, struct t_hook_signal { t_hook_callback_signal *callback; /* signal callback */ - char *signal; /* signal selected ("*" = any signal)*/ + char *signal; /* signal selected (may begin or end */ + /* with "*", "*" == any signal) */ }; typedef int (t_hook_callback_config)(void *data, char *type, char *option, @@ -190,11 +195,14 @@ extern void hook_fd_exec (fd_set *read_fds, fd_set *write_fds, fd_set *exception_fds); extern struct t_hook *hook_print (struct t_weechat_plugin *plugin, struct t_gui_buffer *buffer, - char *message, int strip_colors, + char *tags, char *message, + int strip_colors, t_hook_callback_print *callback, void *callback_data); extern void hook_print_exec (struct t_gui_buffer *buffer, - time_t date, char *prefix, char *message); + time_t date, int tags_count, + char **tags_array, char *prefix, + char *message); extern struct t_hook *hook_signal (struct t_weechat_plugin *plugin, char *signal, t_hook_callback_signal *callback, |