Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e_modules
Dir : e17/apps/e_modules/src/modules/notes 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/notes/e_mod_main.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- e_mod_main.c 27 Jul 2005 09:55:21 -0000 1.24 +++ e_mod_main.c 23 Sep 2005 17:36:47 -0000 1.25 @@ -33,23 +33,17 @@ static E_Config_DD *_notes_config_faces_edd = NULL; /* public module routines. all modules must have these */ +E_Module_Api e_module_api = +{ + E_MODULE_API_VERSION, + "Notes" +}; + void * e_modapi_init (E_Module *m) { Note *n; - /* check module api version */ - if (m->api->version < E_MODULE_API_VERSION) - { - e_error_dialog_show ("Module API Error", - "Error initializing Module: note\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 ibar */ n = _note_init (m); m->config_menu = _note_config_menu_new (n); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_modules/src/modules/notes/e_mod_main.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- e_mod_main.h 12 Apr 2005 03:35:52 -0000 1.11 +++ e_mod_main.h 23 Sep 2005 17:36:47 -0000 1.12 @@ -64,6 +64,8 @@ Note_Face_Config *conf; }; +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