Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_ipc.c e_ipc_handlers.h e_remote_main.c Log Message: list availabel fonts, and handle reply =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -3 -r1.34 -r1.35 --- e_ipc.c 31 May 2005 03:26:01 -0000 1.34 +++ e_ipc.c 31 May 2005 07:13:27 -0000 1.35 @@ -78,30 +78,6 @@ #undef TYPE /* here to steal from to port over to the new e_ipc_handlers.h */ #if 0 - case E_IPC_OP_FONT_AVAILABLE_LIST: - { - E_Font_Available *fa; - Evas_List *dat = NULL, *l, *fa_list; - void *data; - int bytes; - - fa_list = e_font_available_list(); - for (l = fa_list; l; l = l->next) - { - fa = l->data; - dat = evas_list_append(dat, fa->name); - } - data = e_ipc_codec_str_list_enc(dat, &bytes); - ecore_ipc_client_send(e->client, - E_IPC_DOMAIN_REPLY, - E_IPC_OP_FONT_AVAILABLE_LIST_REPLY, - 0/*ref*/, 0/*ref_to*/, 0/*response*/, - data, bytes); - free(data); - evas_list_free(dat); - e_font_available_list_free(fa_list); - } - break; case E_IPC_OP_FONT_APPLY: { e_font_apply(); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- e_ipc_handlers.h 31 May 2005 07:02:08 -0000 1.7 +++ e_ipc_handlers.h 31 May 2005 07:13:27 -0000 1.8 @@ -111,6 +111,12 @@ } \ break; +#define LIST() \ + Evas_List *dat = NULL, *l; + +#define DECODE(__dec) \ + if (__dec(e->data, e->size, &dat)) + #endif @@ -330,7 +336,15 @@ #elif (TYPE == E_REMOTE_OUT) #elif (TYPE == E_WM_IN) #elif (TYPE == E_REMOTE_IN) -// + GENERIC(HANDLER); + LIST(); + DECODE(e_ipc_codec_str_list_dec) { + FOR(dat) { + printf("REPLY: \"%s\"\n", (char *)(l->data)); + } + FREE_LIST(dat); + } + END_GENERIC(); #endif #undef HANDLER =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_remote_main.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -3 -r1.34 -r1.35 --- e_remote_main.c 31 May 2005 03:55:07 -0000 1.34 +++ e_remote_main.c 31 May 2005 07:13:27 -0000 1.35 @@ -951,24 +951,6 @@ else printf("REPLY: FALLBACK NONE\n"); break; - case E_IPC_OP_FONT_AVAILABLE_LIST_REPLY: - if (e->data) - { - Evas_List *available; - E_Font_Available *fa; - - available = _e_ipc_font_available_list_dec(e->data, e->size); - while (available) - { - fa = available->data; - printf("REPLY: AVAILABLE NAME=\"%s\"\n", fa->name); - available = evas_list_remove_list(available, available); - E_FREE(fa); - } - } - else - printf("REPLY: AVAILABLE NONE\n"); - break; case E_IPC_OP_FONT_DEFAULT_GET_REPLY: if (e->data) { ------------------------------------------------------- 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