pacemaker  2.1.7-0f7f88312f
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 *", "pcmk_resource_t *", "pcmk_node_t *", "pcmk_node_t *", "pcmk_action_t *", "pcmk_action_t *")
 
 PCMK__OUTPUT_ARGS ("locations-and-colocations", "pcmk_resource_t *", "bool", "bool")
 
 PCMK__OUTPUT_ARGS ("health", "const char *", "const char *", "const char *", "const char *")
 
 PCMK__OUTPUT_ARGS ("pacemakerd-health", "const char *", "enum pcmk_pacemakerd_state", "const char *", "time_t")
 
 PCMK__OUTPUT_ARGS ("crmadmin-node", "const char *", "const char *", "const char *", "bool")
 
 PCMK__OUTPUT_ARGS ("digests", "const pcmk_resource_t *", "const pcmk_node_t *", "const char *", "guint", "const op_digest_cache_t *")
 
 PCMK__OUTPUT_ARGS ("rsc-action", "pcmk_resource_t *", "pcmk_node_t *", "pcmk_node_t *")
 
 PCMK__OUTPUT_ARGS ("node-info", "uint32_t", "const char *", "const char *", "const char *", "bool", "bool")
 
 PCMK__OUTPUT_ARGS ("inject-cluster-action", "const char *", "const char *", "xmlNodePtr")
 
 PCMK__OUTPUT_ARGS ("inject-rsc-action", "const char *", "const char *", "const char *", "guint")
 
 PCMK__OUTPUT_ARGS ("cluster-status", "pcmk_scheduler_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 1777 of file pcmk_output.c.

◆ STOP_SANITY_ASSERT

#define STOP_SANITY_ASSERT (   lineno)
Value:
do { \
if ((current != NULL) && 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, pcmk_action_optional)) { \
crm_err("%s:%d: Action %s is still optional", \
__func__, lineno, stop->uuid); \
CRM_ASSERT(!pcmk_is_set(stop->flags, pcmk_action_optional));\
} \
} while (0)
Whether action should not be executed.
Definition: actions.h:244
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
Definition: util.h:99

Definition at line 1061 of file pcmk_output.c.

Function Documentation

◆ PCMK__OUTPUT_ARGS() [1/12]

PCMK__OUTPUT_ARGS ( "rsc-action-item"  ,
"const char *"  ,
"pcmk_resource_t *"  ,
"pcmk_node_t *"  ,
"pcmk_node_t *"  ,
"pcmk_action_t *"  ,
"pcmk_action_t *"   
)

Definition at line 107 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [2/12]

PCMK__OUTPUT_ARGS ( "locations-and-colocations"  ,
"pcmk_resource_t *"  ,
"bool"  ,
"bool"   
)

Definition at line 574 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [3/12]

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

Definition at line 629 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [4/12]

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

Definition at line 685 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [5/12]

PCMK__OUTPUT_ARGS ( "crmadmin-node"  ,
"const char *"  ,
"const char *"  ,
"const char *"  ,
"bool"   
)

Definition at line 903 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [6/12]

PCMK__OUTPUT_ARGS ( "digests"  ,
"const pcmk_resource_t *"  ,
"const pcmk_node_t *"  ,
"const char *"  ,
"guint"  ,
"const op_digest_cache_t *"   
)

Definition at line 958 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [7/12]

PCMK__OUTPUT_ARGS ( "rsc-action ,
"pcmk_resource_t *"  ,
"pcmk_node_t *"  ,
"pcmk_node_t *"   
)

Definition at line 1075 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [8/12]

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

Definition at line 1342 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [9/12]

PCMK__OUTPUT_ARGS ( "inject-cluster-action ,
"const char *"  ,
"const char *"  ,
"xmlNodePtr"   
)

Definition at line 1388 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [10/12]

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

Definition at line 1720 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [11/12]

PCMK__OUTPUT_ARGS ( "cluster-status"  ,
"pcmk_scheduler_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 1782 of file pcmk_output.c.

◆ PCMK__OUTPUT_ARGS() [12/12]

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

Definition at line 2129 of file pcmk_output.c.

◆ pcmk__register_lib_messages()

void pcmk__register_lib_messages ( pcmk__output_t out)

Definition at line 2403 of file pcmk_output.c.