Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_callback.c ewl_callback.h 


Log Message:
- add in the type creation code
   - isn't useful for anything yet

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_callback.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_callback.c      11 Jul 2006 21:05:55 -0000      1.19
+++ ewl_callback.c      11 Jul 2006 22:04:33 -0000      1.20
@@ -23,6 +23,7 @@
 static int ewl_callback_insert(Ewl_Widget *w, unsigned int t, 
                                Ewl_Callback *cb, unsigned int pos);
 
+static int callback_type_count = EWL_CALLBACK_MAX + 1;;
 static int callback_id = 0;
 static Ecore_Hash *cb_registration = NULL;
 
@@ -244,6 +245,18 @@
                EWL_CALLBACK_POS(w, t)++;
 
        DRETURN_INT(cb->id, DLEVEL_STABLE);
+}
+
+/**
+ * @return Returns a new callback identifier
+ * @brief Creates and returns a new callback identifier
+ */
+unsigned int
+ewl_callback_type_add(void)
+{
+       DENTER_FUNCTION(DLEVEL_STABLE);
+
+       DRETURN_INT(++callback_type_count, DLEVEL_STABLE);
 }
 
 /**
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_callback.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_callback.h      11 Jul 2006 21:05:55 -0000      1.10
+++ ewl_callback.h      11 Jul 2006 22:04:33 -0000      1.11
@@ -114,6 +114,8 @@
 
 int             ewl_callbacks_init(void);
 void            ewl_callbacks_shutdown(void);
+unsigned int   ewl_callback_type_add(void);
+
 int             ewl_callback_append(Ewl_Widget * widget, unsigned int type,
                                    Ewl_Callback_Function func,
                                    void *user_data);




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to