10 #ifndef PE_STATUS_PRIVATE__H 11 # define PE_STATUS_PRIVATE__H 17 #if defined(PCMK__UNIT_TESTING) 18 #undef G_GNUC_INTERNAL 19 #define G_GNUC_INTERNAL 23 #include <libxml/tree.h> 31 # define status_print(fmt, args...) \ 32 if(options & pe_print_html) { \ 33 FILE *stream = print_data; \ 34 fprintf(stream, fmt, ##args); \ 35 } else if(options & pe_print_printf || options & pe_print_ncurses) { \ 36 FILE *stream = print_data; \ 37 fprintf(stream, fmt, ##args); \ 38 } else if(options & pe_print_xml) { \ 39 FILE *stream = print_data; \ 40 fprintf(stream, fmt, ##args); \ 41 } else if(options & pe_print_log) { \ 42 int log_level = *(int*)print_data; \ 43 do_crm_log(log_level, fmt, ##args); \ 144 unsigned int *count_all,
145 unsigned int *count_clean);
150 #endif // PE_STATUS_PRIVATE__H
GHashTable * allowed_nodes
G_GNUC_INTERNAL pcmk_node_t * pe__bundle_active_node(const pcmk_resource_t *rsc, unsigned int *count_all, unsigned int *count_clean)
G_GNUC_INTERNAL unsigned int pe__clone_max_per_node(const pcmk_resource_t *rsc)
Implementation of pcmk_action_t.
G_GNUC_INTERNAL op_digest_cache_t * pe__compare_fencing_digest(pcmk_resource_t *rsc, const char *agent, pcmk_node_t *node, pcmk_scheduler_t *scheduler)
G_GNUC_INTERNAL gboolean unpack_remote_nodes(xmlNode *xml_resources, pcmk_scheduler_t *scheduler)
G_GNUC_INTERNAL unsigned int pe__bundle_max_per_node(const pcmk_resource_t *rsc)
Implementation of pcmk_scheduler_t.
G_GNUC_INTERNAL gboolean unpack_resources(const xmlNode *xml_resources, pcmk_scheduler_t *scheduler)
G_GNUC_INTERNAL void pe__unpack_node_health_scores(pcmk_scheduler_t *scheduler)
G_GNUC_INTERNAL gboolean unpack_status(xmlNode *status, pcmk_scheduler_t *scheduler)
Implementation of pcmk_resource_t.
G_GNUC_INTERNAL void pe__force_anon(const char *standard, pcmk_resource_t *rsc, const char *rid, pcmk_scheduler_t *scheduler)
G_GNUC_INTERNAL pcmk_resource_t * pe__create_clone_child(pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler)
G_GNUC_INTERNAL gboolean unpack_nodes(xmlNode *xml_nodes, pcmk_scheduler_t *scheduler)
pcmk_action_t * post_done
Implementation of pcmk_node_t.
G_GNUC_INTERNAL unsigned int pe__primitive_max_per_node(const pcmk_resource_t *rsc)
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 notify_data_t * pe__action_notif_pseudo_ops(pcmk_resource_t *rsc, const char *task, pcmk_action_t *action, pcmk_action_t *complete)
G_GNUC_INTERNAL void pe__create_action_notifications(pcmk_resource_t *rsc, notify_data_t *n_data)
Cluster status and scheduling.
G_GNUC_INTERNAL gint pe__cmp_rsc_priority(gconstpointer a, gconstpointer b)
pcmk_scheduler_t * scheduler
G_GNUC_INTERNAL unsigned int pe__group_max_per_node(const pcmk_resource_t *rsc)
G_GNUC_INTERNAL gboolean unpack_config(xmlNode *config, pcmk_scheduler_t *scheduler)
struct notify_data_s notify_data_t
G_GNUC_INTERNAL void pe__free_action_notification_data(notify_data_t *n_data)
G_GNUC_INTERNAL gboolean unpack_tags(xmlNode *xml_tags, pcmk_scheduler_t *scheduler)