1
2
3
4
5
6
7
8
9
10 #ifndef CRM_INTERNAL__H
11 # define CRM_INTERNAL__H
12
13 # ifndef PCMK__CONFIG_H
14 # define PCMK__CONFIG_H
15 # include <config.h>
16 # endif
17
18 # include <portability.h>
19
20
21
22
23
24 #define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_42
25 #define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_42
26
27 # include <glib.h>
28 # include <stdbool.h>
29 # include <libxml/tree.h>
30
31
32
33
34
35 #define PCMK_ALLOW_DEPRECATED 0
36
37 # include <crm/lrmd.h>
38 # include <crm/cluster/internal.h>
39 # include <crm/common/logging.h>
40 # include <crm/common/logging_internal.h>
41 # include <crm/common/ipc_internal.h>
42 # include <crm/common/options_internal.h>
43 # include <crm/common/output_internal.h>
44 # include <crm/common/scheduler_internal.h>
45 # include <crm/common/schemas_internal.h>
46 # include <crm/common/xml_comment_internal.h>
47 # include <crm/common/xml_internal.h>
48 # include <crm/common/xml_io_internal.h>
49 # include <crm/common/xml_names_internal.h>
50 # include <crm/common/internal.h>
51 # include <locale.h>
52 # include <gettext.h>
53
54 #define N_(String) (String)
55
56 #ifdef ENABLE_NLS
57 # define _(String) gettext(String)
58 #else
59 # define _(String) (String)
60 #endif
61
62
63
64
65
66
67 # define PCMK__SERVER_BASED_RO "cib_ro"
68 # define PCMK__SERVER_BASED_RW "cib_rw"
69 # define PCMK__SERVER_BASED_SHM "cib_shm"
70
71
72
73
74
75 #define PCMK__ATTRD_CMD_PEER_REMOVE "peer-remove"
76 #define PCMK__ATTRD_CMD_UPDATE "update"
77 #define PCMK__ATTRD_CMD_UPDATE_BOTH "update-both"
78 #define PCMK__ATTRD_CMD_UPDATE_DELAY "update-delay"
79 #define PCMK__ATTRD_CMD_QUERY "query"
80 #define PCMK__ATTRD_CMD_REFRESH "refresh"
81 #define PCMK__ATTRD_CMD_FLUSH "flush"
82 #define PCMK__ATTRD_CMD_SYNC_RESPONSE "sync-response"
83 #define PCMK__ATTRD_CMD_CLEAR_FAILURE "clear-failure"
84 #define PCMK__ATTRD_CMD_CONFIRM "confirm"
85
86 #define PCMK__CONTROLD_CMD_NODES "list-nodes"
87
88 #define ST__LEVEL_MIN 1
89 #define ST__LEVEL_MAX 9
90
91 #endif