Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/engines/evas_xrender_x11


Modified Files:
        ewl_engine_evas_xrender_x11.c 


Log Message:
- Split the engine function array into three smaller arrays. 
  - One for window functions. 
  - One for canvas functions.
  - One for theme functions.

- This should make it easier to implement engines as you can leave the
  entire array NULL if you don't want to implement the given type of
  functions.

===================================================================
RCS file: 
/cvs/e/e17/libs/ewl/src/engines/evas_xrender_x11/ewl_engine_evas_xrender_x11.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_engine_evas_xrender_x11.c       21 Aug 2006 17:47:11 -0000      1.2
+++ ewl_engine_evas_xrender_x11.c       12 Oct 2006 21:41:18 -0000      1.3
@@ -8,19 +8,11 @@
 static void ee_canvas_setup(Ewl_Window *win, int debug);
 static int ee_init(Ewl_Engine *engine);
 
-static Ewl_Engine_Info engine_funcs = {
+static void *canvas_funcs[EWL_ENGINE_CANVAS_MAX] =
        {
-               ee_init,
-               NULL, NULL,
-               NULL, NULL, NULL, NULL,
-               NULL, NULL, NULL, NULL,
-               NULL, NULL, NULL, NULL,
-               NULL, NULL, NULL, NULL,
-               NULL, NULL, NULL, NULL,
-               NULL, NULL,
-               ee_canvas_setup 
-       }
-};
+               ee_canvas_setup,
+               NULL, NULL, NULL, NULL
+       };
 
 Ecore_DList *
 ewl_engine_dependancies(void)
@@ -59,11 +51,17 @@
 static int
 ee_init(Ewl_Engine *engine)
 {
+       Ewl_Engine_Info *info;
+
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR_RET("engine", engine, FALSE);
 
+       info = NEW(Ewl_Engine_Info, 1);
+       info->init = ee_init;
+       info->hooks.canvas = canvas_funcs;
+
        engine->name = strdup("evas_xrender_x11");
-       engine->functions = &engine_funcs;
+       engine->functions = info;
 
        DRETURN_INT(TRUE, DLEVEL_STABLE);
 }



-------------------------------------------------------------------------
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