aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_ipc_codec.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2008-12-17 15:33:43 +0000
committerCedric BAIL <cedric.bail@free.fr>2008-12-17 15:33:43 +0000
commit773d102291f1341a5e11c5a05027ede526b8d600 (patch)
treef9f367ea2be603598d4264c7b8b699f3046da8f2 /src/bin/e_ipc_codec.c
parentupdated cs.po (diff)
downloadenlightenment-773d102291f1341a5e11c5a05027ede526b8d600.tar.gz
This commit is huge. I did test it a lot on my computer, and it run fine here.
But is so big i fear i could have broken some piece of code. So report any wrong behaviour to me (cedric on #edevelop). So moving e17 and efreet to eina_hash. With a little efreet API break so they must come together. SVN revision: 38185
Diffstat (limited to 'src/bin/e_ipc_codec.c')
-rw-r--r--src/bin/e_ipc_codec.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/bin/e_ipc_codec.c b/src/bin/e_ipc_codec.c
index 209b44fa7..b25eccf69 100644
--- a/src/bin/e_ipc_codec.c
+++ b/src/bin/e_ipc_codec.c
@@ -28,15 +28,27 @@ static Eet_Data_Descriptor *_e_ipc_3int_3str_list_edd = NULL;
static Eet_Data_Descriptor *_e_ipc_str_4int_edd = NULL;
static Eet_Data_Descriptor *_e_ipc_str_4int_list_edd = NULL;
+static void *
+_e_ipc_codec_eina_hash_add(void *hash, const void *key, void *data)
+{
+ Eina_Hash *result = hash;
+
+ if (!result) result = eina_hash_string_superfast_new(NULL);
+ if (!result) return NULL;
+
+ eina_hash_add(result, key, data);
+ return result;
+}
+
#define E_IPC_DD_NEW(str, typ) \
eet_data_descriptor_new(str, sizeof(typ), \
(void *(*) (void *))eina_list_next, \
(void *(*) (void *, void *))eina_list_append, \
(void *(*) (void *))eina_list_data_get, \
(void *(*) (void *))eina_list_free, \
- (void (*) (void *, int (*) (void *, const char *, void *, void *), void *))evas_hash_foreach, \
- (void *(*) (void *, const char *, void *))evas_hash_add, \
- (void (*) (void *))evas_hash_free)
+ (void (*) (void *, int (*) (void *, const char *, void *, void *), void *))eina_hash_foreach, \
+ (void *(*) (void *, const char *, void *))_e_ipc_codec_eina_hash_add, \
+ (void (*) (void *))eina_hash_free)
/* externally accessible functions */
EAPI int