Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/randr


Modified Files:
        e_mod_main.c e_mod_main.h 


Log Message:
Move module api check to module loader.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/randr/e_mod_main.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_mod_main.c        22 Sep 2005 18:17:18 -0000      1.13
+++ e_mod_main.c        23 Sep 2005 17:13:47 -0000      1.14
@@ -27,23 +27,17 @@
 static E_Config_DD *conf_edd;
 static E_Config_DD *conf_manager_edd;
 
+E_Module_Api e_module_api = 
+{
+   E_MODULE_API_VERSION,
+   "RandR"
+};
+
 void *
 e_modapi_init(E_Module *m)
 {
    Randr *e;
    
-   if (m->api->version < E_MODULE_API_VERSION)
-     {
-       char buf[4096];
-       snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing 
Module: %s<br>"
-                                    "It requires a minimum module API version 
of: %i.<br>"
-                                    "The module API advertized by 
Enlightenment is: %i.<br>"), 
-                                  _("RandR"), E_MODULE_API_VERSION, 
m->api->version);
-
-       e_module_dialog_show(_("Enlightenment Randr Module"), buf);
-       return NULL;
-   }
-   
    /* Create the button */
    e = _randr_new();
    m->config_menu = e->config_menu;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/randr/e_mod_main.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_main.h        25 Aug 2005 15:59:53 -0000      1.4
+++ e_mod_main.h        23 Sep 2005 17:13:47 -0000      1.5
@@ -42,6 +42,8 @@
    Ecore_X_Screen_Size prev, next;
 };
 
+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);




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