pacemaker  2.1.4-dc6eb4362
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 ("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 *", "gboolean", "uint32_t", "uint32_t", "const char *", "GList *", "GList *")
 
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 1493 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:122

Definition at line 862 of file pcmk_output.c.

Function Documentation

◆ PCMK__OUTPUT_ARGS() [1/3]

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

◆ PCMK__OUTPUT_ARGS() [2/3]

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

Definition at line 760 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [3/3]

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

Definition at line 1498 of file pcmk_output.c.

◆ pcmk__register_lib_messages()

void pcmk__register_lib_messages ( pcmk__output_t out)

Definition at line 1920 of file pcmk_output.c.