pacemaker 2.1.1-77db578727
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
attrd_internal.h
Go to the documentation of this file.
1/*
2 * Copyright 2004-2021 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
14extern "C" {
15#endif
16
17# include <crm/common/ipc.h>
18
19// Options for clients to use with functions below
25
26#define pcmk__set_node_attr_flags(node_attr_flags, flags_to_set) do { \
27 node_attr_flags = pcmk__set_flags_as(__func__, __LINE__, \
28 LOG_TRACE, "Node attribute", crm_system_name, \
29 (node_attr_flags), (flags_to_set), #flags_to_set); \
30 } while (0)
31
32int pcmk__node_attr_request(crm_ipc_t * ipc, char command, const char *host,
33 const char *name, const char *value,
34 const char *section, const char *set,
35 const char *dampen, const char *user_name,
36 int options);
37
38int pcmk__node_attr_request_clear(crm_ipc_t *ipc, const char *host,
39 const char *resource, const char *operation,
40 const char *interval_spec,
41 const char *user_name, int options);
42
43const char *pcmk__node_attr_target(const char *name);
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif
const char * pcmk__node_attr_target(const char *name)
int pcmk__node_attr_request(crm_ipc_t *ipc, char command, const char *host, const char *name, const char *value, const char *section, const char *set, const char *dampen, const char *user_name, int options)
int pcmk__node_attr_request_clear(crm_ipc_t *ipc, const char *host, const char *resource, const char *operation, const char *interval_spec, const char *user_name, int options)
pcmk__node_attr_opts
@ pcmk__node_attr_remote
@ pcmk__node_attr_private
@ pcmk__node_attr_none
pcmk__cpg_host_t host
Definition cpg.c:4
IPC interface to Pacemaker daemons.
struct crm_ipc_s crm_ipc_t
Definition ipc.h:162
char * name
Definition pcmk_fence.c:31