aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_ipc_codec.c
diff options
context:
space:
mode:
authorDan Sinclair <dj2>2005-06-04 20:10:49 +0000
committerDan Sinclair <dj2@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-06-04 20:10:49 +0000
commit6b9c3385000aa796e9a9ddb019302ad4487d8d4b (patch)
tree30472366bfa766c7f2dd150567c67cd333955046 /src/bin/e_ipc_codec.c
parentadd -font-cache-get/set and -image-cache-set/get back into ipc (diff)
downloadenlightenment-6b9c3385000aa796e9a9ddb019302ad4487d8d4b.tar.gz
- add in the -dir-list-append/prepend/remove functions.
SVN revision: 15125
Diffstat (limited to 'src/bin/e_ipc_codec.c')
-rw-r--r--src/bin/e_ipc_codec.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/bin/e_ipc_codec.c b/src/bin/e_ipc_codec.c
index 862c21e18..5056c010a 100644
--- a/src/bin/e_ipc_codec.c
+++ b/src/bin/e_ipc_codec.c
@@ -9,6 +9,7 @@ static Eet_Data_Descriptor *_e_ipc_int_edd = NULL;
static Eet_Data_Descriptor *_e_ipc_double_edd = NULL;
static Eet_Data_Descriptor *_e_ipc_2int_edd = NULL;
static Eet_Data_Descriptor *_e_ipc_str_edd = NULL;
+static Eet_Data_Descriptor *_e_ipc_2str_edd = NULL;
static Eet_Data_Descriptor *_e_ipc_str_list_edd = NULL;
static Eet_Data_Descriptor *_e_ipc_str_int_edd = NULL;
static Eet_Data_Descriptor *_e_ipc_str_int_list_edd = NULL;
@@ -31,6 +32,10 @@ e_ipc_codec_init(void)
_e_ipc_str_edd = E_CONFIG_DD_NEW("str", E_Ipc_Str);
E_CONFIG_VAL(_e_ipc_str_edd, E_Ipc_Str, str, STR);
+
+ _e_ipc_2str_edd = E_CONFIG_DD_NEW("2str", E_Ipc_2Str);
+ E_CONFIG_VAL(_e_ipc_2str_edd, E_Ipc_2Str, str1, STR);
+ E_CONFIG_VAL(_e_ipc_2str_edd, E_Ipc_2Str, str2, STR);
_e_ipc_str_list_edd = E_CONFIG_DD_NEW("str_list", E_Ipc_List);
E_CONFIG_LIST(_e_ipc_str_list_edd, E_Ipc_List, list, _e_ipc_str_edd);
@@ -59,6 +64,7 @@ e_ipc_codec_shutdown(void)
E_CONFIG_DD_FREE(_e_ipc_double_edd);
E_CONFIG_DD_FREE(_e_ipc_2int_edd);
E_CONFIG_DD_FREE(_e_ipc_str_edd);
+ E_CONFIG_DD_FREE(_e_ipc_2str_edd);
E_CONFIG_DD_FREE(_e_ipc_str_list_edd);
E_CONFIG_DD_FREE(_e_ipc_str_int_edd);
E_CONFIG_DD_FREE(_e_ipc_str_int_list_edd);
@@ -157,6 +163,28 @@ e_ipc_codec_str_enc(char *str, int *size_ret)
}
int
+e_ipc_codec_2str_dec(char *data, int bytes, E_Ipc_2Str **dest)
+{
+ E_Ipc_2Str *dat;
+
+ if (!data) return 0;
+ dat = eet_data_descriptor_decode(_e_ipc_2str_edd, data, bytes);
+ if (!dat) return 0;
+ if (dest) *dest = dat;
+ return 1;
+}
+
+void *
+e_ipc_codec_2str_enc(char *str1, char *str2, int *size_ret)
+{
+ E_Ipc_2Str dat;
+
+ dat.str1 = str1;
+ dat.str2 = str2;
+ return eet_data_descriptor_encode(_e_ipc_2str_edd, &dat, size_ret);
+}
+
+int
e_ipc_codec_str_list_dec(char *data, int bytes, Evas_List **dest)
{
E_Ipc_List *dat;