Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_ipc_handlers.h e_ipc_handlers_list.h e_remote_main.c 


Log Message:
Add profile-list.
And data is null, so don't care about it (stupid me).

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -3 -r1.82 -r1.83
--- e_ipc_handlers.h    27 Sep 2005 16:36:14 -0000      1.82
+++ e_ipc_handlers.h    27 Sep 2005 21:11:30 -0000      1.83
@@ -1490,13 +1490,14 @@
 /****************************************************************************/
 #define HDL E_IPC_OP_DIRS_APPEND
 #if (TYPE == E_REMOTE_OPTIONS)
-   OP("-dirs-list-append", 1, "Append the directory of type specified by 'OPT2 
to the list in 'OPT1'", 0, HDL)
+   OP("-dirs-list-append", 2, "Append the directory of type specified by 
'OPT2' to the list in 'OPT1'", 0, HDL)
 #elif (TYPE == E_REMOTE_OUT)
    REQ_2STRING(params[0], params[1], HDL);
 #elif (TYPE == E_WM_IN)
    STRING2(s1, s2, e_2str, HDL);
-   { E_PATH_GET(path, s1)
-     e_path_user_path_append(path, s2);
+   {
+      E_PATH_GET(path, s1)
+      e_path_user_path_append(path, s2);
    }
    SAVE;
    END_STRING2(e_2str)
@@ -1508,13 +1509,14 @@
 /****************************************************************************/
 #define HDL E_IPC_OP_DIRS_PREPEND
 #if (TYPE == E_REMOTE_OPTIONS)
-   OP("-dirs-list-prepend", 1, "Prepend the directory of type specified by 
'OPT2 to the list in 'OPT1'", 0, HDL)
+   OP("-dirs-list-prepend", 2, "Prepend the directory of type specified by 
'OPT2' to the list in 'OPT1'", 0, HDL)
 #elif (TYPE == E_REMOTE_OUT)
    REQ_2STRING(params[0], params[1], HDL);
 #elif (TYPE == E_WM_IN)
    STRING2(s1, s2, e_2str, HDL);
-   { E_PATH_GET(path, s1)
-     e_path_user_path_prepend(path, s2);
+   {
+      E_PATH_GET(path, s1)
+      e_path_user_path_prepend(path, s2);
    }
    SAVE;
    END_STRING2(e_2str)
@@ -1526,13 +1528,14 @@
 /****************************************************************************/
 #define HDL E_IPC_OP_DIRS_REMOVE
 #if (TYPE == E_REMOTE_OPTIONS)
-   OP("-dirs-list-remove", 1, "Remove the directory of type specified by 'OPT2 
to the list in 'OPT1'", 0, HDL)
+   OP("-dirs-list-remove", 2, "Remove the directory of type specified by 
'OPT2' from the list in 'OPT1'", 0, HDL)
 #elif (TYPE == E_REMOTE_OUT)
    REQ_2STRING(params[0], params[1], HDL);
 #elif (TYPE == E_WM_IN)
    STRING2(s1, s2, e_2str, HDL);
-   { E_PATH_GET(path, s1)
-     e_path_user_path_remove(path, s2);
+   {
+      E_PATH_GET(path, s1)
+      e_path_user_path_remove(path, s2);
    }
    SAVE;
    END_STRING2(e_2str)
@@ -4832,6 +4835,49 @@
 #undef HDL
 
 /****************************************************************************/
+#define HDL E_IPC_OP_PROFILE_LIST
+#if (TYPE == E_REMOTE_OPTIONS)
+   OP("-profile-list", 0, "List all existing profiles", 1, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+   REQ_NULL(HDL);
+#elif (TYPE == E_WM_IN)
+   GENERIC(HDL);
+   LIST_DATA();
+   Evas_List *profiles;
+   profiles = e_config_profile_list();
+   printf("%p\n", profiles);
+   ENCODE(profiles, e_ipc_codec_str_list_enc);
+   SEND_DATA(E_IPC_OP_PROFILE_LIST_REPLY);
+   while (profiles)
+     {
+       printf("%s\n", profiles->data);
+       free(profiles->data);
+       profiles = evas_list_remove_list(profiles, profiles);
+     }
+   END_GENERIC();
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_PROFILE_LIST_REPLY
+#if (TYPE == E_REMOTE_OPTIONS)
+#elif (TYPE == E_REMOTE_OUT)
+#elif (TYPE == E_WM_IN)
+#elif (TYPE == E_REMOTE_IN)
+   GENERIC(HDL);
+   LIST();
+   DECODE(e_ipc_codec_str_list_dec) {
+      FOR(dat) {
+        printf("REPLY: \"%s\"\n", (char *)(l->data));
+      }
+      FREE_LIST(dat);
+   }
+   END_GENERIC();
+#endif
+#undef HDL
+
+/****************************************************************************/
 #define HDL E_IPC_OP_DESKTOP_NAME_ADD
 #if (TYPE == E_REMOTE_OPTIONS)
    OP("-desktop-name-add", 5, "Add a desktop name definition. OPT1 = container 
no. OPT2 = zone no. OPT3 = desk_x. OPT4 = desk_y. OPT5 = desktop name", 0, HDL)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers_list.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- e_ipc_handlers_list.h       27 Sep 2005 16:36:14 -0000      1.26
+++ e_ipc_handlers_list.h       27 Sep 2005 21:11:30 -0000      1.27
@@ -215,9 +215,6 @@
 #define E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_SET 215
 #define E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_GET 216
 #define E_IPC_OP_FOCUS_REVERT_ON_HIDE_OR_CLOSE_GET_REPLY 217
-#define E_IPC_OP_PROFILE_SET 218
-#define E_IPC_OP_PROFILE_GET 219
-#define E_IPC_OP_PROFILE_GET_REPLY 220
 #define E_IPC_OP_DESKTOP_NAME_ADD 221
 #define E_IPC_OP_DESKTOP_NAME_DEL 222
 #define E_IPC_OP_DESKTOP_NAME_LIST 223
@@ -287,3 +284,9 @@
 #define E_IPC_OP_ALWAYS_CLICK_TO_FOCUS_SET 279
 #define E_IPC_OP_ALWAYS_CLICK_TO_FOCUS_GET 280
 #define E_IPC_OP_ALWAYS_CLICK_TO_FOCUS_GET_REPLY 281
+
+#define E_IPC_OP_PROFILE_SET 218
+#define E_IPC_OP_PROFILE_GET 219
+#define E_IPC_OP_PROFILE_GET_REPLY 220
+#define E_IPC_OP_PROFILE_LIST 282
+#define E_IPC_OP_PROFILE_LIST_REPLY 283
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_remote_main.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -3 -r1.50 -r1.51
--- e_remote_main.c     27 Sep 2005 20:10:23 -0000      1.50
+++ e_remote_main.c     27 Sep 2005 21:11:30 -0000      1.51
@@ -229,16 +229,13 @@
    
    e = event;
    printf("REPLY <- BEGIN\n");
-   if (data)
+   switch (e->minor)
      {
-       switch (e->minor)
-         {
 #define TYPE  E_REMOTE_IN
 #include      "e_ipc_handlers.h"
 #undef TYPE
-          default:
-             break;
-         }
+      default:
+        break;
      }
    printf("REPLY <- END\n");
    reply_count++;




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to