diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-07-24 15:14:44 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-07-24 15:14:44 +0200 |
commit | 5563924363096d5652a58a386dcd47b0b9e255f4 (patch) | |
tree | 3865dce39b9037dde8931679f4e696bd4849a555 /doc/en | |
parent | 5139fdcf2a3bb720184deecd121adae561bf4407 (diff) | |
download | weechat-5563924363096d5652a58a386dcd47b0b9e255f4.zip |
Fix compilation on OpenBSD: rename variables stdout/stderr (patch #6874 from zepard)
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index 8705b0327..c135a1b59 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -4046,8 +4046,8 @@ struct t_hook *weechat_hook_process (const char *command, int (*callback)(void *data, const char *command, int return_code, - const char *stdout, - const char *stderr), + const char *out, + const char *err), void *callback_data); ---------------------------------------- @@ -4065,8 +4065,8 @@ Arguments: *** '>= 0': child command return code *** '< 0': 'WEECHAT_HOOK_PROCESS_OK_RUNNING' (data available, but child still running) or 'WEECHAT_HOOK_PROCESS_ERROR' (error when launching command) -** 'stdout': standard output of command -** 'stderr': error output of command +** 'out': standard output of command (stdout) +** 'err': error output of command (stderr) * 'callback_data': pointer given to callback when it is called by WeeChat Return value: @@ -4079,7 +4079,7 @@ Example: ---------------------------------------- int my_process_cb (void *data, const char *command, int return_code, - const char *stdout, const char *stderr) + const char *out, const char *err) { if (return_code == WEECHAT_HOOK_PROCESS_ERROR) { @@ -4092,14 +4092,14 @@ my_process_cb (void *data, const char *command, int return_code, weechat_printf (NULL, "return_code = %d", return_code); } - if (stdout) + if (out) { - weechat_printf (NULL, "stdout: %s", stdout); + weechat_printf (NULL, "stdout: %s", out); } - if (stderr) + if (err) { - weechat_printf (NULL, "stderr: %s", stderr); + weechat_printf (NULL, "stderr: %s", err); } return WEECHAT_RC_OK; |