pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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
14 extern "C" {
15 #endif
16 
17 # include <crm/common/ipc.h>
18 
19 // Options for clients to use with functions below
24 };
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 
32 int 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 
38 int 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 
43 const char *pcmk__node_attr_target(const char *name);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif
pcmk__cpg_host_t host
Definition: cpg.c:49
const char * pcmk__node_attr_target(const char *name)
Definition: attrd_client.c:279
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)
Definition: attrd_client.c:133
struct crm_ipc_s crm_ipc_t
Definition: ipc.h:162
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)
Definition: attrd_client.c:239
pcmk__node_attr_opts
IPC interface to Pacemaker daemons.
char * name
Definition: pcmk_fence.c:31