Enlightenment CVS committal Author : handyande Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_ipc_handlers.h Log Message: Port the dirs_list IPC to libe - now up to the functionality it was before IPC changes =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- e_ipc_handlers.h 3 Jun 2005 09:05:33 -0000 1.18 +++ e_ipc_handlers.h 3 Jun 2005 17:43:48 -0000 1.19 @@ -517,6 +517,52 @@ FREE_LIST(dat); } END_GENERIC(); +#elif (TYPE == E_LIB_IN) + GENERIC(HDL); + LIST(); + DECODE(e_ipc_codec_str_list_dec) { + int count; + char *p, *type; + int res; + RESPONSE(r, E_Response_Dirs_List, HDL); + + /* FIXME - this is a mess, needs to be merged into macros... */ + count = evas_list_count(dat); + r->dirs = malloc(sizeof(char *) * count); + r->count = count - 1; /* leave off the "type" */ + + count = 0; + FOR(dat) { + if (dat == l) + type = l->data; + else { + r->dirs[count] = l->data; + count++; + } + } + + printf("TYPE %s\n", type); + if (!strcmp(type, "data")) + res = 0; + else if (!strcmp(type, "images")) + res = 0; + else if (!strcmp(type, "fonts")) + res = 0; + else if (!strcmp(type, "themes")) + res = E_RESPONSE_THEME_DIRS_LIST; + else if (!strcmp(type, "init")) + res = 0; + else if (!strcmp(type, "icons")) + res = 0; + else if (!strcmp(type, "modules")) + res = E_RESPONSE_MODULE_DIRS_LIST; + else if (!strcmp(type, "backgrounds")) + res = E_RESPONSE_BACKGROUND_DIRS_LIST; + printf("RES %d\n"); + END_RESPONSE(r, res); /* FIXME - need a custom free */ + } + END_GENERIC(); + #endif #undef HDL ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs