parent
a7c8387b1e
commit
d49cd726fa
|
@ -265,28 +265,29 @@ break;
|
||||||
GENERIC(HDL);
|
GENERIC(HDL);
|
||||||
Evas_List *dat = NULL;
|
Evas_List *dat = NULL;
|
||||||
DECODE(e_ipc_codec_str_int_list_dec) {
|
DECODE(e_ipc_codec_str_int_list_dec) {
|
||||||
RESPONSE(r, E_Response_Module_List, HDL);
|
LIST();
|
||||||
|
int count;
|
||||||
|
RESPONSE(r, E_Response_Module_List, HDL);
|
||||||
|
|
||||||
/* FIXME - this is a mess, needs to be merged into macros... */
|
/* FIXME - this is a mess, needs to be merged into macros... */
|
||||||
int count = evas_list_count(dat);
|
count = evas_list_count(dat);
|
||||||
r->modules = malloc(sizeof(E_Response_Module_Data *) * count);
|
r->modules = malloc(sizeof(E_Response_Module_Data *) * count);
|
||||||
r->count = count;
|
r->count = count;
|
||||||
|
|
||||||
LIST()
|
count = 0;
|
||||||
count = 0;
|
FOR(dat) {
|
||||||
FOR(dat) {
|
E_Response_Module_Data *md;
|
||||||
E_Response_Module_Data *md;
|
E_Ipc_Str_Int *v;
|
||||||
E_Ipc_Str_Int *v;
|
|
||||||
|
v = l->data;
|
||||||
v = l->data;
|
md = malloc(sizeof(E_Response_Module_Data));
|
||||||
md = malloc(sizeof(E_Response_Module_Data));
|
|
||||||
|
md->name = v->str;
|
||||||
md->name = v->str;
|
md->enabled = v->val;
|
||||||
md->enabled = v->val;
|
r->modules[count] = md;
|
||||||
r->modules[count] = md;
|
count++;
|
||||||
count ++;
|
}
|
||||||
}
|
END_RESPONSE(r, E_RESPONSE_MODULE_LIST); /* FIXME - need a custom free */
|
||||||
END_RESPONSE(r, E_RESPONSE_MODULE_LIST); /* FIXME - need a custom free */
|
|
||||||
}
|
}
|
||||||
END_GENERIC();
|
END_GENERIC();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue