#include <stdbool.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/actions.h>
#include <crm/common/strings_internal.h>
Go to the source code of this file.
◆ PCMK__ACTION_POWEROFF
#define PCMK__ACTION_POWEROFF "poweroff" |
◆ pcmk__clear_action_flags
#define pcmk__clear_action_flags |
( |
|
action, |
|
|
|
flags_to_clear |
|
) |
| |
Value:do { \
(
action)->
flags = pcmk__clear_flags_as(__func__, __LINE__, \
(flags_to_clear), \
#flags_to_clear); \
} while (0)
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)
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__, \
(flags_to_set), \
#flags_to_set); \
} while (0)
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__, \
(action_flags), \
(to_set), #to_set); \
} while (0)
Definition at line 73 of file actions_internal.h.
◆ pcmk__filter_op_for_digest()
void pcmk__filter_op_for_digest |
( |
xmlNode * |
param_set | ) |
|
◆ pcmk__is_fencing_action()
bool pcmk__is_fencing_action |
( |
const char * |
action | ) |
|
◆ pcmk__notify_key()
char* pcmk__notify_key |
( |
const char * |
rsc_id, |
|
|
const char * |
notify_type, |
|
|
const char * |
op_type |
|
) |
| |
◆ 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_id | ID of resource being operated on |
[in] | op_type | Operation name |
[in] | interval_ms | Operation 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 |
|
) |
| |