summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorDan Sinclair <dj2>2005-04-12 03:34:31 +0000
committerDan Sinclair <dj2@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-04-12 03:34:31 +0000
commitfebbbe4a1c99eb4e4bd7eea8d4b27c137d56a239 (patch)
tree6cf078218f1f46947ac50cf4e10b2644abd0d300 /src/modules
parent0b0a77ec2337cf2a0bbe13dba86b5c85904d5c4a (diff)
- 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 SVN revision: 14151
Diffstat (limited to '')
-rw-r--r--src/modules/battery/e_mod_main.c10
-rw-r--r--src/modules/battery/e_mod_main.h10
-rw-r--r--src/modules/clock/e_mod_main.c10
-rw-r--r--src/modules/clock/e_mod_main.h10
-rw-r--r--src/modules/dropshadow/e_mod_main.c10
-rw-r--r--src/modules/dropshadow/e_mod_main.h10
-rw-r--r--src/modules/ibar/e_mod_main.c10
-rw-r--r--src/modules/ibar/e_mod_main.h10
-rw-r--r--src/modules/pager/e_mod_main.c10
-rw-r--r--src/modules/pager/e_mod_main.h10
-rw-r--r--src/modules/temperature/e_mod_main.c10
-rw-r--r--src/modules/temperature/e_mod_main.h10
-rw-r--r--src/modules/test/e_mod_main.c12
-rw-r--r--src/modules/test/e_mod_main.h10
14 files changed, 71 insertions, 71 deletions
diff --git a/src/modules/battery/e_mod_main.c b/src/modules/battery/e_mod_main.c
index 8aa480d70..837ee5921 100644
--- a/src/modules/battery/e_mod_main.c
+++ b/src/modules/battery/e_mod_main.c
@@ -35,7 +35,7 @@ static int battery_count;
35 35
36/* public module routines. all modules must have these */ 36/* public module routines. all modules must have these */
37void * 37void *
38init(E_Module *m) 38e_modapi_init(E_Module *m)
39{ 39{
40 Battery *e; 40 Battery *e;
41 41
@@ -58,7 +58,7 @@ init(E_Module *m)
58} 58}
59 59
60int 60int
61shutdown(E_Module *m) 61e_modapi_shutdown(E_Module *m)
62{ 62{
63 Battery *e; 63 Battery *e;
64 if (m->config_menu) 64 if (m->config_menu)
@@ -72,7 +72,7 @@ shutdown(E_Module *m)
72} 72}
73 73
74int 74int
75save(E_Module *m) 75e_modapi_save(E_Module *m)
76{ 76{
77 Battery *e; 77 Battery *e;
78 78
@@ -82,7 +82,7 @@ save(E_Module *m)
82} 82}
83 83
84int 84int
85info(E_Module *m) 85e_modapi_info(E_Module *m)
86{ 86{
87 char buf[4096]; 87 char buf[4096];
88 88
@@ -93,7 +93,7 @@ info(E_Module *m)
93} 93}
94 94
95int 95int
96about(E_Module *m) 96e_modapi_about(E_Module *m)
97{ 97{
98 e_error_dialog_show(_("Enlightenment Battery Module"), 98 e_error_dialog_show(_("Enlightenment Battery Module"),
99 _("A basic battery meter that uses either ACPI or APM\n" 99 _("A basic battery meter that uses either ACPI or APM\n"
diff --git a/src/modules/battery/e_mod_main.h b/src/modules/battery/e_mod_main.h
index de839b199..ada9e99dd 100644
--- a/src/modules/battery/e_mod_main.h
+++ b/src/modules/battery/e_mod_main.h
@@ -78,10 +78,10 @@ struct _Status
78 char *time; 78 char *time;
79}; 79};
80 80
81EAPI void *init (E_Module *m); 81EAPI void *e_modapi_init (E_Module *m);
82EAPI int shutdown (E_Module *m); 82EAPI int e_modapi_shutdown (E_Module *m);
83EAPI int save (E_Module *m); 83EAPI int e_modapi_save (E_Module *m);
84EAPI int info (E_Module *m); 84EAPI int e_modapi_info (E_Module *m);
85EAPI int about (E_Module *m); 85EAPI int e_modapi_about (E_Module *m);
86 86
87#endif 87#endif
diff --git a/src/modules/clock/e_mod_main.c b/src/modules/clock/e_mod_main.c
index 8d80dbcbe..e7fd067d2 100644
--- a/src/modules/clock/e_mod_main.c
+++ b/src/modules/clock/e_mod_main.c
@@ -30,7 +30,7 @@ static E_Config_DD *conf_face_edd;
30 30
31/* public module routines. all modules must have these */ 31/* public module routines. all modules must have these */
32void * 32void *
33init(E_Module *module) 33e_modapi_init(E_Module *module)
34{ 34{
35 Clock *clock; 35 Clock *clock;
36 36
@@ -54,7 +54,7 @@ init(E_Module *module)
54} 54}
55 55
56int 56int
57shutdown(E_Module *module) 57e_modapi_shutdown(E_Module *module)
58{ 58{
59 Clock *clock; 59 Clock *clock;
60 60
@@ -69,7 +69,7 @@ shutdown(E_Module *module)
69} 69}
70 70
71int 71int
72save(E_Module *module) 72e_modapi_save(E_Module *module)
73{ 73{
74 Clock *clock; 74 Clock *clock;
75 75
@@ -79,7 +79,7 @@ save(E_Module *module)
79} 79}
80 80
81int 81int
82info(E_Module *module) 82e_modapi_info(E_Module *module)
83{ 83{
84 char buf[4096]; 84 char buf[4096];
85 85
@@ -90,7 +90,7 @@ info(E_Module *module)
90} 90}
91 91
92int 92int
93about(E_Module *module) 93e_modapi_about(E_Module *module)
94{ 94{
95 e_error_dialog_show(_("Enlightenment Clock Module"), 95 e_error_dialog_show(_("Enlightenment Clock Module"),
96 _("A simple module to give E17 a clock.")); 96 _("A simple module to give E17 a clock."));
diff --git a/src/modules/clock/e_mod_main.h b/src/modules/clock/e_mod_main.h
index 0d58179b1..529f152cc 100644
--- a/src/modules/clock/e_mod_main.h
+++ b/src/modules/clock/e_mod_main.h
@@ -39,10 +39,10 @@ struct _Clock_Face
39 E_Gadman_Client *gmc; 39 E_Gadman_Client *gmc;
40}; 40};
41 41
42EAPI void *init (E_Module *module); 42EAPI void *e_modapi_init (E_Module *module);
43EAPI int shutdown (E_Module *module); 43EAPI int e_modapi_shutdown (E_Module *module);
44EAPI int save (E_Module *module); 44EAPI int e_modapi_save (E_Module *module);
45EAPI int info (E_Module *module); 45EAPI int e_modapi_info (E_Module *module);
46EAPI int about (E_Module *module); 46EAPI int e_modapi_about (E_Module *module);
47 47
48#endif 48#endif
diff --git a/src/modules/dropshadow/e_mod_main.c b/src/modules/dropshadow/e_mod_main.c
index 9aad0afde..5f6209a20 100644
--- a/src/modules/dropshadow/e_mod_main.c
+++ b/src/modules/dropshadow/e_mod_main.c
@@ -68,7 +68,7 @@ static void _ds_object_unset(Evas_Object *o);
68 68
69/* public module routines. all modules must have these */ 69/* public module routines. all modules must have these */
70void * 70void *
71init(E_Module *m) 71e_modapi_init(E_Module *m)
72{ 72{
73 Dropshadow *ds; 73 Dropshadow *ds;
74 74
@@ -89,7 +89,7 @@ init(E_Module *m)
89} 89}
90 90
91int 91int
92shutdown(E_Module *m) 92e_modapi_shutdown(E_Module *m)
93{ 93{
94 Dropshadow *ds; 94 Dropshadow *ds;
95 95
@@ -108,7 +108,7 @@ shutdown(E_Module *m)
108} 108}
109 109
110int 110int
111save(E_Module *m) 111e_modapi_save(E_Module *m)
112{ 112{
113 Dropshadow *ds; 113 Dropshadow *ds;
114 114
@@ -118,7 +118,7 @@ save(E_Module *m)
118} 118}
119 119
120int 120int
121info(E_Module *m) 121e_modapi_info(E_Module *m)
122{ 122{
123 char buf[4096]; 123 char buf[4096];
124 124
@@ -129,7 +129,7 @@ info(E_Module *m)
129} 129}
130 130
131int 131int
132about(E_Module *m) 132e_modapi_about(E_Module *m)
133{ 133{
134 e_error_dialog_show(_("Enlightenment Dropshadow Module"), 134 e_error_dialog_show(_("Enlightenment Dropshadow Module"),
135 _("This is the dropshadow module that allows dropshadows to be cast\n" 135 _("This is the dropshadow module that allows dropshadows to be cast\n"
diff --git a/src/modules/dropshadow/e_mod_main.h b/src/modules/dropshadow/e_mod_main.h
index 6306246d8..c8b0c5580 100644
--- a/src/modules/dropshadow/e_mod_main.h
+++ b/src/modules/dropshadow/e_mod_main.h
@@ -61,10 +61,10 @@ struct _Shadow
61 unsigned char use_shared : 1; 61 unsigned char use_shared : 1;
62}; 62};
63 63
64EAPI void *init (E_Module *m); 64EAPI void *e_modapi_init (E_Module *m);
65EAPI int shutdown (E_Module *m); 65EAPI int e_modapi_shutdown (E_Module *m);
66EAPI int save (E_Module *m); 66EAPI int e_modapi_save (E_Module *m);
67EAPI int info (E_Module *m); 67EAPI int e_modapi_info (E_Module *m);
68EAPI int about (E_Module *m); 68EAPI int e_modapi_about (E_Module *m);
69 69
70#endif 70#endif
diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 883e10b92..9964e8245 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -95,7 +95,7 @@ static void _ibar_bar_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi);
95 95
96/* public module routines. all modules must have these */ 96/* public module routines. all modules must have these */
97void * 97void *
98init(E_Module *m) 98e_modapi_init(E_Module *m)
99{ 99{
100 IBar *ib; 100 IBar *ib;
101 101
@@ -118,7 +118,7 @@ init(E_Module *m)
118} 118}
119 119
120int 120int
121shutdown(E_Module *m) 121e_modapi_shutdown(E_Module *m)
122{ 122{
123 IBar *ib; 123 IBar *ib;
124 124
@@ -132,7 +132,7 @@ shutdown(E_Module *m)
132} 132}
133 133
134int 134int
135save(E_Module *m) 135e_modapi_save(E_Module *m)
136{ 136{
137 IBar *ib; 137 IBar *ib;
138 138
@@ -142,7 +142,7 @@ save(E_Module *m)
142} 142}
143 143
144int 144int
145info(E_Module *m) 145e_modapi_info(E_Module *m)
146{ 146{
147 char buf[4096]; 147 char buf[4096];
148 148
@@ -153,7 +153,7 @@ info(E_Module *m)
153} 153}
154 154
155int 155int
156about(E_Module *m) 156e_modapi_about(E_Module *m)
157{ 157{
158 e_error_dialog_show(_("Enlightenment IBar Module"), 158 e_error_dialog_show(_("Enlightenment IBar Module"),
159 _("This is the IBar Application Launcher bar module for Enlightenment.\n" 159 _("This is the IBar Application Launcher bar module for Enlightenment.\n"
diff --git a/src/modules/ibar/e_mod_main.h b/src/modules/ibar/e_mod_main.h
index 12e07165e..c68c9c846 100644
--- a/src/modules/ibar/e_mod_main.h
+++ b/src/modules/ibar/e_mod_main.h
@@ -78,10 +78,10 @@ struct _IBar_Icon
78 unsigned char raise_on_hilight : 1; 78 unsigned char raise_on_hilight : 1;
79}; 79};
80 80
81EAPI void *init (E_Module *m); 81EAPI void *e_modapi_init (E_Module *m);
82EAPI int shutdown (E_Module *m); 82EAPI int e_modapi_shutdown (E_Module *m);
83EAPI int save (E_Module *m); 83EAPI int e_modapi_save (E_Module *m);
84EAPI int info (E_Module *m); 84EAPI int e_modapi_info (E_Module *m);
85EAPI int about (E_Module *m); 85EAPI int e_modapi_about (E_Module *m);
86 86
87#endif 87#endif
diff --git a/src/modules/pager/e_mod_main.c b/src/modules/pager/e_mod_main.c
index 701f179c2..230b28c84 100644
--- a/src/modules/pager/e_mod_main.c
+++ b/src/modules/pager/e_mod_main.c
@@ -69,7 +69,7 @@ static E_Config_DD *_conf_face_edd;
69 69
70/* public module routines. all modules must have these */ 70/* public module routines. all modules must have these */
71void * 71void *
72init(E_Module *module) 72e_modapi_init(E_Module *module)
73{ 73{
74 Pager *pager = NULL; 74 Pager *pager = NULL;
75 75
@@ -93,7 +93,7 @@ init(E_Module *module)
93} 93}
94 94
95int 95int
96shutdown(E_Module *module) 96e_modapi_shutdown(E_Module *module)
97{ 97{
98 Pager *pager; 98 Pager *pager;
99 99
@@ -108,7 +108,7 @@ shutdown(E_Module *module)
108} 108}
109 109
110int 110int
111save(E_Module *module) 111e_modapi_save(E_Module *module)
112{ 112{
113 Pager *pager; 113 Pager *pager;
114 114
@@ -119,7 +119,7 @@ save(E_Module *module)
119} 119}
120 120
121int 121int
122info(E_Module *module) 122e_modapi_info(E_Module *module)
123{ 123{
124 char buf[4096]; 124 char buf[4096];
125 125
@@ -130,7 +130,7 @@ info(E_Module *module)
130} 130}
131 131
132int 132int
133about(E_Module *module) 133e_modapi_about(E_Module *module)
134{ 134{
135 e_error_dialog_show(_("Enlightenment Pager Module"), 135 e_error_dialog_show(_("Enlightenment Pager Module"),
136 _("A pager module to navigate virtual desktops.")); 136 _("A pager module to navigate virtual desktops."));
diff --git a/src/modules/pager/e_mod_main.h b/src/modules/pager/e_mod_main.h
index e94aad1d2..63d0ab5c1 100644
--- a/src/modules/pager/e_mod_main.h
+++ b/src/modules/pager/e_mod_main.h
@@ -99,10 +99,10 @@ struct _Pager_Win
99 Evas_Object *icon_object; 99 Evas_Object *icon_object;
100}; 100};
101 101
102EAPI void *init (E_Module *module); 102EAPI void *e_modapi_init (E_Module *module);
103EAPI int shutdown (E_Module *module); 103EAPI int e_modapi_shutdown (E_Module *module);
104EAPI int save (E_Module *module); 104EAPI int e_modapi_save (E_Module *module);
105EAPI int info (E_Module *module); 105EAPI int e_modapi_info (E_Module *module);
106EAPI int about (E_Module *module); 106EAPI int e_modapi_about (E_Module *module);
107 107
108#endif 108#endif
diff --git a/src/modules/temperature/e_mod_main.c b/src/modules/temperature/e_mod_main.c
index c4337d2c8..5d125fbda 100644
--- a/src/modules/temperature/e_mod_main.c
+++ b/src/modules/temperature/e_mod_main.c
@@ -33,7 +33,7 @@ static int temperature_count;
33 33
34/* public module routines. all modules must have these */ 34/* public module routines. all modules must have these */
35void * 35void *
36init(E_Module *m) 36e_modapi_init(E_Module *m)
37{ 37{
38 Temperature *e; 38 Temperature *e;
39 39
@@ -56,7 +56,7 @@ init(E_Module *m)
56} 56}
57 57
58int 58int
59shutdown(E_Module *m) 59e_modapi_shutdown(E_Module *m)
60{ 60{
61 Temperature *e; 61 Temperature *e;
62 62
@@ -70,7 +70,7 @@ shutdown(E_Module *m)
70} 70}
71 71
72int 72int
73save(E_Module *m) 73e_modapi_save(E_Module *m)
74{ 74{
75 Temperature *e; 75 Temperature *e;
76 76
@@ -80,7 +80,7 @@ save(E_Module *m)
80} 80}
81 81
82int 82int
83info(E_Module *m) 83e_modapi_info(E_Module *m)
84{ 84{
85 char buf[4096]; 85 char buf[4096];
86 86
@@ -91,7 +91,7 @@ info(E_Module *m)
91} 91}
92 92
93int 93int
94about(E_Module *m) 94e_modapi_about(E_Module *m)
95{ 95{
96 e_error_dialog_show(_("Enlightenment Temperature Module"), 96 e_error_dialog_show(_("Enlightenment Temperature Module"),
97 _("A module to measure the ACPI Thermal sensor on Linux.\n" 97 _("A module to measure the ACPI Thermal sensor on Linux.\n"
diff --git a/src/modules/temperature/e_mod_main.h b/src/modules/temperature/e_mod_main.h
index c8dde9019..3bcfb0daf 100644
--- a/src/modules/temperature/e_mod_main.h
+++ b/src/modules/temperature/e_mod_main.h
@@ -47,10 +47,10 @@ struct _Temperature_Face
47 E_Gadman_Client *gmc; 47 E_Gadman_Client *gmc;
48}; 48};
49 49
50EAPI void *init (E_Module *m); 50EAPI void *e_modapi_init (E_Module *m);
51EAPI int shutdown (E_Module *m); 51EAPI int e_modapi_shutdown (E_Module *m);
52EAPI int save (E_Module *m); 52EAPI int e_modapi_save (E_Module *m);
53EAPI int info (E_Module *m); 53EAPI int e_modapi_info (E_Module *m);
54EAPI int about (E_Module *m); 54EAPI int e_modapi_about (E_Module *m);
55 55
56#endif 56#endif
diff --git a/src/modules/test/e_mod_main.c b/src/modules/test/e_mod_main.c
index e7786bee7..ac21d2db4 100644
--- a/src/modules/test/e_mod_main.c
+++ b/src/modules/test/e_mod_main.c
@@ -2,7 +2,7 @@
2#include "e_mod_main.h" 2#include "e_mod_main.h"
3 3
4void * 4void *
5init(E_Module *m) 5e_modapi_init(E_Module *m)
6{ 6{
7 if (m->api->version < E_MODULE_API_VERSION) 7 if (m->api->version < E_MODULE_API_VERSION)
8 { 8 {
@@ -32,11 +32,11 @@ init(E_Module *m)
32 e_menu_item_label_set(mi, _("Something Else")); 32 e_menu_item_label_set(mi, _("Something Else"));
33 m->config_menu = mn; 33 m->config_menu = mn;
34 } 34 }
35 return init; /* bogus pointer - just to say we worked */ 35 return e_modapi_init; /* bogus pointer - just to say we worked */
36} 36}
37 37
38int 38int
39shutdown(E_Module *m) 39e_modapi_shutdown(E_Module *m)
40{ 40{
41 if (m->config_menu) 41 if (m->config_menu)
42 { 42 {
@@ -48,20 +48,20 @@ shutdown(E_Module *m)
48} 48}
49 49
50int 50int
51save(E_Module *m) 51e_modapi_save(E_Module *m)
52{ 52{
53 return 1; 53 return 1;
54} 54}
55 55
56int 56int
57info(E_Module *m) 57e_modapi_info(E_Module *m)
58{ 58{
59 m->label = strdup(_("Test!!!")); 59 m->label = strdup(_("Test!!!"));
60 return 1; 60 return 1;
61} 61}
62 62
63int 63int
64about(E_Module *m) 64e_modapi_about(E_Module *m)
65{ 65{
66 e_error_dialog_show(_("Enlightenment Test Module"), 66 e_error_dialog_show(_("Enlightenment Test Module"),
67 _("This module is VERY simple and is only used to test the basic\n" 67 _("This module is VERY simple and is only used to test the basic\n"
diff --git a/src/modules/test/e_mod_main.h b/src/modules/test/e_mod_main.h
index fb456e91e..876471d4d 100644
--- a/src/modules/test/e_mod_main.h
+++ b/src/modules/test/e_mod_main.h
@@ -1,10 +1,10 @@
1#ifndef E_MOD_MAIN_H 1#ifndef E_MOD_MAIN_H
2#define E_MOD_MAIN_H 2#define E_MOD_MAIN_H
3 3
4EAPI void *init (E_Module *m); 4EAPI void *e_modapi_init (E_Module *m);
5EAPI int shutdown (E_Module *m); 5EAPI int e_modapi_shutdown (E_Module *m);
6EAPI int save (E_Module *m); 6EAPI int e_modapi_save (E_Module *m);
7EAPI int info (E_Module *m); 7EAPI int e_modapi_info (E_Module *m);
8EAPI int about (E_Module *m); 8EAPI int e_modapi_about (E_Module *m);
9 9
10#endif 10#endif