diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-08-30 00:25:56 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-08-30 00:25:56 +0200 |
commit | 0839b359f9ad6fd88ef94e6ca4eac54c53156c68 (patch) | |
tree | 4580ffa94b96c331e9fb6c90a92281ef19eddc9f /src/plugins/scripts/script-api.h | |
parent | eb57354984dd1394f8b50911cee58180bbff2e88 (diff) | |
download | weechat-0839b359f9ad6fd88ef94e6ca4eac54c53156c68.zip |
Add new hooks (info and infolist), IRC plugin now return infos and infolists
Diffstat (limited to 'src/plugins/scripts/script-api.h')
-rw-r--r-- | src/plugins/scripts/script-api.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/scripts/script-api.h b/src/plugins/scripts/script-api.h index 573fab44f..f437275b5 100644 --- a/src/plugins/scripts/script-api.h +++ b/src/plugins/scripts/script-api.h @@ -150,6 +150,21 @@ extern struct t_hook *script_api_hook_modifier (struct t_weechat_plugin *weechat const char *modifier_data, const char *string), const char *function); +extern struct t_hook *script_api_hook_info (struct t_weechat_plugin *weechat_plugin, + struct t_plugin_script *script, + const char *info_name, + char *(*callback)(void *data, + const char *info_name, + const char *arguments), + const char *function); +extern struct t_hook *script_api_hook_infolist (struct t_weechat_plugin *weechat_plugin, + struct t_plugin_script *script, + const char *infolist_name, + struct t_infolist *(*callback)(void *data, + const char *infolist_name, + void *pointer, + const char *arguments), + const char *function); extern void script_api_unhook (struct t_weechat_plugin *weechat_plugin, struct t_plugin_script *script, struct t_hook *hook); |