pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Data Structures | Macros | Typedefs | Functions
pe_status_private.h File Reference
#include <glib.h>
#include <libxml/tree.h>
#include <crm/pengine/status.h>
Include dependency graph for pe_status_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  notify_data_s
 

Macros

#define status_print(fmt, args...)
 

Typedefs

typedef struct notify_data_s notify_data_t
 

Functions

G_GNUC_INTERNAL pcmk_resource_tpe__create_clone_child (pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pe__create_action_notifications (pcmk_resource_t *rsc, notify_data_t *n_data)
 
G_GNUC_INTERNAL void pe__free_action_notification_data (notify_data_t *n_data)
 
G_GNUC_INTERNAL notify_data_tpe__action_notif_pseudo_ops (pcmk_resource_t *rsc, const char *task, pcmk_action_t *action, pcmk_action_t *complete)
 
G_GNUC_INTERNAL void pe__force_anon (const char *standard, pcmk_resource_t *rsc, const char *rid, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL gint pe__cmp_rsc_priority (gconstpointer a, gconstpointer b)
 
G_GNUC_INTERNAL gboolean pe__unpack_resource (xmlNode *xml_obj, pcmk_resource_t **rsc, pcmk_resource_t *parent, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL gboolean unpack_remote_nodes (xmlNode *xml_resources, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL gboolean unpack_resources (const xmlNode *xml_resources, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pcmk__unpack_fencing_topology (const xmlNode *xml_fencing_topology, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL gboolean unpack_config (xmlNode *config, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL gboolean unpack_nodes (xmlNode *xml_nodes, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL gboolean unpack_tags (xmlNode *xml_tags, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL gboolean unpack_status (xmlNode *status, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL pcmk__op_digest_tpe__compare_fencing_digest (pcmk_resource_t *rsc, const char *agent, pcmk_node_t *node, pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL void pe__unpack_node_health_scores (pcmk_scheduler_t *scheduler)
 
G_GNUC_INTERNAL unsigned int pe__primitive_max_per_node (const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL unsigned int pe__group_max_per_node (const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL unsigned int pe__clone_max_per_node (const pcmk_resource_t *rsc)
 
G_GNUC_INTERNAL pcmk_node_tpe__bundle_active_node (const pcmk_resource_t *rsc, unsigned int *count_all, unsigned int *count_clean)
 
G_GNUC_INTERNAL unsigned int pe__bundle_max_per_node (const pcmk_resource_t *rsc)
 

Macro Definition Documentation

◆ status_print

#define status_print (   fmt,
  args... 
)
Value:
if(options & pe_print_html) { \
FILE *stream = print_data; \
fprintf(stream, fmt, ##args); \
} else if(options & pe_print_printf || options & pe_print_ncurses) { \
FILE *stream = print_data; \
fprintf(stream, fmt, ##args); \
} else if(options & pe_print_xml) { \
FILE *stream = print_data; \
fprintf(stream, fmt, ##args); \
} else if(options & pe_print_log) { \
int log_level = *(int*)print_data; \
do_crm_log(log_level, fmt, ##args); \
}

Definition at line 31 of file pe_status_private.h.

Typedef Documentation

◆ notify_data_t

typedef struct notify_data_s notify_data_t

Function Documentation

◆ pcmk__unpack_fencing_topology()

G_GNUC_INTERNAL void pcmk__unpack_fencing_topology ( const xmlNode *  xml_fencing_topology,
pcmk_scheduler_t scheduler 
)

Definition at line 946 of file unpack.c.

◆ pe__action_notif_pseudo_ops()

G_GNUC_INTERNAL notify_data_t* pe__action_notif_pseudo_ops ( pcmk_resource_t rsc,
const char *  task,
pcmk_action_t action,
pcmk_action_t complete 
)

Definition at line 432 of file pe_notif.c.

◆ pe__bundle_active_node()

G_GNUC_INTERNAL pcmk_node_t* pe__bundle_active_node ( const pcmk_resource_t rsc,
unsigned int *  count_all,
unsigned int *  count_clean 
)

Definition at line 2185 of file bundle.c.

◆ pe__bundle_max_per_node()

G_GNUC_INTERNAL unsigned int pe__bundle_max_per_node ( const pcmk_resource_t rsc)

Definition at line 2268 of file bundle.c.

◆ pe__clone_max_per_node()

G_GNUC_INTERNAL unsigned int pe__clone_max_per_node ( const pcmk_resource_t rsc)

Definition at line 1554 of file clone.c.

◆ pe__cmp_rsc_priority()

G_GNUC_INTERNAL gint pe__cmp_rsc_priority ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 295 of file utils.c.

◆ pe__compare_fencing_digest()

G_GNUC_INTERNAL pcmk__op_digest_t* pe__compare_fencing_digest ( pcmk_resource_t rsc,
const char *  agent,
pcmk_node_t node,
pcmk_scheduler_t scheduler 
)

Definition at line 551 of file pe_digest.c.

◆ pe__create_action_notifications()

G_GNUC_INTERNAL void pe__create_action_notifications ( pcmk_resource_t rsc,
notify_data_t n_data 
)

Definition at line 939 of file pe_notif.c.

◆ pe__create_clone_child()

G_GNUC_INTERNAL pcmk_resource_t* pe__create_clone_child ( pcmk_resource_t rsc,
pcmk_scheduler_t scheduler 
)

Definition at line 247 of file clone.c.

◆ pe__force_anon()

G_GNUC_INTERNAL void pe__force_anon ( const char *  standard,
pcmk_resource_t rsc,
const char *  rid,
pcmk_scheduler_t scheduler 
)

Definition at line 212 of file clone.c.

◆ pe__free_action_notification_data()

G_GNUC_INTERNAL void pe__free_action_notification_data ( notify_data_t n_data)

Definition at line 956 of file pe_notif.c.

◆ pe__group_max_per_node()

G_GNUC_INTERNAL unsigned int pe__group_max_per_node ( const pcmk_resource_t rsc)

Definition at line 537 of file group.c.

◆ pe__primitive_max_per_node()

G_GNUC_INTERNAL unsigned int pe__primitive_max_per_node ( const pcmk_resource_t rsc)

Definition at line 1467 of file native.c.

◆ pe__unpack_node_health_scores()

G_GNUC_INTERNAL void pe__unpack_node_health_scores ( pcmk_scheduler_t scheduler)

Definition at line 24 of file pe_health.c.

◆ pe__unpack_resource()

G_GNUC_INTERNAL gboolean pe__unpack_resource ( xmlNode *  xml_obj,
pcmk_resource_t **  rsc,
pcmk_resource_t parent,
pcmk_scheduler_t scheduler 
)

Definition at line 691 of file complex.c.

◆ unpack_config()

G_GNUC_INTERNAL gboolean unpack_config ( xmlNode *  config,
pcmk_scheduler_t scheduler 
)

Definition at line 214 of file unpack.c.

◆ unpack_nodes()

G_GNUC_INTERNAL gboolean unpack_nodes ( xmlNode *  xml_nodes,
pcmk_scheduler_t scheduler 
)

Definition at line 638 of file unpack.c.

◆ unpack_remote_nodes()

G_GNUC_INTERNAL gboolean unpack_remote_nodes ( xmlNode *  xml_resources,
pcmk_scheduler_t scheduler 
)

Definition at line 727 of file unpack.c.

◆ unpack_resources()

G_GNUC_INTERNAL gboolean unpack_resources ( const xmlNode *  xml_resources,
pcmk_scheduler_t scheduler 
)

Definition at line 871 of file unpack.c.

◆ unpack_status()

G_GNUC_INTERNAL gboolean unpack_status ( xmlNode *  status,
pcmk_scheduler_t scheduler 
)

Definition at line 1437 of file unpack.c.

◆ unpack_tags()

G_GNUC_INTERNAL gboolean unpack_tags ( xmlNode *  xml_tags,
pcmk_scheduler_t scheduler 
)

Definition at line 973 of file unpack.c.