diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-21 20:35:17 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-21 20:36:24 +0100 |
commit | 4545cc88b16b9f90f1f1076f16c5f68a1eb0f13d (patch) | |
tree | b357fbf5004350cba0f31c085b08d74760aacd7d /doc/en | |
parent | d1179460cf238883c973159944560065cb2076b0 (diff) | |
download | weechat-4545cc88b16b9f90f1f1076f16c5f68a1eb0f13d.zip |
doc: rename callback name in example of function hook_process (plugin API reference)
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 5425524c4..4a14ceaa6 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -8528,8 +8528,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) { @@ -8570,7 +8570,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): |