From: <enl...@li...> - 2006-01-13 06:38:55
|
Enlightenment CVS committal Author : onefang Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore Modified Files: Ecore.h ecore_exe.c ecore_signal.c Log Message: Minor API breakage and fixage. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/Ecore.h,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- Ecore.h 13 Jan 2006 04:31:38 -0000 1.40 +++ Ecore.h 13 Jan 2006 06:38:44 -0000 1.41 @@ -62,14 +62,14 @@ #endif #define ECORE_EVENT_NONE 0 -#define ECORE_EVENT_EXE_EXIT 1 /**< Spawned Exe has exit event */ +#define ECORE_EXE_EVENT_DEL 1 /**< Spawned Exe has exit event */ #define ECORE_EVENT_SIGNAL_USER 2 /**< User signal event */ #define ECORE_EVENT_SIGNAL_HUP 3 /**< Hup signal event */ #define ECORE_EVENT_SIGNAL_EXIT 4 /**< Exit signal event */ #define ECORE_EVENT_SIGNAL_POWER 5 /**< Power signal event */ #define ECORE_EVENT_SIGNAL_REALTIME 6 /**< Realtime signal event */ -#define ECORE_EVENT_EXE_DATA 7 /**< Data from a child process */ -#define ECORE_EVENT_EXE_ERROR 8 /**< Error from a child process */ +#define ECORE_EXE_EVENT_DATA 7 /**< Data from a child process */ +#define ECORE_EXE_EVENT_ERROR 8 /**< Error from a child process */ #define ECORE_EVENT_COUNT 9 #ifndef _ECORE_PRIVATE_H =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_exe.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- ecore_exe.c 13 Jan 2006 04:31:41 -0000 1.40 +++ ecore_exe.c 13 Jan 2006 06:38:44 -0000 1.41 @@ -232,10 +232,10 @@ * This function does the same thing as ecore_exe_run(), but also makes the * standard in and/or out as wel las stderr from the child process available * for reading or writing. To write use ecore_exe_send(). To read listen to - * ECORE_EVENT_EXE_DATA or ECORE_EVENH_EXE_ERROR events (set up handlers). + * ECORE_EXE_EVENT_DATA or ECORE_EXE_EVENT_ERROR events (set up handlers). * Ecore may buffer read and error 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 NULLS if line buffered). ECORE_EVENT_EXE_DATA events + * will be replaced with NULLS if line buffered). ECORE_EXE_EVENT_DATA events * will only happen if the process is run with ECORE_EXE_PIPE_READ enabled * in the flags. The same with the error version. Writing will only be * allowed with ECORE_EXE_PIPE_WRITE enabled in the flags. @@ -951,7 +951,7 @@ if (flags & ECORE_FD_READ) { flags = ECORE_FD_READ; - event_type = ECORE_EVENT_EXE_DATA; + event_type = ECORE_EXE_EVENT_DATA; child_fd = exe->child_fd_read; if (exe->flags & ECORE_EXE_PIPE_READ_LINE_BUFFERED) is_buffered = 1; @@ -959,7 +959,7 @@ else { flags = ECORE_FD_ERROR; - event_type = ECORE_EVENT_EXE_ERROR; + event_type = ECORE_EXE_EVENT_ERROR; child_fd = exe->child_fd_error; if (exe->flags & ECORE_EXE_PIPE_ERROR_LINE_BUFFERED) is_buffered = 1; =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_signal.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- ecore_signal.c 10 Jan 2006 16:46:07 -0000 1.26 +++ ecore_signal.c 13 Jan 2006 06:38:44 -0000 1.27 @@ -217,7 +217,7 @@ else { if (e->exe) printf("Sending exit event for %s.\n", e->exe->cmd); - _ecore_event_add(ECORE_EVENT_EXE_EXIT, e, + _ecore_event_add(ECORE_EXE_EVENT_DEL, e, _ecore_event_exe_exit_free, NULL); } } @@ -504,7 +504,7 @@ if (e) { printf("Sending delayed exit event for %s.\n", e->exe->cmd); - _ecore_event_add(ECORE_EVENT_EXE_EXIT, e, + _ecore_event_add(ECORE_EXE_EVENT_DEL, e, _ecore_event_exe_exit_free, NULL); } return 0; |