Enlightenment CVS committal

Author  : jcwong
Project : misc
Module  : engage

Dir     : misc/engage/src/module


Modified Files:
        e_mod_main.h e_mod_main.c 


Log Message:
New api check.


===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- e_mod_main.h        13 Aug 2005 10:33:48 -0000      1.18
+++ e_mod_main.h        24 Sep 2005 02:18:31 -0000      1.19
@@ -116,6 +116,8 @@
    E_Border      *border;
 };
 
+extern E_Module_Api e_module_api;
+
 EAPI void *e_modapi_init     (E_Module *m);
 EAPI int   e_modapi_shutdown (E_Module *m);
 EAPI int   e_modapi_save     (E_Module *m);
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -3 -r1.66 -r1.67
--- e_mod_main.c        14 Sep 2005 11:26:22 -0000      1.66
+++ e_mod_main.c        24 Sep 2005 02:18:31 -0000      1.67
@@ -142,23 +142,17 @@
 Ecore_Timer   *_engage_zoom_timer;
 
 /* public module routines. all modules must have these */
+E_Module_Api e_module_api =
+{
+    E_MODULE_API_VERSION,
+       "Engage"
+};
+
 void *
 e_modapi_init(E_Module *m)
 {
    Engage *e;
 
-   /* check module api version */
-   if (m->api->version < E_MODULE_API_VERSION)
-     {
-       e_error_dialog_show("Module API Error",
-                           "Error initializing Module: Engage\n"
-                           "It requires a minimum module API version of: %i.\n"
-                           "The module API advertized by Enlightenment is: 
%i.\n"
-                           "Aborting module.",
-                           E_MODULE_API_VERSION,
-                           m->api->version);
-       return NULL;
-     }
    /* actually init engage */
    e = _engage_new();
    m->config_menu = e->config_menu;




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to