summaryrefslogtreecommitdiff
path: root/src/ipc-protocol.h
blob: af562a96ae2e718bf3049b7e87c82f41f8054037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/** Copyright 2011-2013 Thorsten Wißmann. All rights reserved.
 *
 * This software is licensed under the "Simplified BSD License".
 * See LICENSE for details */

#ifndef __HERBST_IPC_PROTOCOL_H_
#define __HERBST_IPC_PROTOCOL_H_

#define HERBST_IPC_CLASS "HERBST_IPC_CLASS"
//#define HERBST_IPC_READY "HERBST_IPC_READY"
//#define HERBST_IPC_ATOM  "_HERBST_IPC"
#define HERBST_IPC_ARGS_ATOM "_HERBST_IPC_ARGS"
#define HERBST_IPC_OUTPUT_ATOM "_HERBST_IPC_OUTPUT"
#define HERBST_IPC_STATUS_ATOM "_HERBST_IPC_EXIT_STATUS"

#define HERBST_HOOK_CLASS "HERBST_HOOK_CLASS"
#define HERBST_HOOK_WIN_ID_ATOM "__HERBST_HOOK_WIN_ID"
#define HERBST_HOOK_PROPERTY_FORMAT "__HERBST_HOOK_ARGUMENTS_%d"
// maximum number of hooks to buffer
#define HERBST_HOOK_PROPERTY_COUNT 10

// function exit codes
enum {
    HERBST_EXIT_SUCCESS = 0,
    HERBST_UNKNOWN_ERROR,
    HERBST_COMMAND_NOT_FOUND,
    HERBST_INVALID_ARGUMENT,
    HERBST_SETTING_NOT_FOUND,
    HERBST_TAG_IN_USE,
    HERBST_FORBIDDEN,
    HERBST_NO_PARAMETER_EXPECTED,
    HERBST_ENV_UNSET,
    HERBST_NEED_MORE_ARGS,
};

#endif