summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/en/weechat_plugin_api.en.adoc6
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc6
-rw-r--r--doc/it/weechat_plugin_api.it.adoc6
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc6
4 files changed, 12 insertions, 12 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):
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) :
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):
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index a642c727a..d9ff23a8b 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -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) での使用例: