root/lib/pengine/pe_status_private.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright 2018-2022 the Pacemaker project contributors
   3  *
   4  * The version control history for this file may have further details.
   5  *
   6  * This source code is licensed under the GNU Lesser General Public License
   7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
   8  */
   9 
  10 #ifndef PE_STATUS_PRIVATE__H
  11 #  define PE_STATUS_PRIVATE__H
  12 
  13 /* This header is for the sole use of libpe_status, so that functions can be
  14  * declared with G_GNUC_INTERNAL for efficiency.
  15  */
  16 
  17 #if defined(PCMK__UNIT_TESTING)
  18 #undef G_GNUC_INTERNAL
  19 #define G_GNUC_INTERNAL
  20 #endif
  21 
  22 /*!
  23  * \internal
  24  * \deprecated This macro will be removed in a future release
  25  */
  26 #  define status_print(fmt, args...)           \
  27    if(options & pe_print_html) {           \
  28        FILE *stream = print_data;      \
  29        fprintf(stream, fmt, ##args);       \
  30    } else if(options & pe_print_printf || options & pe_print_ncurses) {      \
  31        FILE *stream = print_data;      \
  32        fprintf(stream, fmt, ##args);       \
  33    } else if(options & pe_print_xml) {     \
  34        FILE *stream = print_data;      \
  35        fprintf(stream, fmt, ##args);       \
  36    } else if(options & pe_print_log) {     \
  37        int log_level = *(int*)print_data;  \
  38        do_crm_log(log_level, fmt, ##args); \
  39    }
  40 
  41 G_GNUC_INTERNAL
  42 pe_resource_t *pe__create_clone_child(pe_resource_t *rsc,
  43                                       pe_working_set_t *data_set);
  44 
  45 G_GNUC_INTERNAL
  46 void pe__force_anon(const char *standard, pe_resource_t *rsc, const char *rid,
  47                     pe_working_set_t *data_set);
  48 
  49 G_GNUC_INTERNAL
  50 gint pe__cmp_rsc_priority(gconstpointer a, gconstpointer b);
  51 
  52 G_GNUC_INTERNAL
  53 gboolean pe__unpack_resource(xmlNode *xml_obj, pe_resource_t **rsc,
  54                              pe_resource_t *parent, pe_working_set_t *data_set);
  55 
  56 G_GNUC_INTERNAL
  57 gboolean unpack_remote_nodes(xmlNode *xml_resources, pe_working_set_t *data_set);
  58 
  59 G_GNUC_INTERNAL
  60 gboolean unpack_resources(xmlNode *xml_resources, pe_working_set_t *data_set);
  61 
  62 G_GNUC_INTERNAL
  63 gboolean unpack_config(xmlNode *config, pe_working_set_t *data_set);
  64 
  65 G_GNUC_INTERNAL
  66 gboolean unpack_nodes(xmlNode *xml_nodes, pe_working_set_t *data_set);
  67 
  68 G_GNUC_INTERNAL
  69 gboolean unpack_tags(xmlNode *xml_tags, pe_working_set_t *data_set);
  70 
  71 G_GNUC_INTERNAL
  72 gboolean unpack_status(xmlNode *status, pe_working_set_t *data_set);
  73 
  74 G_GNUC_INTERNAL
  75 op_digest_cache_t *pe__compare_fencing_digest(pe_resource_t *rsc,
  76                                               const char *agent,
  77                                               pe_node_t *node,
  78                                               pe_working_set_t *data_set);
  79 
  80 G_GNUC_INTERNAL
  81 void pe__unpack_node_health_scores(pe_working_set_t *data_set);
  82 
  83 #endif  // PE_STATUS_PRIVATE__H

/* [previous][next][first][last][top][bottom][index][help] */