Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/embryo

Dir     : e17/libs/embryo/src/lib


Modified Files:
        Embryo.h embryo_amx.c embryo_private.h 


Log Message:


data set/get

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/Embryo.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Embryo.h    26 Mar 2004 06:23:13 -0000      1.3
+++ Embryo.h    26 Mar 2004 08:07:47 -0000      1.4
@@ -73,6 +73,8 @@
    Embryo_Cell      embryo_program_variable_find(Embryo_Program *ep, char *name);
    void             embryo_program_error_set(Embryo_Program *ep, int error);
    int              embryo_program_error_get(Embryo_Program *ep);
+   void             embryo_program_data_set(Embryo_Program *ep, void *data);
+   void            *embryo_program_data_get(Embryo_Program *ep);
    const char      *embryo_error_string_get(int error);
    int              embryo_data_string_length_get(Embryo_Program *ep, Embryo_Cell 
*str_cell);
    void             embryo_data_string_get(Embryo_Program *ep, Embryo_Cell *str_cell, 
char *dst);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/embryo_amx.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- embryo_amx.c        26 Mar 2004 06:23:13 -0000      1.12
+++ embryo_amx.c        26 Mar 2004 08:07:47 -0000      1.13
@@ -479,6 +479,20 @@
    return ep->error;
 }
 
+void
+embryo_program_data_set(Embryo_Program *ep, void *data)
+{
+   if (!ep) return;
+   ep->data = data;
+}
+
+void *
+embryo_program_data_get(Embryo_Program *ep)
+{
+   if (!ep) return NULL;
+   return ep->data;
+}
+
 const char *
 embryo_error_string_get(int error)
 {
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/embryo_private.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- embryo_private.h    26 Mar 2004 03:24:33 -0000      1.6
+++ embryo_private.h    26 Mar 2004 08:07:47 -0000      1.7
@@ -244,6 +244,8 @@
    int            params_alloc;
    
    int            run_count;
+   
+   void          *data;
 };
 
 struct _Embryo_Func_Stub




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to