Enlightenment CVS committal Author : handyande Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_ipc_handlers.h Log Message: More -dirs-list work =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- e_ipc_handlers.h 3 Jun 2005 02:37:26 -0000 1.17 +++ e_ipc_handlers.h 3 Jun 2005 09:05:33 -0000 1.18 @@ -460,16 +460,31 @@ /****************************************************************************/ #define HDL E_IPC_OP_DIRS_LIST #if (TYPE == E_REMOTE_OPTIONS) - OP("-dirs-list", 1, "List the directory of type specified by 'OPT1', try 'backgrounds'", 1, HDL) + OP("-dirs-list", 1, "List the directory of type specified by 'OPT1', try 'themes'", 1, HDL) #elif (TYPE == E_REMOTE_OUT) REQ_STRING(params[0], HDL); #elif (TYPE == E_WM_IN) STRING(s, HDL); LIST_DATA() Evas_List *dir_list = NULL; - if (!strcmp(s, "backgrounds")) + if (!strcmp(s, "data")) + dir_list = e_path_dir_list_get(path_data); + else if (!strcmp(s, "images")) + dir_list = e_path_dir_list_get(path_images); + else if (!strcmp(s, "fonts")) + dir_list = e_path_dir_list_get(path_fonts); + else if (!strcmp(s, "themes")) + dir_list = e_path_dir_list_get(path_themes); + else if (!strcmp(s, "init")) + dir_list = e_path_dir_list_get(path_init); + else if (!strcmp(s, "icons")) + dir_list = e_path_dir_list_get(path_icons); + else if (!strcmp(s, "modules")) + dir_list = e_path_dir_list_get(path_modules); + else if (!strcmp(s, "backgrounds")) dir_list = e_path_dir_list_get(path_backgrounds); E_Path_Dir *p; + dat = evas_list_append(dat, strdup(s)); FOR(dir_list) { p = l->data; dat = evas_list_append(dat, p->dir); } @@ -494,7 +509,10 @@ LIST(); DECODE(e_ipc_codec_str_list_dec) { FOR(dat) { - printf("REPLY: \"%s\"\n", (char *)(l->data)); + if (dat == l) + printf("REPLY: Listing for \"%s\"\n", (char *)(l->data)); + else + printf("REPLY: \"%s\"\n", (char *)(l->data)); } FREE_LIST(dat); } ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs