summaryrefslogtreecommitdiff
path: root/doc/fr
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-01-21 20:35:17 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-01-21 20:36:24 +0100
commit4545cc88b16b9f90f1f1076f16c5f68a1eb0f13d (patch)
treeb357fbf5004350cba0f31c085b08d74760aacd7d /doc/fr
parentd1179460cf238883c973159944560065cb2076b0 (diff)
downloadweechat-4545cc88b16b9f90f1f1076f16c5f68a1eb0f13d.zip
doc: rename callback name in example of function hook_process (plugin API reference)
Diffstat (limited to 'doc/fr')
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc6
1 files changed, 3 insertions, 3 deletions
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) :