summaryrefslogtreecommitdiff
path: root/src/bin/e_ipc.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-06-23 03:29:37 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-06-23 03:29:37 +0000
commit9df4e18dbd2bf853d7876b7f0be98492ce9b0225 (patch)
tree4d6ebd3468ae169f8b949a6fb82e5c159c3fe015 /src/bin/e_ipc.c
parentae6595f0b14e35c400c152c4bf7df4b29c28ea3c (diff)
bugs , issues, patches.
SVN revision: 15501
Diffstat (limited to 'src/bin/e_ipc.c')
-rw-r--r--src/bin/e_ipc.c137
1 files changed, 0 insertions, 137 deletions
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index a1772db..6db9229 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -78,143 +78,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
78#undef TYPE 78#undef TYPE
79/* here to steal from to port over to the new e_ipc_handlers.h */ 79/* here to steal from to port over to the new e_ipc_handlers.h */
80#if 0 80#if 0
81 case E_IPC_OP_FONT_FALLBACK_APPEND:
82 {
83 char *font_name = NULL;
84
85 if (e_ipc_codec_str_dec(e->data, e->size, &font_name))
86 {
87 e_font_fallback_append(font_name);
88 free(font_name);
89 e_config_save_queue();
90 }
91 }
92 break;
93 case E_IPC_OP_FONT_FALLBACK_PREPEND:
94 {
95 char *font_name = NULL;
96
97 if (e_ipc_codec_str_dec(e->data, e->size, &font_name))
98 {
99 e_font_fallback_prepend(font_name);
100 free(font_name);
101 e_config_save_queue();
102 }
103 }
104 break;
105 case E_IPC_OP_FONT_FALLBACK_LIST:
106 {
107 E_Font_Fallback *ff;
108 Evas_List *dat = NULL, *l;
109 void *data;
110 int bytes;
111
112 for (l = e_font_available_list(); l; l = l->next)
113 {
114 ff = l->data;
115 dat = evas_list_append(dat, ff->name);
116 }
117 data = e_ipc_codec_str_list_enc(dat, &bytes);
118 ecore_ipc_client_send(e->client,
119 E_IPC_DOMAIN_REPLY,
120 E_IPC_OP_FONT_FALLBACK_LIST_REPLY,
121 0/*ref*/, 0/*ref_to*/, 0/*response*/,
122 data, bytes);
123 free(data);
124 evas_list_free(dat);
125 }
126 break;
127 case E_IPC_OP_FONT_FALLBACK_REMOVE:
128 {
129 char *font_name = NULL;
130
131 if (e_ipc_codec_str_dec(e->data, e->size, &font_name))
132 {
133 e_font_fallback_remove(font_name);
134 free(font_name);
135 e_config_save_queue();
136 }
137 }
138 break;
139 case E_IPC_OP_FONT_DEFAULT_SET:
140 {
141 E_Ipc_2Str_Int *v = NULL;
142
143 if (e_ipc_codec_2str_int_dec(e->data, e->size, &v))
144 {
145 e_font_default_set(v->str1, v->str2, v->val);
146 free(v->str1);
147 free(v->str2);
148 free(v);
149 e_config_save_queue();
150 }
151 }
152 break;
153 case E_IPC_OP_FONT_DEFAULT_GET:
154 {
155 E_Font_Default *efd;
156 char *tclass = NULL;
157 void *data;
158 int bytes;
159
160 if (e_ipc_codec_str_dec(e->data, e->size, &tclass))
161 {
162 efd = e_font_default_get(tclass);
163 data = e_ipc_codec_2str_int_enc(efd->text_class, efd->font, efd->size, &bytes);
164 ecore_ipc_client_send(e->client,
165 E_IPC_DOMAIN_REPLY,
166 E_IPC_OP_FONT_DEFAULT_GET_REPLY,
167 0/*ref*/, 0/*ref_to*/, 0/*response*/,
168 data, bytes);
169 free(data);
170 free(tclass);
171 }
172 }
173 break;
174 case E_IPC_OP_FONT_DEFAULT_REMOVE:
175 {
176 char *tclass = NULL;
177
178 if (e_ipc_codec_str_dec(e->data, e->size, &tclass))
179 {
180 e_font_default_remove(tclass);
181 free(tclass);
182 e_config_save_queue();
183 }
184 }
185 break;
186 case E_IPC_OP_FONT_DEFAULT_LIST:
187 {
188 E_Ipc_2Str_Int *v;
189 E_Font_Default *efd;
190 Evas_List *dat = NULL, *l;
191 void *data;
192 int bytes;
193
194 for (l = e_font_default_list(); l; l = l->next)
195 {
196 efd = l->data;
197 v = calloc(1, sizeof(E_Ipc_2Str_Int));
198 v->str1 = efd->text_class;
199 v->str2 = efd->font;
200 v->val = efd->size;
201 dat = evas_list_append(dat, v);
202 }
203 data = e_ipc_codec_2str_int_list_enc(dat, &bytes);
204 ecore_ipc_client_send(e->client,
205 E_IPC_DOMAIN_REPLY,
206 E_IPC_OP_FONT_DEFAULT_LIST_REPLY,
207 0/*ref*/, 0/*ref_to*/, 0/*response*/,
208 data, bytes);
209 while (dat)
210 {
211 v = dat->data;
212 free(v);
213 dat = evas_list_remove_list(dat, dat);
214 }
215 free(data);
216 }
217 break;
218 case E_IPC_OP_BINDING_MOUSE_LIST: 81 case E_IPC_OP_BINDING_MOUSE_LIST:
219 { 82 {
220 Evas_List *bindings; 83 Evas_List *bindings;