Enlightenment CVS committal

Author  : moom
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/engines/ecore_evas_software_x11


Modified Files:
        ecore_evas_software_x11.c 


Log Message:
* Write comments for engines
* Fix a leak in the engines


===================================================================
RCS file: 
/cvs/e/e17/proto/etk/src/engines/ecore_evas_software_x11/ecore_evas_software_x11.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ecore_evas_software_x11.c   3 Sep 2006 18:36:11 -0000       1.10
+++ ecore_evas_software_x11.c   3 Sep 2006 21:15:31 -0000       1.11
@@ -5,12 +5,11 @@
 #include "Etk_Engine_Ecore_Evas.h"
 #include "Etk_Engine_Ecore_Evas_X11.h"
 
-/* Etk_Window engine data
- * we do another typedef to shorten the name for internal use */
 typedef Etk_Engine_Ecore_Evas_X11_Window_Data Etk_Engine_Window_Data;
 
 /* General engine functions */
 Etk_Engine *engine_open();
+void engine_close();
 
 /* Etk_Window functions */
 static void _window_constructor(Etk_Window *window);
@@ -66,7 +65,7 @@
    NULL, /* window_pointer_set */
    
    NULL, /* popup_window_constructor */
-   NULL, /* popup_window_popup_at_xy */
+   NULL, /* popup_window_popup */
    NULL, /* popup_window_popdown */
    
    NULL, /* event_callback_set */
@@ -93,6 +92,7 @@
  *
  **************************/
 
+/* Called when the engine is loaded */
 Etk_Engine *engine_open()
 {
    engine_info.engine_data = NULL;
@@ -101,16 +101,23 @@
    return &engine_info;
 }
 
+/* Called when the engine is unloaded */
+void engine_close()
+{
+   free(engine_info.engine_name);
+}
+
 /**************************
  *
  * Etk_Window's functions
  *
  **************************/
 
+/* Initializes the created window */
 static void _window_constructor(Etk_Window *window)
 {
    /* We _MUST_ initialize and create the ecore_evas and the x_window
-    * variables in the engine_data. */
+    * variables in the engine_data since they are used by the "ecore_evas_x11" 
engine */
    Etk_Engine_Window_Data *engine_data; 
 
    engine_data = malloc(sizeof(Etk_Engine_Window_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