Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore


Modified Files:
        Ecore.h ecore_private.h ecore_exe.c 


Log Message:
Consistancy rules, 'mkay.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/Ecore.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- Ecore.h     4 Jan 2006 20:36:56 -0000       1.35
+++ Ecore.h     4 Jan 2006 20:53:05 -0000       1.36
@@ -210,7 +210,7 @@
    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_send(Ecore_Exe *exe, void *data, int size);
-   EAPI void        ecore_exe_pipe_write_close(Ecore_Exe *exe);
+   EAPI void        ecore_exe_close_stdin(Ecore_Exe *exe);
    EAPI void       *ecore_exe_free(Ecore_Exe *exe);
    EAPI pid_t       ecore_exe_pid_get(Ecore_Exe *exe);
    EAPI void        ecore_exe_tag_set(Ecore_Exe *exe, const char *tag);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_private.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- ecore_private.h     4 Jan 2006 16:33:25 -0000       1.30
+++ ecore_private.h     4 Jan 2006 20:53:07 -0000       1.31
@@ -247,7 +247,7 @@
    int          read_data_size; /* data read from child in bytes */
    int          child_fd_write;        /* fd to write TO to send data to the 
child */
    int          child_fd_read; /* fd to read FROM when child has sent us (the 
parent) data */
-   int          close_write;
+   int          close_stdin;
 };
 #endif
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_exe.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- ecore_exe.c 4 Jan 2006 20:33:58 -0000       1.33
+++ ecore_exe.c 4 Jan 2006 20:53:07 -0000       1.34
@@ -444,21 +444,21 @@
 }
 
 /**
- * The stdin pipe of the given child process will close when the write buffer 
is empty.
+ * The stdin of the given child process will close when the write buffer is 
empty.
  * 
- * @param exe  The child process to write to
+ * @param exe  The child process
  * @ingroup Ecore_Exe_Basic_Group
  */
 void
-ecore_exe_pipe_write_close(Ecore_Exe *exe)
+ecore_exe_close_stdin(Ecore_Exe *exe)
 {
    if (!ECORE_MAGIC_CHECK(exe, ECORE_MAGIC_EXE))
      {
        ECORE_MAGIC_FAIL(exe, ECORE_MAGIC_EXE,
-                        "ecore_exe_pipe_write_close");
+                        "ecore_exe_close_stdin");
        return;
      }
-   exe->close_write = 1;
+   exe->close_stdin = 1;
 }
 
 
@@ -1062,7 +1062,7 @@
       _ecore_exe_flush(exe);
 
    /* If we have sent all there is to send, and we need to close the pipe, 
then close it. */
-   if ((exe->close_write == 1) && (exe->write_data_size == 
exe->write_data_offset))
+   if ((exe->close_stdin == 1) && (exe->write_data_size == 
exe->write_data_offset))
       {
          int ok = 0;
          int result;
@@ -1073,7 +1073,6 @@
          if (exe->child_fd_write)  E_NO_ERRNO(result, 
close(exe->child_fd_write), ok);
         exe->child_fd_write = 0;
          IF_FREE(exe->write_data_buf);
-        exe->close_write = 0;
       }
 
    return 1;




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to