pacemaker  2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk_output.c File Reference
#include <crm_internal.h>
#include <crm/common/output.h>
#include <crm/common/results.h>
#include <crm/msg_xml.h>
#include <crm/stonith-ng.h>
#include <crm/fencing/internal.h>
#include <crm/pengine/internal.h>
#include <libxml/tree.h>
#include <pacemaker-internal.h>
#include <stdint.h>
Include dependency graph for pcmk_output.c:

Go to the source code of this file.

Macros

#define STOP_SANITY_ASSERT(lineno)
 
#define CHECK_RC(retcode, retval)
 

Functions

 PCMK__OUTPUT_ARGS ("rsc-action-item", "const char *", "pe_resource_t *", "pe_node_t *", "pe_node_t *", "pe_action_t *", "pe_action_t *")
 
 PCMK__OUTPUT_ARGS ("locations-and-colocations", "pe_resource_t *", "pe_working_set_t *", "bool", "bool")
 
 PCMK__OUTPUT_ARGS ("pacemakerd-health", "const char *", "int", "const char *", "const char *")
 
 PCMK__OUTPUT_ARGS ("digests", "pe_resource_t *", "pe_node_t *", "const char *", "guint", "op_digest_cache_t *")
 
 PCMK__OUTPUT_ARGS ("cluster-status", "pe_working_set_t *", "crm_exit_t", "stonith_history_t *", "enum pcmk__fence_history", "uint32_t", "uint32_t", "const char *", "GList *", "GList *")
 
 PCMK__OUTPUT_ARGS ("attribute", "const char *", "const char *", "const char *", "const char *", "const char *")
 
void pcmk__register_lib_messages (pcmk__output_t *out)
 

Macro Definition Documentation

◆ CHECK_RC

#define CHECK_RC (   retcode,
  retval 
)
Value:
if (retval == pcmk_rc_ok) { \
retcode = pcmk_rc_ok; \
}

Definition at line 1605 of file pcmk_output.c.

◆ STOP_SANITY_ASSERT

#define STOP_SANITY_ASSERT (   lineno)
Value:
do { \
if(current && current->details->unclean) { \
/* It will be a pseudo op */ \
} else if(stop == NULL) { \
crm_err("%s:%d: No stop action exists for %s", \
__func__, lineno, rsc->id); \
CRM_ASSERT(stop != NULL); \
} else if (pcmk_is_set(stop->flags, pe_action_optional)) { \
crm_err("%s:%d: Action %s is still optional", \
__func__, lineno, stop->uuid); \
CRM_ASSERT(!pcmk_is_set(stop->flags, pe_action_optional)); \
} \
} while(0)
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
Definition: util.h:121

Definition at line 974 of file pcmk_output.c.

Function Documentation

◆ PCMK__OUTPUT_ARGS() [1/6]

PCMK__OUTPUT_ARGS ( "rsc-action-item"  ,
"const char *"  ,
"pe_resource_t *"  ,
"pe_node_t *"  ,
"pe_node_t *"  ,
"pe_action_t *"  ,
"pe_action_t *"   
)

Definition at line 102 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [2/6]

PCMK__OUTPUT_ARGS ( "locations-and-colocations"  ,
"pe_resource_t *"  ,
"pe_working_set_t *"  ,
"bool"  ,
"bool"   
)

Definition at line 550 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [3/6]

PCMK__OUTPUT_ARGS ( "pacemakerd-health"  ,
"const char *"  ,
"int"  ,
"const char *"  ,
"const char *"   
)

Definition at line 660 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [4/6]

PCMK__OUTPUT_ARGS ( "digests"  ,
"pe_resource_t *"  ,
"pe_node_t *"  ,
"const char *"  ,
"guint"  ,
"op_digest_cache_t *"   
)

Definition at line 872 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [5/6]

PCMK__OUTPUT_ARGS ( "cluster-status"  ,
"pe_working_set_t *"  ,
"crm_exit_t"  ,
"stonith_history_t *"  ,
"enum pcmk__fence_history ,
"uint32_t"  ,
"uint32_t"  ,
"const char *"  ,
"GList *"  ,
"GList *"   
)

Definition at line 1610 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [6/6]

PCMK__OUTPUT_ARGS ( "attribute"  ,
"const char *"  ,
"const char *"  ,
"const char *"  ,
"const char *"  ,
"const char *"   
)

Definition at line 1923 of file pcmk_output.c.

◆ pcmk__register_lib_messages()

void pcmk__register_lib_messages ( pcmk__output_t out)

Definition at line 2195 of file pcmk_output.c.