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/common/logging.h>
39 # include <crm/common/logging_internal.h>
40 # include <crm/common/ipc_internal.h>
41 # include <crm/common/options_internal.h>
42 # include <crm/common/output_internal.h>
43 # include <crm/common/xml_internal.h>
44 # include <crm/common/internal.h>
45 # include <locale.h>
46 # include <gettext.h>
47
48 #define N_(String) (String)
49
50 #ifdef ENABLE_NLS
51 # define _(String) gettext(String)
52 #else
53 # define _(String) (String)
54 #endif
55
56
57
58
59
60
61 #define PCMK__XA_ATTR_DAMPENING "attr_dampening"
62 #define PCMK__XA_ATTR_FORCE "attrd_is_force_write"
63 #define PCMK__XA_ATTR_INTERVAL "attr_clear_interval"
64 #define PCMK__XA_ATTR_IS_PRIVATE "attr_is_private"
65 #define PCMK__XA_ATTR_IS_REMOTE "attr_is_remote"
66 #define PCMK__XA_ATTR_NAME "attr_name"
67 #define PCMK__XA_ATTR_NODE_ID "attr_host_id"
68 #define PCMK__XA_ATTR_NODE_NAME "attr_host"
69 #define PCMK__XA_ATTR_OPERATION "attr_clear_operation"
70 #define PCMK__XA_ATTR_PATTERN "attr_regex"
71 #define PCMK__XA_ATTR_RESOURCE "attr_resource"
72 #define PCMK__XA_ATTR_SECTION "attr_section"
73 #define PCMK__XA_ATTR_SET "attr_set"
74 #define PCMK__XA_ATTR_SET_TYPE "attr_set_type"
75 #define PCMK__XA_ATTR_SYNC_POINT "attr_sync_point"
76 #define PCMK__XA_ATTR_USER "attr_user"
77 #define PCMK__XA_ATTR_UUID "attr_key"
78 #define PCMK__XA_ATTR_VALUE "attr_value"
79 #define PCMK__XA_ATTR_VERSION "attr_version"
80 #define PCMK__XA_ATTR_WRITER "attr_writer"
81 #define PCMK__XA_CONFIG_ERRORS "config-errors"
82 #define PCMK__XA_CONFIG_WARNINGS "config-warnings"
83 #define PCMK__XA_CONFIRM "confirm"
84 #define PCMK__XA_CRMD "crmd"
85 #define PCMK__XA_EXPECTED "expected"
86 #define PCMK__XA_GRAPH_ERRORS "graph-errors"
87 #define PCMK__XA_GRAPH_WARNINGS "graph-warnings"
88 #define PCMK__XA_IN_CCM "in_ccm"
89 #define PCMK__XA_JOIN "join"
90 #define PCMK__XA_MODE "mode"
91 #define PCMK__XA_NODE_START_STATE "node_start_state"
92 #define PCMK__XA_TASK "task"
93 #define PCMK__XA_UPTIME "uptime"
94 #define PCMK__XA_CONN_HOST "connection_host"
95
96
97
98
99
100
101 # define PCMK__SERVER_BASED_RO "cib_ro"
102 # define PCMK__SERVER_BASED_RW "cib_rw"
103 # define PCMK__SERVER_BASED_SHM "cib_shm"
104
105
106
107
108
109 #define PCMK__ATTRD_CMD_PEER_REMOVE "peer-remove"
110 #define PCMK__ATTRD_CMD_UPDATE "update"
111 #define PCMK__ATTRD_CMD_UPDATE_BOTH "update-both"
112 #define PCMK__ATTRD_CMD_UPDATE_DELAY "update-delay"
113 #define PCMK__ATTRD_CMD_QUERY "query"
114 #define PCMK__ATTRD_CMD_REFRESH "refresh"
115 #define PCMK__ATTRD_CMD_FLUSH "flush"
116 #define PCMK__ATTRD_CMD_SYNC "sync"
117 #define PCMK__ATTRD_CMD_SYNC_RESPONSE "sync-response"
118 #define PCMK__ATTRD_CMD_CLEAR_FAILURE "clear-failure"
119 #define PCMK__ATTRD_CMD_CONFIRM "confirm"
120
121 #define PCMK__CONTROLD_CMD_NODES "list-nodes"
122
123 #endif