Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/engines/x11 Modified Files: ewl_engine_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/x11/ewl_engine_x11.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_engine_x11.c 6 Oct 2006 18:19:22 -0000 1.17 +++ ewl_engine_x11.c 12 Oct 2006 21:41:18 -0000 1.18 @@ -74,10 +74,8 @@ static void ee_window_geometry_set(Ewl_Window *win, int *width, int *height); static void ee_dnd_aware_set(Ewl_Embed *embed); -static Ewl_Engine_Info engine_funcs = { +static void *window_funcs[EWL_ENGINE_WINDOW_MAX] = { - ee_init, - ee_shutdown, ee_window_new, ee_window_destroy, ee_window_move, @@ -100,10 +98,8 @@ ee_pointer_ungrab, ee_window_selection_text_set, ee_window_geometry_set, - ee_dnd_aware_set, - NULL - } -}; + ee_dnd_aware_set + }; Ecore_DList * ewl_engine_dependancies(void) @@ -136,6 +132,8 @@ static int ee_init(Ewl_Engine *engine) { + Ewl_Engine_Info *info; + DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR_RET("engine", engine, FALSE); @@ -229,8 +227,13 @@ DRETURN_INT(FALSE, DLEVEL_STABLE); } + info = NEW(Ewl_Engine_Info, 1); + info->init = ee_init; + info->shutdown = ee_shutdown; + info->hooks.window = window_funcs; + engine->name = strdup("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