Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e_modules
Dir : e17/apps/e_modules/src/modules/flame
Modified Files:
e_mod_main.c e_mod_main.h
Log Message:
New api check.
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e_modules/src/modules/flame/e_mod_main.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_mod_main.c 12 Apr 2005 03:35:52 -0000 1.2
+++ e_mod_main.c 23 Sep 2005 17:36:47 -0000 1.3
@@ -40,23 +40,17 @@
char *_flame_module_dir;
/* public module routines. all modules must have these */
+E_Module_Api e_module_api =
+{
+ E_MODULE_API_VERSION,
+ "Flame"
+};
+
void *
e_modapi_init (E_Module *m)
{
Flame *f;
- /* check module api version */
- if (m->api->version < E_MODULE_API_VERSION)
- {
- e_error_dialog_show ("Module API Error",
- "Error initializing Module: Flame\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;
- }
f = _flame_init (m);
m->config_menu = _flame_config_menu_new (f);
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e_modules/src/modules/flame/e_mod_main.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_mod_main.h 12 Apr 2005 03:35:52 -0000 1.2
+++ e_mod_main.h 23 Sep 2005 17:36:47 -0000 1.3
@@ -57,6 +57,8 @@
Ecore_Event_Handler *ev_handler_container_resize;
};
+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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs