diff options
Diffstat (limited to 'doc/it/weechat_plugin_api.it.adoc')
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index f2d5cb166..a105cd446 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -8794,8 +8794,8 @@ struct t_hook *my_process_hook = weechat_hook_process ("ls", 5000, /* example with the callback called in the child process */ int -my_process_cb (const void *pointer, void *data, const char *command, - int return_code, const char *out, const char *err) +my_process_func_cb (const void *pointer, void *data, const char *command, + int return_code, const char *out, const char *err) { if (return_code == WEECHAT_HOOK_PROCESS_CHILD) { @@ -8836,7 +8836,7 @@ my_process_cb (const void *pointer, void *data, const char *command, } struct t_hook *my_process_hook = weechat_hook_process ("func:get_status", 5000, - &my_process_cb, NULL, NULL); + &my_process_func_cb, NULL, NULL); ---- Script (Python): |