summaryrefslogtreecommitdiff
path: root/src/bin/e_ipc.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-05-12 14:46:28 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-05-12 14:46:28 +0000
commit078e74e14cc155d26c160fd6671661a5b9c85c5d (patch)
treebe8a6b4bfc157785c43a08128029b744e49e0e05 /src/bin/e_ipc.c
parente61b2b515a00de7e58fe32e5a04cbbd059282933 (diff)
move some to codecs. this needs cleaning tho... (ipc)
SVN revision: 14732
Diffstat (limited to 'src/bin/e_ipc.c')
-rw-r--r--src/bin/e_ipc.c75
1 files changed, 73 insertions, 2 deletions
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index 982e38f..dcc3a95 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -9,6 +9,9 @@ static char *_e_ipc_str_list_get(Evas_List *strs, int *bytes);
9static char *_e_ipc_simple_str_dec(char *data, int bytes); 9static char *_e_ipc_simple_str_dec(char *data, int bytes);
10static char **_e_ipc_multi_str_dec(char *data, int bytes, int str_count); 10static char **_e_ipc_multi_str_dec(char *data, int bytes, int str_count);
11 11
12static int _e_ipc_double_dec(char *data, int bytes, double *dest);
13static int _e_ipc_int_dec(char *data, int bytes, int *dest);
14
12/* encode functions, Should these be global? */ 15/* encode functions, Should these be global? */
13ECORE_IPC_ENC_EVAS_LIST_PROTO(_e_ipc_module_list_enc); 16ECORE_IPC_ENC_EVAS_LIST_PROTO(_e_ipc_module_list_enc);
14ECORE_IPC_ENC_EVAS_LIST_PROTO(_e_ipc_font_available_list_enc); 17ECORE_IPC_ENC_EVAS_LIST_PROTO(_e_ipc_font_available_list_enc);
@@ -40,12 +43,15 @@ e_ipc_init(void)
40 ecore_event_handler_add(ECORE_IPC_EVENT_CLIENT_ADD, _e_ipc_cb_client_add, NULL); 43 ecore_event_handler_add(ECORE_IPC_EVENT_CLIENT_ADD, _e_ipc_cb_client_add, NULL);
41 ecore_event_handler_add(ECORE_IPC_EVENT_CLIENT_DEL, _e_ipc_cb_client_del, NULL); 44 ecore_event_handler_add(ECORE_IPC_EVENT_CLIENT_DEL, _e_ipc_cb_client_del, NULL);
42 ecore_event_handler_add(ECORE_IPC_EVENT_CLIENT_DATA, _e_ipc_cb_client_data, NULL); 45 ecore_event_handler_add(ECORE_IPC_EVENT_CLIENT_DATA, _e_ipc_cb_client_data, NULL);
46
47 e_ipc_codec_init();
43 return 1; 48 return 1;
44} 49}
45 50
46void 51void
47e_ipc_shutdown(void) 52e_ipc_shutdown(void)
48{ 53{
54 e_ipc_codec_shutdown();
49 if (_e_ipc_server) 55 if (_e_ipc_server)
50 { 56 {
51 ecore_ipc_server_del(_e_ipc_server); 57 ecore_ipc_server_del(_e_ipc_server);
@@ -582,6 +588,71 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
582 } 588 }
583 } 589 }
584 break; 590 break;
591 case E_IPC_OP_MENUS_SCROLL_SPEED_SET:
592 if (e_ipc_codec_double_dec(e->data, e->size,
593 &(e_config->menus_scroll_speed)))
594 {
595 E_CONFIG_LIMIT(e_config->menus_scroll_speed, 1.0, 20000.0);
596 e_config_save_queue();
597 }
598 break;
599 case E_IPC_OP_MENUS_SCROLL_SPEED_GET:
600 {
601 void *data;
602 int bytes;
603
604 if ((data = e_ipc_codec_double_enc(e_config->menus_scroll_speed,
605 &bytes)))
606 {
607 ecore_ipc_client_send(e->client,
608 E_IPC_DOMAIN_REPLY,
609 E_IPC_OP_MENUS_SCROLL_SPEED_GET_REPLY,
610 0/*ref*/, 0/*ref_to*/, 0/*response*/,
611 data, bytes);
612 free(data);
613 }
614 }
615 break;
616 case E_IPC_OP_MENUS_FAST_MOVE_THRESHHOLD_SET:
617 break;
618 case E_IPC_OP_MENUS_FAST_MOVE_THRESHHOLD_GET:
619 break;
620 case E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_SET:
621 break;
622 case E_IPC_OP_MENUS_CLICK_DRAG_TIMEOUT_GET:
623 break;
624 case E_IPC_OP_BORDER_SHADE_ANIMATE_SET:
625 break;
626 case E_IPC_OP_BORDER_SHADE_ANIMATE_GET:
627 break;
628 case E_IPC_OP_BORDER_SHADE_TRANSITION_SET:
629 break;
630 case E_IPC_OP_BORDER_SHADE_TRANSITION_GET:
631 break;
632 case E_IPC_OP_BORDER_SHADE_SPEED_SET:
633 break;
634 case E_IPC_OP_BORDER_SHADE_SPEED_GET:
635 break;
636 case E_IPC_OP_FRAMERATE_SET:
637 break;
638 case E_IPC_OP_FRAMERATE_GET:
639 break;
640 case E_IPC_OP_IMAGE_CACHE_SET:
641 break;
642 case E_IPC_OP_IMAGE_CACHE_GET:
643 break;
644 case E_IPC_OP_FONT_CAHCE_SET:
645 break;
646 case E_IPC_OP_FONT_CACHE_GET:
647 break;
648 case E_IPC_OP_USE_EDGE_FLIP_SET:
649 break;
650 case E_IPC_OP_USE_EDGE_FLIP_GET:
651 break;
652 case E_IPC_OP_EDGE_FLIP_TIMEOUT_SET:
653 break;
654 case E_IPC_OP_EDGE_FLIP_TIMEOUT_GET:
655 break;
585 default: 656 default:
586 break; 657 break;
587 } 658 }
@@ -668,7 +739,6 @@ _e_ipc_simple_str_dec(char *data, int bytes)
668 str = malloc(bytes + 1); 739 str = malloc(bytes + 1);
669 str[bytes] = 0; 740 str[bytes] = 0;
670 memcpy(str, data, bytes); 741 memcpy(str, data, bytes);
671
672 return str; 742 return str;
673} 743}
674 744
@@ -700,7 +770,8 @@ _e_ipc_multi_str_dec(char *data, int bytes, int str_count)
700 770
701 return str_array; 771 return str_array;
702} 772}
703 773
774/* FIXME: just use eet for this - saves a lot of hassle */
704 775
705/* list/struct encoding functions */ 776/* list/struct encoding functions */
706ECORE_IPC_ENC_EVAS_LIST_PROTO(_e_ipc_module_list_enc) 777ECORE_IPC_ENC_EVAS_LIST_PROTO(_e_ipc_module_list_enc)