Enlightenment CVS committal
Author : codewarrior
Project : e17
Module : libs/etk
Dir : e17/libs/etk/src/engines/ecore_evas_x11
Modified Files:
ecore_evas_x11.c
Log Message:
Remainder of Adre's patch to allow engines to have init params.
===================================================================
RCS file: /cvs/e/e17/libs/etk/src/engines/ecore_evas_x11/ecore_evas_x11.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- ecore_evas_x11.c 29 Jun 2007 09:14:01 -0000 1.29
+++ ecore_evas_x11.c 29 Jun 2007 12:00:14 -0000 1.30
@@ -17,11 +17,11 @@
typedef Etk_Engine_Ecore_Evas_X11_Window_Data Etk_Engine_Window_Data;
/* General engine functions */
-Etk_Engine *engine_open();
-void engine_close();
+Etk_Engine *engine_open(int *argc, char ***argv);
+void engine_close(void);
-static Etk_Bool _engine_init();
-static void _engine_shutdown();
+static Etk_Bool _engine_init(void);
+static void _engine_shutdown(void);
/* Etk_Window functions */
static void _window_constructor(Etk_Window *window);
@@ -150,22 +150,22 @@
**************************/
/* Called when the engine is loaded */
-Etk_Engine *engine_open()
+Etk_Engine *engine_open(int *argc, char ***argv)
{
engine_info.engine_data = NULL;
engine_info.engine_name = strdup("ecore_evas_x11");
- etk_engine_inherit_from(&engine_info, "ecore_evas");
+ etk_engine_inherit_from(&engine_info, "ecore_evas", argc, argv);
return &engine_info;
}
/* Called when the engine is unloaded */
-void engine_close()
+void engine_close(void)
{
free(engine_info.engine_name);
}
/* Initializes the engine */
-static Etk_Bool _engine_init()
+static Etk_Bool _engine_init(void)
{
if (!ecore_x_init(NULL))
{
@@ -186,7 +186,7 @@
}
/* Shutdowns the engine */
-static void _engine_shutdown()
+static void _engine_shutdown(void)
{
int i;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs