pacemaker
2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
include
crm
common
attrd_internal.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__ATTRD_INTERNAL__H
11
# define PCMK__ATTRD_INTERNAL__H
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
// Options for clients to use with functions below
18
enum
pcmk__node_attr_opts
{
19
pcmk__node_attr_none
= 0,
20
pcmk__node_attr_remote
= (1 << 0),
21
pcmk__node_attr_private
= (1 << 1),
22
pcmk__node_attr_pattern
= (1 << 2),
23
pcmk__node_attr_value
= (1 << 3),
24
pcmk__node_attr_delay
= (1 << 4),
25
pcmk__node_attr_perm
= (1 << 5),
26
pcmk__node_attr_sync_local
= (1 << 6),
27
pcmk__node_attr_sync_cluster
= (1 << 7),
28
pcmk__node_attr_utilization
= (1 << 8),
29
pcmk__node_attr_query_all
= (1 << 9),
30
};
31
32
#define pcmk__set_node_attr_flags(node_attr_flags, flags_to_set) do { \
33
node_attr_flags = pcmk__set_flags_as(__func__, __LINE__, \
34
LOG_TRACE, "Node attribute", crm_system_name, \
35
(node_attr_flags), (flags_to_set), #flags_to_set); \
36
} while (0)
37
38
#define pcmk__clear_node_attr_flags(node_attr_flags, flags_to_clear) do { \
39
node_attr_flags = pcmk__clear_flags_as(__func__, __LINE__, \
40
LOG_TRACE, "Node attribute", crm_system_name, \
41
(node_attr_flags), (flags_to_clear), #flags_to_clear); \
42
} while (0)
43
44
const
char
*
pcmk__node_attr_target
(
const
char
*
name
);
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
pcmk__node_attr_target
const char * pcmk__node_attr_target(const char *name)
Definition:
attrs.c:39
name
const char * name
Definition:
cib.c:26
pcmk__node_attr_query_all
Definition:
attrd_internal.h:29
pcmk__node_attr_pattern
Definition:
attrd_internal.h:22
pcmk__node_attr_utilization
Definition:
attrd_internal.h:28
pcmk__node_attr_sync_local
Definition:
attrd_internal.h:26
pcmk__node_attr_remote
Definition:
attrd_internal.h:20
pcmk__node_attr_private
Definition:
attrd_internal.h:21
pcmk__node_attr_opts
pcmk__node_attr_opts
Definition:
attrd_internal.h:18
pcmk__node_attr_sync_cluster
Definition:
attrd_internal.h:27
pcmk__node_attr_value
Definition:
attrd_internal.h:23
pcmk__node_attr_none
Definition:
attrd_internal.h:19
pcmk__node_attr_perm
Definition:
attrd_internal.h:25
pcmk__node_attr_delay
Definition:
attrd_internal.h:24
Generated on Tue Dec 19 2023 17:32:56 for pacemaker by
1.8.14