summaryrefslogtreecommitdiff
path: root/src/bin/e_ipc.c
diff options
context:
space:
mode:
authorDan Sinclair <dj2>2005-06-03 18:37:42 +0000
committerDan Sinclair <dj2@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-06-03 18:37:42 +0000
commit82f67c77195be6c14c816cd51967f27c46d50fd8 (patch)
tree21391a66033b760aac7d683fbcc2116d66a875db /src/bin/e_ipc.c
parentcd387502819e08bd750963fab10bebbda219b52c (diff)
- these should all be ported to e_ipc_handlers.h already
SVN revision: 15101
Diffstat (limited to 'src/bin/e_ipc.c')
-rw-r--r--src/bin/e_ipc.c188
1 files changed, 0 insertions, 188 deletions
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index 218f65e..1eb69b3 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -215,17 +215,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
215 free(data); 215 free(data);
216 } 216 }
217 break; 217 break;
218 case E_IPC_OP_RESTART:
219 {
220 restart = 1;
221 ecore_main_loop_quit();
222 }
223 break;
224 case E_IPC_OP_SHUTDOWN:
225 {
226 ecore_main_loop_quit();
227 }
228 break;
229 case E_IPC_OP_LANG_LIST: 218 case E_IPC_OP_LANG_LIST:
230 { 219 {
231 Evas_List *langs; 220 Evas_List *langs;
@@ -396,19 +385,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
396 } 385 }
397 } 386 }
398 break; 387 break;
399 case E_IPC_OP_MENUS_SCROLL_SPEED_SET:
400 if (e_ipc_codec_double_dec(e->data, e->size,
401 &(e_config->menus_scroll_speed)))
402 {
403 E_CONFIG_LIMIT(e_config->menus_scroll_speed, 1.0, 20000.0);
404 e_config_save_queue();
405 }
406 break;
407 case E_IPC_OP_MENUS_SCROLL_SPEED_GET:
408 _e_ipc_reply_double_send(e->client,
409 e_config->menus_scroll_speed,
410 E_IPC_OP_MENUS_SCROLL_SPEED_GET_REPLY);
411 break;
412 case E_IPC_OP_MENUS_FAST_MOVE_THRESHHOLD_SET: 388 case E_IPC_OP_MENUS_FAST_MOVE_THRESHHOLD_SET:
413 if (e_ipc_codec_double_dec(e->data, e->size, 389 if (e_ipc_codec_double_dec(e->data, e->size,
414 &(e_config->menus_fast_mouse_move_threshhold))) 390 &(e_config->menus_fast_mouse_move_threshhold)))
@@ -474,19 +450,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
474 e_config->border_shade_speed, 450 e_config->border_shade_speed,
475 E_IPC_OP_BORDER_SHADE_SPEED_GET_REPLY); 451 E_IPC_OP_BORDER_SHADE_SPEED_GET_REPLY);
476 break; 452 break;
477 case E_IPC_OP_FRAMERATE_SET:
478 if (e_ipc_codec_double_dec(e->data, e->size,
479 &(e_config->framerate)))
480 {
481 E_CONFIG_LIMIT(e_config->image_cache, 1.0, 200.0);
482 e_config_save_queue();
483 }
484 break;
485 case E_IPC_OP_FRAMERATE_GET:
486 _e_ipc_reply_double_send(e->client,
487 e_config->framerate,
488 E_IPC_OP_FRAMERATE_GET_REPLY);
489 break;
490 case E_IPC_OP_IMAGE_CACHE_SET: 453 case E_IPC_OP_IMAGE_CACHE_SET:
491 if (e_ipc_codec_int_dec(e->data, e->size, 454 if (e_ipc_codec_int_dec(e->data, e->size,
492 &(e_config->image_cache))) 455 &(e_config->image_cache)))
@@ -594,24 +557,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
594 e_config->focus_policy, 557 e_config->focus_policy,
595 E_IPC_OP_FOCUS_POLICY_GET_REPLY); 558 E_IPC_OP_FOCUS_POLICY_GET_REPLY);
596 break; 559 break;
597 case E_IPC_OP_MODULE_DIRS_LIST:
598 {
599 Evas_List *dir_list;
600 char *data;
601 int bytes = 0;
602
603 dir_list = e_path_dir_list_get(path_modules);
604 data = _e_ipc_path_list_enc(dir_list, &bytes);
605 ecore_ipc_client_send(e->client,
606 E_IPC_DOMAIN_REPLY,
607 E_IPC_OP_MODULE_DIRS_LIST_REPLY,
608 0/*ref*/, 0/*ref_to*/, 0/*response*/,
609 data, bytes);
610
611 e_path_dir_list_free(dir_list);
612 free(data);
613 break;
614 }
615 case E_IPC_OP_MODULE_DIRS_APPEND: 560 case E_IPC_OP_MODULE_DIRS_APPEND:
616 { 561 {
617 char * dir; 562 char * dir;
@@ -646,25 +591,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
646 break; 591 break;
647 } 592 }
648 593
649 /* Theme PATH IPC */
650 case E_IPC_OP_THEME_DIRS_LIST:
651 {
652 Evas_List *dir_list;
653 char *data;
654 int bytes = 0;
655
656 dir_list = e_path_dir_list_get(path_themes);
657 data = _e_ipc_path_list_enc(dir_list, &bytes);
658 ecore_ipc_client_send(e->client,
659 E_IPC_DOMAIN_REPLY,
660 E_IPC_OP_THEME_DIRS_LIST_REPLY,
661 0/*ref*/, 0/*ref_to*/, 0/*response*/,
662 data, bytes);
663
664 e_path_dir_list_free(dir_list);
665 free(data);
666 break;
667 }
668 case E_IPC_OP_THEME_DIRS_APPEND: 594 case E_IPC_OP_THEME_DIRS_APPEND:
669 { 595 {
670 char * dir; 596 char * dir;
@@ -699,25 +625,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
699 break; 625 break;
700 } 626 }
701 627
702 /* Font Path IPC */
703 case E_IPC_OP_FONT_DIRS_LIST:
704 {
705 Evas_List *dir_list;
706 char *data;
707 int bytes = 0;
708
709 dir_list = e_path_dir_list_get(path_fonts);
710 data = _e_ipc_path_list_enc(dir_list, &bytes);
711 ecore_ipc_client_send(e->client,
712 E_IPC_DOMAIN_REPLY,
713 E_IPC_OP_FONT_DIRS_LIST_REPLY,
714 0/*ref*/, 0/*ref_to*/, 0/*response*/,
715 data, bytes);
716
717 e_path_dir_list_free(dir_list);
718 free(data);
719 break;
720 }
721 case E_IPC_OP_FONT_DIRS_APPEND: 628 case E_IPC_OP_FONT_DIRS_APPEND:
722 { 629 {
723 char * dir; 630 char * dir;
@@ -752,25 +659,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
752 break; 659 break;
753 } 660 }
754 661
755 /* data Path IPC */
756 case E_IPC_OP_DATA_DIRS_LIST:
757 {
758 Evas_List *dir_list;
759 char *data;
760 int bytes = 0;
761
762 dir_list = e_path_dir_list_get(path_data);
763 data = _e_ipc_path_list_enc(dir_list, &bytes);
764 ecore_ipc_client_send(e->client,
765 E_IPC_DOMAIN_REPLY,
766 E_IPC_OP_DATA_DIRS_LIST_REPLY,
767 0/*ref*/, 0/*ref_to*/, 0/*response*/,
768 data, bytes);
769
770 e_path_dir_list_free(dir_list);
771 free(data);
772 break;
773 }
774 case E_IPC_OP_DATA_DIRS_APPEND: 662 case E_IPC_OP_DATA_DIRS_APPEND:
775 { 663 {
776 char * dir; 664 char * dir;
@@ -805,25 +693,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
805 break; 693 break;
806 } 694 }
807 695
808 /* Images Path IPC */
809 case E_IPC_OP_IMAGE_DIRS_LIST:
810 {
811 Evas_List *dir_list;
812 char *data;
813 int bytes = 0;
814
815 dir_list = e_path_dir_list_get(path_images);
816 data = _e_ipc_path_list_enc(dir_list, &bytes);
817 ecore_ipc_client_send(e->client,
818 E_IPC_DOMAIN_REPLY,
819 E_IPC_OP_IMAGE_DIRS_LIST_REPLY,
820 0/*ref*/, 0/*ref_to*/, 0/*response*/,
821 data, bytes);
822
823 e_path_dir_list_free(dir_list);
824 free(data);
825 break;
826 }
827 case E_IPC_OP_IMAGE_DIRS_APPEND: 696 case E_IPC_OP_IMAGE_DIRS_APPEND:
828 { 697 {
829 char * dir; 698 char * dir;
@@ -858,25 +727,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
858 break; 727 break;
859 } 728 }
860 729
861 /* Init Path IPC */
862 case E_IPC_OP_INIT_DIRS_LIST:
863 {
864 Evas_List *dir_list;
865 char *data;
866 int bytes = 0;
867
868 dir_list = e_path_dir_list_get(path_init);
869 data = _e_ipc_path_list_enc(dir_list, &bytes);
870 ecore_ipc_client_send(e->client,
871 E_IPC_DOMAIN_REPLY,
872 E_IPC_OP_INIT_DIRS_LIST_REPLY,
873 0/*ref*/, 0/*ref_to*/, 0/*response*/,
874 data, bytes);
875
876 e_path_dir_list_free(dir_list);
877 free(data);
878 break;
879 }
880 case E_IPC_OP_INIT_DIRS_APPEND: 730 case E_IPC_OP_INIT_DIRS_APPEND:
881 { 731 {
882 char * dir; 732 char * dir;
@@ -911,25 +761,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
911 break; 761 break;
912 } 762 }
913 763
914 /* Icon Path IPC */
915 case E_IPC_OP_ICON_DIRS_LIST:
916 {
917 Evas_List *dir_list;
918 char *data;
919 int bytes = 0;
920
921 dir_list = e_path_dir_list_get(path_icons);
922 data = _e_ipc_path_list_enc(dir_list, &bytes);
923 ecore_ipc_client_send(e->client,
924 E_IPC_DOMAIN_REPLY,
925 E_IPC_OP_ICON_DIRS_LIST_REPLY,
926 0/*ref*/, 0/*ref_to*/, 0/*response*/,
927 data, bytes);
928
929 e_path_dir_list_free(dir_list);
930 free(data);
931 break;
932 }
933 case E_IPC_OP_ICON_DIRS_APPEND: 764 case E_IPC_OP_ICON_DIRS_APPEND:
934 { 765 {
935 char * dir; 766 char * dir;
@@ -964,25 +795,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
964 break; 795 break;
965 } 796 }
966 797
967 /* Icon Path IPC */
968 case E_IPC_OP_BG_DIRS_LIST:
969 {
970 Evas_List *dir_list;
971 char *data;
972 int bytes = 0;
973
974 dir_list = e_path_dir_list_get(path_backgrounds);
975 data = _e_ipc_path_list_enc(dir_list, &bytes);
976 ecore_ipc_client_send(e->client,
977 E_IPC_DOMAIN_REPLY,
978 E_IPC_OP_BG_DIRS_LIST_REPLY,
979 0/*ref*/, 0/*ref_to*/, 0/*response*/,
980 data, bytes);
981
982 e_path_dir_list_free(dir_list);
983 free(data);
984 break;
985 }
986 case E_IPC_OP_BG_DIRS_APPEND: 798 case E_IPC_OP_BG_DIRS_APPEND:
987 { 799 {
988 char * dir; 800 char * dir;