From ad6a5a6c70a288c43f5c643140d244d23151754e Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 4 Jan 2006 20:28:12 +0000 Subject: [PATCH] The beginnings of an effort to make ecore_exe fork'n'pipe more consistant with ecore_con and ecore_ipc. Probably best to have all IPC methods work the same way. SVN revision: 19527 --- legacy/ecore/src/lib/ecore/Ecore.h | 2 +- legacy/ecore/src/lib/ecore/ecore_exe.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/legacy/ecore/src/lib/ecore/Ecore.h b/legacy/ecore/src/lib/ecore/Ecore.h index 201829fec1..ffa830688a 100644 --- a/legacy/ecore/src/lib/ecore/Ecore.h +++ b/legacy/ecore/src/lib/ecore/Ecore.h @@ -209,7 +209,7 @@ extern "C" { #ifndef WIN32 EAPI Ecore_Exe *ecore_exe_run(const char *exe_cmd, const void *data); EAPI Ecore_Exe *ecore_exe_pipe_run(const char *exe_cmd, Ecore_Exe_Flags flags, const void *data); - EAPI int ecore_exe_pipe_write(Ecore_Exe *exe, void *data, int size); + EAPI int ecore_exe_send(Ecore_Exe *exe, void *data, int size); EAPI void ecore_exe_pipe_write_close(Ecore_Exe *exe); EAPI void *ecore_exe_free(Ecore_Exe *exe); EAPI pid_t ecore_exe_pid_get(Ecore_Exe *exe); diff --git a/legacy/ecore/src/lib/ecore/ecore_exe.c b/legacy/ecore/src/lib/ecore/ecore_exe.c index 9ff1550655..1f2d1055c2 100644 --- a/legacy/ecore/src/lib/ecore/ecore_exe.c +++ b/legacy/ecore/src/lib/ecore/ecore_exe.c @@ -221,7 +221,7 @@ ecore_exe_run(const char *exe_cmd, const void *data) * * This function does the same thing as ecore_exe_run(), but also makes the * standard in and/or out from the child process available for reading or - * writing. To write use ecore_exe_pipe_write(). To read listen to + * writing. To write use ecore_exe_send(). To read listen to * ECORE_EVENT_EXE_DATA events (set up a handler). Ecore may buffer read * data until a newline character if asked for with the @p flags. All * data will be included in the events (newlines will be replaced with @@ -413,20 +413,20 @@ ecore_exe_pipe_run(const char *exe_cmd, Ecore_Exe_Flags flags, const void *data) } /** - * Writes data to the given child process which it recieves on stdin. + * Sends data to the given child process which it recieves on stdin. * * This function writes to a child processes standard in, with unlimited * buffering. This call will never block. It may fail if the system runs out * of memory. * - * @param exe The child process to write to - * @param data The data to write - * @param size The size of the data to write, in bytes + * @param exe The child process tosend to + * @param data The data to send + * @param size The size of the data to send, in bytes * @return 1 if successful, 0 on failure. * @ingroup Ecore_Exe_Basic_Group */ int -ecore_exe_pipe_write(Ecore_Exe *exe, void *data, int size) +ecore_exe_send(Ecore_Exe *exe, void *data, int size) { void *buf;