root/include/crm/common/attrd_internal.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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
  20 enum pcmk__node_attr_opts {
  21     pcmk__node_attr_none    = 0,
  22     pcmk__node_attr_remote  = (1 << 0),
  23     pcmk__node_attr_private = (1 << 1),
  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

/* [previous][next][first][last][top][bottom][index][help] */