doc: rename callback name in example of function hook_process (plugin API reference)

v2.8-utf8proc
Sébastien Helleu 2018-01-21 20:35:17 +01:00
parent d1179460cf
commit 4545cc88b1
4 changed files with 12 additions and 12 deletions

View File

@ -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):

View File

@ -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) :

View File

@ -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):

View File

@ -8532,8 +8532,8 @@ struct t_hook *my_process_hook = weechat_hook_process ("ls", 5000,
/* 子プロセスからコールバックを呼び出す例 */
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)
{
@ -8574,7 +8574,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);
----
スクリプト (Python) での使用例: