forked from enlightenment/enlightenment
Add profile-list.
And data is null, so don't care about it (stupid me). SVN revision: 16998
This commit is contained in:
parent
af2037a1a3
commit
1e672c7991
|
@ -1490,12 +1490,13 @@ break;
|
|||
/****************************************************************************/
|
||||
#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_GET(path, s1)
|
||||
e_path_user_path_append(path, s2);
|
||||
}
|
||||
SAVE;
|
||||
|
@ -1508,12 +1509,13 @@ break;
|
|||
/****************************************************************************/
|
||||
#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_GET(path, s1)
|
||||
e_path_user_path_prepend(path, s2);
|
||||
}
|
||||
SAVE;
|
||||
|
@ -1526,12 +1528,13 @@ break;
|
|||
/****************************************************************************/
|
||||
#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_GET(path, s1)
|
||||
e_path_user_path_remove(path, s2);
|
||||
}
|
||||
SAVE;
|
||||
|
@ -4831,6 +4834,49 @@ break;
|
|||
#endif
|
||||
#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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -229,8 +229,6 @@ _e_ipc_cb_server_data(void *data, int type, void *event)
|
|||
|
||||
e = event;
|
||||
printf("REPLY <- BEGIN\n");
|
||||
if (data)
|
||||
{
|
||||
switch (e->minor)
|
||||
{
|
||||
#define TYPE E_REMOTE_IN
|
||||
|
@ -239,7 +237,6 @@ _e_ipc_cb_server_data(void *data, int type, void *event)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
printf("REPLY <- END\n");
|
||||
reply_count++;
|
||||
if (reply_count >= reply_expect) ecore_main_loop_quit();
|
||||
|
|
Loading…
Reference in New Issue