1 #ifndef __HERBST_IPC_PROTOCOL_H_ 2 #define __HERBST_IPC_PROTOCOL_H_ 3 4 #define HERBST_IPC_CLASS "HERBST_IPC_CLASS" 5 //#define HERBST_IPC_READY "HERBST_IPC_READY" 6 //#define HERBST_IPC_ATOM "_HERBST_IPC" 7 #define HERBST_IPC_ARGS_ATOM "_HERBST_IPC_ARGS" 8 #define HERBST_IPC_OUTPUT_ATOM "_HERBST_IPC_OUTPUT" 9 #define HERBST_IPC_STATUS_ATOM "_HERBST_IPC_EXIT_STATUS" 10 11 #define HERBST_HOOK_CLASS "HERBST_HOOK_CLASS" 12 #define HERBST_HOOK_WIN_ID_ATOM "__HERBST_HOOK_WIN_ID" 13 #define HERBST_HOOK_PROPERTY_FORMAT "__HERBST_HOOK_ARGUMENTS_%d" 14 // maximum number of hooks to buffer 15 #define HERBST_HOOK_PROPERTY_COUNT 10 16 17 // function exit codes 18 enum { 19 HERBST_EXIT_SUCCESS = 0, 20 HERBST_UNKNOWN_ERROR, 21 HERBST_COMMAND_NOT_FOUND, 22 HERBST_INVALID_ARGUMENT, 23 HERBST_SETTING_NOT_FOUND, 24 HERBST_TAG_IN_USE, 25 HERBST_FORBIDDEN, 26 HERBST_NO_PARAMETER_EXPECTED, 27 HERBST_ENV_UNSET, 28 HERBST_NEED_MORE_ARGS, 29 }; 30 31 #endif 32 33