summaryrefslogtreecommitdiff
path: root/src/plugins/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scripts')
-rw-r--r--src/plugins/scripts/lua/weechat-lua-api.c6
-rw-r--r--src/plugins/scripts/perl/weechat-perl-api.c6
-rw-r--r--src/plugins/scripts/python/weechat-python-api.c6
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby-api.c6
-rw-r--r--src/plugins/scripts/script-api.c4
-rw-r--r--src/plugins/scripts/script-api.h4
-rw-r--r--src/plugins/scripts/tcl/weechat-tcl-api.c6
7 files changed, 19 insertions, 19 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua-api.c b/src/plugins/scripts/lua/weechat-lua-api.c
index 6669427c8..c49c1fe22 100644
--- a/src/plugins/scripts/lua/weechat-lua-api.c
+++ b/src/plugins/scripts/lua/weechat-lua-api.c
@@ -3432,7 +3432,7 @@ weechat_lua_api_hook_fd (lua_State *L)
int
weechat_lua_api_hook_process_cb (void *data,
const char *command, int return_code,
- const char *stdout, const char *stderr)
+ const char *out, const char *err)
{
struct t_script_callback *script_callback;
char *lua_argv[6], str_rc[32], empty_arg[1] = { '\0' };
@@ -3447,8 +3447,8 @@ weechat_lua_api_hook_process_cb (void *data,
lua_argv[0] = (script_callback->data) ? script_callback->data : empty_arg;
lua_argv[1] = (command) ? (char *)command : empty_arg;
lua_argv[2] = str_rc;
- lua_argv[3] = (stdout) ? (char *)stdout : empty_arg;
- lua_argv[4] = (stderr) ? (char *)stderr : empty_arg;
+ lua_argv[3] = (out) ? (char *)out : empty_arg;
+ lua_argv[4] = (err) ? (char *)err : empty_arg;
lua_argv[5] = NULL;
rc = (int *) weechat_lua_exec (script_callback->script,
diff --git a/src/plugins/scripts/perl/weechat-perl-api.c b/src/plugins/scripts/perl/weechat-perl-api.c
index cfe30e4b5..ec150241b 100644
--- a/src/plugins/scripts/perl/weechat-perl-api.c
+++ b/src/plugins/scripts/perl/weechat-perl-api.c
@@ -2886,7 +2886,7 @@ static XS (XS_weechat_api_hook_fd)
int
weechat_perl_api_hook_process_cb (void *data,
const char *command, int return_code,
- const char *stdout, const char *stderr)
+ const char *out, const char *err)
{
struct t_script_callback *script_callback;
char *perl_argv[6], str_rc[32], empty_arg[1] = { '\0' };
@@ -2901,8 +2901,8 @@ weechat_perl_api_hook_process_cb (void *data,
perl_argv[0] = (script_callback->data) ? script_callback->data : empty_arg;
perl_argv[1] = (command) ? (char *)command : empty_arg;
perl_argv[2] = str_rc;
- perl_argv[3] = (stdout) ? (char *)stdout : empty_arg;
- perl_argv[4] = (stderr) ? (char *)stderr : empty_arg;
+ perl_argv[3] = (out) ? (char *)out : empty_arg;
+ perl_argv[4] = (err) ? (char *)err : empty_arg;
perl_argv[5] = NULL;
rc = (int *) weechat_perl_exec (script_callback->script,
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c
index 303411533..839d4c903 100644
--- a/src/plugins/scripts/python/weechat-python-api.c
+++ b/src/plugins/scripts/python/weechat-python-api.c
@@ -3050,7 +3050,7 @@ weechat_python_api_hook_fd (PyObject *self, PyObject *args)
int
weechat_python_api_hook_process_cb (void *data,
const char *command, int return_code,
- const char *stdout, const char *stderr)
+ const char *out, const char *err)
{
struct t_script_callback *script_callback;
char *python_argv[6], str_rc[32], empty_arg[1] = { '\0' };
@@ -3065,8 +3065,8 @@ weechat_python_api_hook_process_cb (void *data,
python_argv[0] = (script_callback->data) ? script_callback->data : empty_arg;
python_argv[1] = (command) ? (char *)command : empty_arg;
python_argv[2] = str_rc;
- python_argv[3] = (stdout) ? (char *)stdout : empty_arg;
- python_argv[4] = (stderr) ? (char *)stderr : empty_arg;
+ python_argv[3] = (out) ? (char *)out : empty_arg;
+ python_argv[4] = (err) ? (char *)err : empty_arg;
python_argv[5] = NULL;
rc = (int *) weechat_python_exec (script_callback->script,
diff --git a/src/plugins/scripts/ruby/weechat-ruby-api.c b/src/plugins/scripts/ruby/weechat-ruby-api.c
index 5eb325a1f..81e71274f 100644
--- a/src/plugins/scripts/ruby/weechat-ruby-api.c
+++ b/src/plugins/scripts/ruby/weechat-ruby-api.c
@@ -3524,7 +3524,7 @@ weechat_ruby_api_hook_fd (VALUE class, VALUE fd, VALUE read, VALUE write,
int
weechat_ruby_api_hook_process_cb (void *data,
const char *command, int return_code,
- const char *stdout, const char *stderr)
+ const char *out, const char *err)
{
struct t_script_callback *script_callback;
char *ruby_argv[6], str_rc[32], empty_arg[1] = { '\0' };
@@ -3539,8 +3539,8 @@ weechat_ruby_api_hook_process_cb (void *data,
ruby_argv[0] = (script_callback->data) ? script_callback->data : empty_arg;
ruby_argv[1] = (command) ? (char *)command : empty_arg;
ruby_argv[2] = str_rc;
- ruby_argv[3] = (stdout) ? (char *)stdout : empty_arg;
- ruby_argv[4] = (stderr) ? (char *)stderr : empty_arg;
+ ruby_argv[3] = (out) ? (char *)out : empty_arg;
+ ruby_argv[4] = (err) ? (char *)err : empty_arg;
ruby_argv[5] = NULL;
rc = (int *) weechat_ruby_exec (script_callback->script,
diff --git a/src/plugins/scripts/script-api.c b/src/plugins/scripts/script-api.c
index 2eee67105..d9b25f0f6 100644
--- a/src/plugins/scripts/script-api.c
+++ b/src/plugins/scripts/script-api.c
@@ -887,8 +887,8 @@ script_api_hook_process (struct t_weechat_plugin *weechat_plugin,
int (*callback)(void *data,
const char *command,
int return_code,
- const char *stdout,
- const char *stderr),
+ const char *out,
+ const char *err),
const char *function,
const char *data)
{
diff --git a/src/plugins/scripts/script-api.h b/src/plugins/scripts/script-api.h
index 8d4622c56..2e5445100 100644
--- a/src/plugins/scripts/script-api.h
+++ b/src/plugins/scripts/script-api.h
@@ -158,8 +158,8 @@ extern struct t_hook *script_api_hook_process (struct t_weechat_plugin *weechat_
int (*callback)(void *data,
const char *command,
int return_code,
- const char *stdout,
- const char *stderr),
+ const char *out,
+ const char *err),
const char *function,
const char *data);
extern struct t_hook *script_api_hook_connect (struct t_weechat_plugin *weechat_plugin,
diff --git a/src/plugins/scripts/tcl/weechat-tcl-api.c b/src/plugins/scripts/tcl/weechat-tcl-api.c
index 6ec6742c2..f7acb8ae0 100644
--- a/src/plugins/scripts/tcl/weechat-tcl-api.c
+++ b/src/plugins/scripts/tcl/weechat-tcl-api.c
@@ -3284,7 +3284,7 @@ weechat_tcl_api_hook_fd (ClientData clientData, Tcl_Interp *interp,
int
weechat_tcl_api_hook_process_cb (void *data,
const char *command, int return_code,
- const char *stdout, const char *stderr)
+ const char *out, const char *err)
{
struct t_script_callback *script_callback;
char *tcl_argv[6], str_rc[32], empty_arg[1] = { '\0' };
@@ -3299,8 +3299,8 @@ weechat_tcl_api_hook_process_cb (void *data,
tcl_argv[0] = (script_callback->data) ? script_callback->data : empty_arg;
tcl_argv[1] = (command) ? (char *)command : empty_arg;
tcl_argv[2] = str_rc;
- tcl_argv[3] = (stdout) ? (char *)stdout : empty_arg;
- tcl_argv[4] = (stderr) ? (char *)stderr : empty_arg;
+ tcl_argv[3] = (out) ? (char *)out : empty_arg;
+ tcl_argv[4] = (err) ? (char *)err : empty_arg;
tcl_argv[5] = NULL;
rc = (int *) weechat_tcl_exec (script_callback->script,