diff options
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.adoc')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
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) での使用例: |