summaryrefslogtreecommitdiff
path: root/legacy/ecore/src
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2005-03-04 19:29:39 +0000
committerKim Woelders <kim@woelders.dk>2005-03-04 19:29:39 +0000
commit0d1f32f814e8d4e447856023fc24138f0b1fc1c7 (patch)
tree9d0a53d1dc9d2d3fd519a08d84b3ddd190ac4378 /legacy/ecore/src
parent57ca2efd5867902cc32104e3dbb2f3618580b5c1 (diff)
Add missing prototypes, associated cleanups.
SVN revision: 13616
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_con/Ecore_Con.h4
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con.c4
-rw-r--r--legacy/ecore/src/lib/ecore_config/ecore_config_ipc_ecore.c14
-rw-r--r--legacy/ecore/src/lib/ecore_config/ecore_config_private.h4
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h2
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c2
6 files changed, 17 insertions, 13 deletions
diff --git a/legacy/ecore/src/lib/ecore_con/Ecore_Con.h b/legacy/ecore/src/lib/ecore_con/Ecore_Con.h
index a20f8dc47d..f5e4221fe8 100644
--- a/legacy/ecore/src/lib/ecore_con/Ecore_Con.h
+++ b/legacy/ecore/src/lib/ecore_con/Ecore_Con.h
@@ -119,9 +119,9 @@ extern "C" {
119 EAPI int ecore_con_init(void); 119 EAPI int ecore_con_init(void);
120 EAPI int ecore_con_shutdown(void); 120 EAPI int ecore_con_shutdown(void);
121 121
122 EAPI Ecore_Con_Server *ecore_con_server_add(Ecore_Con_Type type, char *name, int port, const void *data); 122 EAPI Ecore_Con_Server *ecore_con_server_add(Ecore_Con_Type type, const char *name, int port, const void *data);
123 123
124 EAPI Ecore_Con_Server *ecore_con_server_connect(Ecore_Con_Type type, char *name, int port, const void *data); 124 EAPI Ecore_Con_Server *ecore_con_server_connect(Ecore_Con_Type type, const char *name, int port, const void *data);
125 EAPI void *ecore_con_server_del(Ecore_Con_Server *svr); 125 EAPI void *ecore_con_server_del(Ecore_Con_Server *svr);
126 EAPI void *ecore_con_server_data_get(Ecore_Con_Server *svr); 126 EAPI void *ecore_con_server_data_get(Ecore_Con_Server *svr);
127 EAPI int ecore_con_server_connected_get(Ecore_Con_Server *svr); 127 EAPI int ecore_con_server_connected_get(Ecore_Con_Server *svr);
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con.c b/legacy/ecore/src/lib/ecore_con/ecore_con.c
index 96b2d80061..a0f3211aad 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con.c
@@ -137,7 +137,7 @@ ecore_con_shutdown(void)
137 */ 137 */
138Ecore_Con_Server * 138Ecore_Con_Server *
139ecore_con_server_add(Ecore_Con_Type compl_type, 139ecore_con_server_add(Ecore_Con_Type compl_type,
140 char *name, 140 const char *name,
141 int port, 141 int port,
142 const void *data) 142 const void *data)
143{ 143{
@@ -356,7 +356,7 @@ ecore_con_server_add(Ecore_Con_Type compl_type,
356 */ 356 */
357Ecore_Con_Server * 357Ecore_Con_Server *
358ecore_con_server_connect(Ecore_Con_Type compl_type, 358ecore_con_server_connect(Ecore_Con_Type compl_type,
359 char *name, 359 const char *name,
360 int port, 360 int port,
361 const void *data) 361 const void *data)
362{ 362{
diff --git a/legacy/ecore/src/lib/ecore_config/ecore_config_ipc_ecore.c b/legacy/ecore/src/lib/ecore_config/ecore_config_ipc_ecore.c
index 9899f1cc59..918c2be707 100644
--- a/legacy/ecore/src/lib/ecore_config/ecore_config_ipc_ecore.c
+++ b/legacy/ecore/src/lib/ecore_config/ecore_config_ipc_ecore.c
@@ -1,4 +1,5 @@
1/* by Azundris, with thanks to Corey Donohoe <atmos@atmos.org> */ 1/* by Azundris, with thanks to Corey Donohoe <atmos@atmos.org> */
2#include "ecore_private.h"
2#include "ecore_config_ipc.h" 3#include "ecore_config_ipc.h"
3#include "ecore_config_util.h" 4#include "ecore_config_util.h"
4#include "ecore_config_private.h" 5#include "ecore_config_private.h"
@@ -19,7 +20,7 @@
19#include "Ecore_Config.h" 20#include "Ecore_Config.h"
20#include "config.h" 21#include "config.h"
21 22
22#if 1 /* FIXME - No prototypes? */ 23
23/*****************************************************************************/ 24/*****************************************************************************/
24 25
25static int 26static int
@@ -46,7 +47,7 @@ _ecore_config_ipc_ecore_string_get(char **m, char **r)
46} 47}
47 48
48static char * 49static char *
49_ecore_config_ipc_global_prop_list(Ecore_Config_Server * srv, const long serial) 50_ecore_config_ipc_global_prop_list(Ecore_Config_Server * srv __UNUSED__, long serial __UNUSED__)
50{ 51{
51 Ecore_Config_DB_File *db; 52 Ecore_Config_DB_File *db;
52 char **keys; 53 char **keys;
@@ -227,7 +228,7 @@ _ecore_config_ipc_ecore_handle_request(Ecore_Ipc_Server * server,
227/*****************************************************************************/ 228/*****************************************************************************/
228 229
229static int 230static int
230_ecore_config_ipc_client_add(void *data, int type, void *event) 231_ecore_config_ipc_client_add(void *data, int type __UNUSED__, void *event)
231{ 232{
232 Ecore_Ipc_Server **server; 233 Ecore_Ipc_Server **server;
233 Ecore_Ipc_Event_Client_Data *e; 234 Ecore_Ipc_Event_Client_Data *e;
@@ -243,7 +244,7 @@ _ecore_config_ipc_client_add(void *data, int type, void *event)
243} 244}
244 245
245static int 246static int
246_ecore_config_ipc_client_del(void *data, int type, void *event) 247_ecore_config_ipc_client_del(void *data, int type __UNUSED__, void *event)
247{ 248{
248 Ecore_Ipc_Server **server; 249 Ecore_Ipc_Server **server;
249 Ecore_Ipc_Event_Client_Data *e; 250 Ecore_Ipc_Event_Client_Data *e;
@@ -259,7 +260,7 @@ _ecore_config_ipc_client_del(void *data, int type, void *event)
259} 260}
260 261
261static int 262static int
262_ecore_config_ipc_client_sent(void *data, int type, void *event) 263_ecore_config_ipc_client_sent(void *data, int type __UNUSED__, void *event)
263{ 264{
264 Ecore_Ipc_Server **server; 265 Ecore_Ipc_Server **server;
265 Ecore_Ipc_Event_Client_Data *e; 266 Ecore_Ipc_Event_Client_Data *e;
@@ -277,7 +278,7 @@ _ecore_config_ipc_client_sent(void *data, int type, void *event)
277/*****************************************************************************/ 278/*****************************************************************************/
278 279
279int 280int
280_ecore_config_mod_init(char *pipe_name, void **data) 281_ecore_config_mod_init(const char *pipe_name, void **data)
281{ 282{
282 Ecore_Ipc_Server **server; 283 Ecore_Ipc_Server **server;
283 struct stat st; 284 struct stat st;
@@ -376,4 +377,3 @@ _ecore_config_mod_poll(void **data)
376} 377}
377 378
378/*****************************************************************************/ 379/*****************************************************************************/
379#endif
diff --git a/legacy/ecore/src/lib/ecore_config/ecore_config_private.h b/legacy/ecore/src/lib/ecore_config/ecore_config_private.h
index 543d74c7a5..d3bff9a89d 100644
--- a/legacy/ecore/src/lib/ecore_config/ecore_config_private.h
+++ b/legacy/ecore/src/lib/ecore_config/ecore_config_private.h
@@ -8,6 +8,10 @@ extern int DEBUG;
8 8
9typedef struct _Ecore_Config_DB_File Ecore_Config_DB_File; 9typedef struct _Ecore_Config_DB_File Ecore_Config_DB_File;
10 10
11int _ecore_config_mod_init(const char *pipe_name, void **data);
12int _ecore_config_mod_exit(void **data);
13int _ecore_config_mod_poll(void **data);
14
11Ecore_Config_DB_File *_ecore_config_db_open_read(const char *file); 15Ecore_Config_DB_File *_ecore_config_db_open_read(const char *file);
12Ecore_Config_DB_File *_ecore_config_db_open_write(const char *file); 16Ecore_Config_DB_File *_ecore_config_db_open_write(const char *file);
13void _ecore_config_db_close(Ecore_Config_DB_File *db); 17void _ecore_config_db_close(Ecore_Config_DB_File *db);
diff --git a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
index ecb9c1c220..bd43673dc2 100644
--- a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
+++ b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
@@ -104,7 +104,7 @@ extern "C" {
104 EAPI int ecore_ipc_shutdown(void); 104 EAPI int ecore_ipc_shutdown(void);
105 105
106 /* FIXME: need to add protocol type parameter */ 106 /* FIXME: need to add protocol type parameter */
107 EAPI Ecore_Ipc_Server *ecore_ipc_server_add(Ecore_Ipc_Type type, char *name, int port, const void *data); 107 EAPI Ecore_Ipc_Server *ecore_ipc_server_add(Ecore_Ipc_Type type, const char *name, int port, const void *data);
108 108
109 /* FIXME: need to add protocol type parameter */ 109 /* FIXME: need to add protocol type parameter */
110 EAPI Ecore_Ipc_Server *ecore_ipc_server_connect(Ecore_Ipc_Type type, char *name, int port, const void *data); 110 EAPI Ecore_Ipc_Server *ecore_ipc_server_connect(Ecore_Ipc_Type type, char *name, int port, const void *data);
diff --git a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
index 55e2687178..1c0903b337 100644
--- a/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
+++ b/legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c
@@ -271,7 +271,7 @@ ecore_ipc_shutdown(void)
271 * @todo Need to add protocol type parameter to this function. 271 * @todo Need to add protocol type parameter to this function.
272 */ 272 */
273Ecore_Ipc_Server * 273Ecore_Ipc_Server *
274ecore_ipc_server_add(Ecore_Ipc_Type compl_type, char *name, int port, const void *data) 274ecore_ipc_server_add(Ecore_Ipc_Type compl_type, const char *name, int port, const void *data)
275{ 275{
276 Ecore_Ipc_Server *svr; 276 Ecore_Ipc_Server *svr;
277 Ecore_Ipc_Type type; 277 Ecore_Ipc_Type type;