Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

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


Modified Files:
        Ecore.h Makefile.am ecore.c ecore_private.h ecore_timer.c 
Added Files:
        ecore_anim.c 


Log Message:


ecore animators... IN!

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/Ecore.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- Ecore.h     30 Apr 2004 03:10:15 -0000      1.12
+++ Ecore.h     5 Sep 2004 08:00:09 -0000       1.13
@@ -74,6 +74,7 @@
    typedef void Ecore_Event_Handler; /**< A handle for an event handler */
    typedef void Ecore_Event_Filter; /**< A handle for an event filter */
    typedef void Ecore_Event; /**< A handle for an event */
+   typedef void Ecore_Animator; /**< A handle for animators */
 #endif
    typedef struct _Ecore_Event_Exe_Exit     Ecore_Event_Exe_Exit; /**< Spawned Exe 
exit event */
    typedef struct _Ecore_Event_Signal_User  Ecore_Event_Signal_User; /**< User signal 
event */
@@ -180,6 +181,11 @@
        
    Ecore_Timer *ecore_timer_add(double in, int (*func) (void *data), const void 
*data);
    void        *ecore_timer_del(Ecore_Timer *timer);
+   
+   Ecore_Animator *ecore_animator_add(int (*func) (void *data), const void *data);
+   void           *ecore_animator_del(Ecore_Animator *animator);
+   void            ecore_animator_frametime_set(double frametime);
+   double          ecore_animator_frametime_get(void);
        
 #ifdef __cplusplus
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- Makefile.am 18 Mar 2004 05:29:54 -0000      1.4
+++ Makefile.am 5 Sep 2004 08:00:10 -0000       1.5
@@ -10,6 +10,7 @@
 libecore_la_SOURCES = \
 ecore.c \
 ecore_app.c \
+ecore_anim.c \
 ecore_events.c \
 ecore_exe.c \
 ecore_hash.c \
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore.c     4 Apr 2004 17:08:25 -0000       1.6
+++ ecore.c     5 Sep 2004 08:00:10 -0000       1.7
@@ -58,6 +58,7 @@
       return _ecore_init_count;
 
    if (_ecore_fps_debug) _ecore_fps_debug_shutdown();
+   _ecore_animator_shutdown();
    _ecore_exe_shutdown();
    _ecore_idle_enterer_shutdown();
    _ecore_idle_exiter_shutdown();
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_private.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ecore_private.h     9 May 2004 08:06:17 -0000       1.8
+++ ecore_private.h     5 Sep 2004 08:00:10 -0000       1.9
@@ -22,6 +22,7 @@
 #define ECORE_MAGIC_EVENT_HANDLER   0xf79317f0
 #define ECORE_MAGIC_EVENT_FILTER    0xf78218ff
 #define ECORE_MAGIC_EVENT           0xf77119fe
+#define ECORE_MAGIC_ANIMATOR        0xf7643ea5
 
 #define ECORE_MAGIC                 Ecore_Magic  __magic
 
@@ -57,6 +58,7 @@
 typedef struct _Ecore_Event_Handler Ecore_Event_Handler;
 typedef struct _Ecore_Event_Filter  Ecore_Event_Filter;
 typedef struct _Ecore_Event         Ecore_Event;
+typedef struct _Ecore_Animator      Ecore_Animator;
 
 struct _Ecore_Exe
 {
@@ -154,6 +156,15 @@
    void        *data;
 };
 
+struct _Ecore_Animator
+{
+   Ecore_Oldlist   __list_data;
+   ECORE_MAGIC;
+   signed char  delete_me : 1;
+   int        (*func) (void *data);
+   void        *data;
+};
+
 #endif
 
 void          _ecore_magic_fail(void *d, Ecore_Magic m, Ecore_Magic req_m, const char 
*fname);
@@ -201,6 +212,9 @@
 Ecore_Exe    *_ecore_exe_find(pid_t pid);
 void         *_ecore_exe_free(Ecore_Exe *exe);
 
+void          _ecore_animator_shutdown(void);
+    
+
 void         *_ecore_list_append           (void *in_list, void *in_item);
 void         *_ecore_list_prepend          (void *in_list, void *in_item);
 void         *_ecore_list_append_relative  (void *in_list, void *in_item, void 
*in_relative);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_timer.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore_timer.c       8 May 2004 04:44:04 -0000       1.6
+++ ecore_timer.c       5 Sep 2004 08:00:10 -0000       1.7
@@ -1,8 +1,6 @@
 #include "ecore_private.h"
 #include "Ecore.h"
 
-/* FIXME: write code for timers... */
-
 static void _ecore_timer_set(Ecore_Timer *timer, double at, double in, int (*func) 
(void *data), void *data);
 
 static int          timers_added = 0;
@@ -49,7 +47,7 @@
 
 /**
  * Delete the specified timer from the timer list.
- * @param timer
+ * @param timer The timer to delete
  * @return The data pointer set for the timer
  * @ingroup Ecore_Timer_Group
  * 




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to