pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
msg_xml_compat.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2023 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__CRM_MSG_XML_COMPAT__H
11 # define PCMK__CRM_MSG_XML_COMPAT__H
12 
13 #include <crm/common/agents.h> // PCMK_STONITH_PROVIDES
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
28 #define XML_RSC_ATTR_INCARNATION_MAX PCMK_META_CLONE_MAX
30 
32 #define XML_RSC_ATTR_INCARNATION_MIN PCMK_META_CLONE_MIN
33 
35 #define XML_RSC_ATTR_INCARNATION_NODEMAX PCMK_META_CLONE_NODE_MAX
36 
38 #define XML_RSC_ATTR_PROMOTED_MAX PCMK_META_PROMOTED_MAX
39 
41 #define XML_RSC_ATTR_PROMOTED_NODEMAX PCMK_META_PROMOTED_NODE_MAX
42 
44 #define XML_RSC_ATTR_PROVIDES PCMK_STONITH_PROVIDES
45 
47 #define XML_CIB_TAG_MASTER PCMK_XE_PROMOTABLE_LEGACY
48 
50 #define PCMK_XE_PROMOTED_MAX_LEGACY PCMK_XA_PROMOTED_MAX_LEGACY
51 
53 #define XML_RSC_ATTR_MASTER_MAX PCMK_XA_PROMOTED_MAX_LEGACY
54 
56 #define PCMK_XE_PROMOTED_NODE_MAX_LEGACY PCMK_XA_PROMOTED_NODE_MAX_LEGACY
57 
59 #define XML_RSC_ATTR_FAIL_STICKINESS PCMK_META_MIGRATION_THRESHOLD
60 
62 #define XML_RSC_ATTR_FAIL_TIMEOUT PCMK_META_FAILURE_TIMEOUT
63 
65 #define XML_RSC_ATTR_MASTER_NODEMAX PCMK_XA_PROMOTED_NODE_MAX_LEGACY
66 
68 #define XML_ATTR_RA_VERSION "ra-version"
69 
71 #define XML_TAG_FRAGMENT "cib_fragment"
72 
74 #define XML_TAG_RSC_VER_ATTRS "rsc_versioned_attrs"
75 
77 #define XML_TAG_OP_VER_ATTRS "op_versioned_attrs"
78 
80 #define XML_TAG_OP_VER_META "op_versioned_meta"
81 
83 #define XML_ATTR_UUID "id"
84 
86 #define XML_ATTR_VERBOSE "verbose"
87 
89 #define XML_CIB_TAG_DOMAINS "domains"
90 
92 #define XML_CIB_ATTR_SOURCE "source"
93 
95 #define XML_NODE_EXPECTED "expected"
96 
98 #define XML_NODE_IN_CLUSTER "in_ccm"
99 
101 #define XML_NODE_IS_PEER "crmd"
102 
104 #define XML_NODE_JOIN_STATE "join"
105 
107 #define XML_RSC_OP_LAST_RUN "last-run"
108 
110 #define TYPE(x) (((x) == NULL)? NULL : (const char *) ((x)->name))
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif // PCMK__CRM_MSG_XML_COMPAT__H
API related to resource agents.