summaryrefslogtreecommitdiff
path: root/src/bin/e_ipc_handlers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/e_ipc_handlers.h')
-rw-r--r--src/bin/e_ipc_handlers.h84
1 files changed, 82 insertions, 2 deletions
diff --git a/src/bin/e_ipc_handlers.h b/src/bin/e_ipc_handlers.h
index 3eb2003..62bebf0 100644
--- a/src/bin/e_ipc_handlers.h
+++ b/src/bin/e_ipc_handlers.h
@@ -91,8 +91,8 @@ case HDL: { void *data; int bytes;
91break; 91break;
92 92
93# define REQ_INT(__int, HDL) \ 93# define REQ_INT(__int, HDL) \
94 REQ_INT_START(__int, HDL) \ 94 REQ_INT_START(HDL) \
95 REQ_INT_END(HDL) 95 REQ_INT_END(__int, HDL)
96 96
97# define REQ_NULL(HDL) \ 97# define REQ_NULL(HDL) \
98case HDL: \ 98case HDL: \
@@ -769,6 +769,86 @@ break;
769#endif 769#endif
770#undef HDL 770#undef HDL
771 771
772/****************************************************************************/
773#define HDL E_IPC_OP_USE_EDGE_FLIP_SET
774#if (TYPE == E_REMOTE_OPTIONS)
775 OP("-edge-flip-set", 1, "Set the edge flip flag (0/1)", 0, HDL)
776#elif (TYPE == E_REMOTE_OUT)
777 REQ_INT(atoi(params[0]), HDL);
778#elif (TYPE == E_WM_IN)
779 START_INT(value, HDL);
780 e_config->use_edge_flip = value;
781 E_CONFIG_LIMIT(e_config->use_edge_flip, 0, 1);
782 SAVE;
783 END_INT;
784#elif (TYPE == E_REMOTE_IN)
785#endif
786#undef HDL
787
788/****************************************************************************/
789#define HDL E_IPC_OP_USE_EDGE_FLIP_GET
790#if (TYPE == E_REMOTE_OPTIONS)
791 OP("-edge-flip-get", 0, "Get the edge flip flag", 1, HDL)
792#elif (TYPE == E_REMOTE_OUT)
793 REQ_NULL(HDL)
794#elif (TYPE == E_WM_IN)
795 SEND_INT(e_config->use_edge_flip, E_IPC_OP_USE_EDGE_FLIP_GET_REPLY, HDL);
796#elif (TYPE == E_REMOTE_IN)
797#endif
798#undef HDL
799
800/****************************************************************************/
801#define HDL E_IPC_OP_USE_EDGE_FLIP_GET_REPLY
802#if (TYPE == E_REMOTE_OPTIONS)
803#elif (TYPE == E_REMOTE_OUT)
804#elif (TYPE == E_WM_IN)
805#elif (TYPE == E_REMOTE_IN)
806 START_INT(val, HDL)
807 printf("REPLY: %i\n", val);
808 END_INT;
809#endif
810#undef HDL
811
812/****************************************************************************/
813#define HDL E_IPC_OP_EDGE_FLIP_TIMEOUT_SET
814#if (TYPE == E_REMOTE_OPTIONS)
815 OP("-edge-flip-timeout-set", 1, "Set the edge flip timeout (sec)", 0, HDL)
816#elif (TYPE == E_REMOTE_OUT)
817 REQ_DOUBLE(atof(params[0]), HDL)
818#elif (TYPE == E_WM_IN)
819 START_DOUBLE(dbl, HDL);
820 e_config->edge_flip_timeout = dbl;
821 E_CONFIG_LIMIT(e_config->edge_flip_timeout, 0.0, 2.0);
822 SAVE;
823 END_DOUBLE;
824#elif (TYPE == E_REMOTE_IN)
825#endif
826#undef HDL
827
828/****************************************************************************/
829#define HDL E_IPC_OP_EDGE_FLIP_TIMEOUT_GET
830#if (TYPE == E_REMOTE_OPTIONS)
831 OP("-edge-flip-timeout-get", 0, "Get the edge flip timeout", 1, HDL)
832#elif (TYPE == E_REMOTE_OUT)
833 REQ_NULL(HDL)
834#elif (TYPE == E_WM_IN)
835 SEND_DOUBLE(e_config->edge_flip_timeout, E_IPC_OP_EDGE_FLIP_TIMEOUT_GET_REPLY, HDL);
836#elif (TYPE == E_REMOTE_IN)
837#endif
838#undef HDL
839
840/****************************************************************************/
841#define HDL E_IPC_OP_EDGE_FLIP_TIMEOUT_GET_REPLY
842#if (TYPE == E_REMOTE_OPTIONS)
843#elif (TYPE == E_REMOTE_OUT)
844#elif (TYPE == E_WM_IN)
845#elif (TYPE == E_REMOTE_IN)
846 START_DOUBLE(val, HDL)
847 printf("REPLY: %3.3f\n", val);
848 END_DOUBLE;
849#endif
850#undef HDL
851
772#if 0 852#if 0
773} 853}
774#endif 854#endif