From 4545cc88b16b9f90f1f1076f16c5f68a1eb0f13d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 21 Jan 2018 20:35:17 +0100 Subject: doc: rename callback name in example of function hook_process (plugin API reference) --- doc/fr/weechat_plugin_api.fr.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/fr') diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index cba0c8041..4265e1a2d 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -8690,8 +8690,8 @@ struct t_hook *my_process_hook = weechat_hook_process ("ls", 5000, /* exemple avec la fonction de rappel appelée dans le processus fils */ 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) { @@ -8732,7 +8732,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) : -- cgit v1.2.3