pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros | Functions
actions_internal.h File Reference
#include <stdbool.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/actions.h>
#include <crm/common/strings_internal.h>
Include dependency graph for actions_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PCMK__ACTION_POWEROFF   "poweroff"
 
#define PCMK__OP_FMT   "%s_%s_%u"
 printf-style format to create operation key from resource, action, interval More...
 
#define pcmk__set_action_flags(action, flags_to_set)
 
#define pcmk__clear_action_flags(action, flags_to_clear)
 
#define pcmk__set_raw_action_flags(action_flags, action_name, to_set)
 
#define pcmk__clear_raw_action_flags(action_flags, action_name, to_clear)
 

Functions

char * pcmk__op_key (const char *rsc_id, const char *op_type, guint interval_ms)
 Generate an operation key (RESOURCE_ACTION_INTERVAL) More...
 
char * pcmk__notify_key (const char *rsc_id, const char *notify_type, const char *op_type)
 
char * pcmk__transition_key (int transition_id, int action_id, int target_rc, const char *node)
 
void pcmk__filter_op_for_digest (xmlNode *param_set)
 
bool pcmk__is_fencing_action (const char *action)
 

Macro Definition Documentation

◆ PCMK__ACTION_POWEROFF

#define PCMK__ACTION_POWEROFF   "poweroff"

Definition at line 27 of file actions_internal.h.

◆ pcmk__clear_action_flags

#define pcmk__clear_action_flags (   action,
  flags_to_clear 
)
Value:
do { \
(action)->flags = pcmk__clear_flags_as(__func__, __LINE__, \
"Action", (action)->uuid, \
(action)->flags, \
(flags_to_clear), \
#flags_to_clear); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
const char * action
Definition: pcmk_fence.c:30
uint64_t flags
Definition: remote.c:215

Definition at line 56 of file actions_internal.h.

◆ pcmk__clear_raw_action_flags

#define pcmk__clear_raw_action_flags (   action_flags,
  action_name,
  to_clear 
)
Value:
do { \
action_flags = pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, \
"Action", action_name, \
(action_flags), \
(to_clear), #to_clear); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38

Definition at line 88 of file actions_internal.h.

◆ PCMK__OP_FMT

#define PCMK__OP_FMT   "%s_%s_%u"

printf-style format to create operation key from resource, action, interval

Definition at line 31 of file actions_internal.h.

◆ pcmk__set_action_flags

#define pcmk__set_action_flags (   action,
  flags_to_set 
)
Value:
do { \
(action)->flags = pcmk__set_flags_as(__func__, __LINE__, \
"Action", (action)->uuid, \
(action)->flags, \
(flags_to_set), \
#flags_to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
const char * action
Definition: pcmk_fence.c:30
uint64_t flags
Definition: remote.c:215

Definition at line 40 of file actions_internal.h.

◆ pcmk__set_raw_action_flags

#define pcmk__set_raw_action_flags (   action_flags,
  action_name,
  to_set 
)
Value:
do { \
action_flags = pcmk__set_flags_as(__func__, __LINE__, \
LOG_TRACE, "Action", action_name, \
(action_flags), \
(to_set), #to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38

Definition at line 73 of file actions_internal.h.

Function Documentation

◆ pcmk__filter_op_for_digest()

void pcmk__filter_op_for_digest ( xmlNode *  param_set)

Definition at line 303 of file digest.c.

◆ pcmk__is_fencing_action()

bool pcmk__is_fencing_action ( const char *  action)

Definition at line 582 of file actions.c.

◆ pcmk__notify_key()

char* pcmk__notify_key ( const char *  rsc_id,
const char *  notify_type,
const char *  op_type 
)

Definition at line 336 of file actions.c.

◆ pcmk__op_key()

char* pcmk__op_key ( const char *  rsc_id,
const char *  op_type,
guint  interval_ms 
)

Generate an operation key (RESOURCE_ACTION_INTERVAL)

Parameters
[in]rsc_idID of resource being operated on
[in]op_typeOperation name
[in]interval_msOperation interval
Returns
Newly allocated memory containing operation key as string
Note
This function asserts on errors, so it will never return NULL. The caller is responsible for freeing the result with free().

Definition at line 196 of file actions.c.

◆ pcmk__transition_key()

char* pcmk__transition_key ( int  transition_id,
int  action_id,
int  target_rc,
const char *  node 
)

Definition at line 403 of file actions.c.