Enlightenment CVS committal
Author : dj2
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/test
Modified Files:
e_mod_main.c e_mod_main.h
Log Message:
- change the names of the module entry points. This will break other
modules.
init -> e_modapi_init
shutdown -> e_modapi_shutdown
about -> e_modapi_about
info -> e_modapi_info
save -> e_modapi_save
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/test/e_mod_main.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_mod_main.c 11 Apr 2005 21:50:36 -0000 1.2
+++ e_mod_main.c 12 Apr 2005 03:34:29 -0000 1.3
@@ -2,7 +2,7 @@
#include "e_mod_main.h"
void *
-init(E_Module *m)
+e_modapi_init(E_Module *m)
{
if (m->api->version < E_MODULE_API_VERSION)
{
@@ -32,11 +32,11 @@
e_menu_item_label_set(mi, _("Something Else"));
m->config_menu = mn;
}
- return init; /* bogus pointer - just to say we worked */
+ return e_modapi_init; /* bogus pointer - just to say we worked */
}
int
-shutdown(E_Module *m)
+e_modapi_shutdown(E_Module *m)
{
if (m->config_menu)
{
@@ -48,20 +48,20 @@
}
int
-save(E_Module *m)
+e_modapi_save(E_Module *m)
{
return 1;
}
int
-info(E_Module *m)
+e_modapi_info(E_Module *m)
{
m->label = strdup(_("Test!!!"));
return 1;
}
int
-about(E_Module *m)
+e_modapi_about(E_Module *m)
{
e_error_dialog_show(_("Enlightenment Test Module"),
_("This module is VERY simple and is only used to test
the basic\n"
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/test/e_mod_main.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_mod_main.h 25 Nov 2004 05:31:21 -0000 1.2
+++ e_mod_main.h 12 Apr 2005 03:34:31 -0000 1.3
@@ -1,10 +1,10 @@
#ifndef E_MOD_MAIN_H
#define E_MOD_MAIN_H
-EAPI void *init (E_Module *m);
-EAPI int shutdown (E_Module *m);
-EAPI int save (E_Module *m);
-EAPI int info (E_Module *m);
-EAPI int about (E_Module *m);
+EAPI void *e_modapi_init (E_Module *m);
+EAPI int e_modapi_shutdown (E_Module *m);
+EAPI int e_modapi_save (E_Module *m);
+EAPI int e_modapi_info (E_Module *m);
+EAPI int e_modapi_about (E_Module *m);
#endif
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs