pacemaker  2.1.6-802a72226b
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 <inttypes.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 *", "enum pcmk_pacemakerd_state", "const char *", "time_t")
 
 PCMK__OUTPUT_ARGS ("digests", "const pe_resource_t *", "const pe_node_t *", "const char *", "guint", "const op_digest_cache_t *")
 
 PCMK__OUTPUT_ARGS ("node-info", "int", "const char *", "const char *", "const char *", "bool", "bool")
 
 PCMK__OUTPUT_ARGS ("inject-rsc-action", "const char *", "const char *", "const char *", "guint")
 
 PCMK__OUTPUT_ARGS ("cluster-status", "pe_working_set_t *", "enum pcmk_pacemakerd_state", "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 1726 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 1047 of file pcmk_output.c.

Function Documentation

◆ PCMK__OUTPUT_ARGS() [1/8]

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 103 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [2/8]

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

Definition at line 565 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [3/8]

PCMK__OUTPUT_ARGS ( "pacemakerd-health"  ,
"const char *"  ,
"enum pcmk_pacemakerd_state ,
"const char *"  ,
"time_t"   
)

Definition at line 675 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [4/8]

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

Definition at line 945 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [5/8]

PCMK__OUTPUT_ARGS ( "node-info"  ,
"int"  ,
"const char *"  ,
"const char *"  ,
"const char *"  ,
"bool"  ,
"bool"   
)

Definition at line 1294 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [6/8]

PCMK__OUTPUT_ARGS ( "inject-rsc-action ,
"const char *"  ,
"const char *"  ,
"const char *"  ,
"guint"   
)

Definition at line 1669 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [7/8]

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

Definition at line 1731 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [8/8]

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

Definition at line 2055 of file pcmk_output.c.

◆ pcmk__register_lib_messages()

void pcmk__register_lib_messages ( pcmk__output_t out)

Definition at line 2329 of file pcmk_output.c.