pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
pe_status_private.h
Go to the documentation of this file.
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 # define status_print(fmt, args...) \
18  if(options & pe_print_html) { \
19  FILE *stream = print_data; \
20  fprintf(stream, fmt, ##args); \
21  } else if(options & pe_print_printf || options & pe_print_ncurses) { \
22  FILE *stream = print_data; \
23  fprintf(stream, fmt, ##args); \
24  } else if(options & pe_print_xml) { \
25  FILE *stream = print_data; \
26  fprintf(stream, fmt, ##args); \
27  } else if(options & pe_print_log) { \
28  int log_level = *(int*)print_data; \
29  do_crm_log(log_level, fmt, ##args); \
30  }
31 
32 G_GNUC_INTERNAL
35 
36 G_GNUC_INTERNAL
37 void pe__force_anon(const char *standard, pe_resource_t *rsc, const char *rid,
39 
40 G_GNUC_INTERNAL
41 gboolean unpack_remote_nodes(xmlNode *xml_resources, pe_working_set_t *data_set);
42 
43 G_GNUC_INTERNAL
44 gboolean unpack_resources(xmlNode *xml_resources, pe_working_set_t *data_set);
45 
46 G_GNUC_INTERNAL
47 gboolean unpack_config(xmlNode *config, pe_working_set_t *data_set);
48 
49 G_GNUC_INTERNAL
50 gboolean unpack_nodes(xmlNode *xml_nodes, pe_working_set_t *data_set);
51 
52 G_GNUC_INTERNAL
53 gboolean unpack_tags(xmlNode *xml_tags, pe_working_set_t *data_set);
54 
55 G_GNUC_INTERNAL
56 gboolean unpack_status(xmlNode *status, pe_working_set_t *data_set);
57 
58 G_GNUC_INTERNAL
60  const char *agent,
61  pe_node_t *node,
63 
64 G_GNUC_INTERNAL
66 
67 #endif // PE_STATUS_PRIVATE__H
G_GNUC_INTERNAL void pe__unpack_node_health_scores(pe_working_set_t *data_set)
Definition: pe_health.c:23
G_GNUC_INTERNAL gboolean unpack_remote_nodes(xmlNode *xml_resources, pe_working_set_t *data_set)
Definition: unpack.c:629
G_GNUC_INTERNAL gboolean unpack_status(xmlNode *status, pe_working_set_t *data_set)
Definition: unpack.c:1249
G_GNUC_INTERNAL pe_resource_t * pe__create_clone_child(pe_resource_t *rsc, pe_working_set_t *data_set)
Definition: clone.c:153
G_GNUC_INTERNAL gboolean unpack_tags(xmlNode *xml_tags, pe_working_set_t *data_set)
Definition: unpack.c:827
G_GNUC_INTERNAL gboolean unpack_nodes(xmlNode *xml_nodes, pe_working_set_t *data_set)
Definition: unpack.c:536
G_GNUC_INTERNAL gboolean unpack_resources(xmlNode *xml_resources, pe_working_set_t *data_set)
Definition: unpack.c:766
pe_working_set_t * data_set
G_GNUC_INTERNAL void pe__force_anon(const char *standard, pe_resource_t *rsc, const char *rid, pe_working_set_t *data_set)
Definition: clone.c:116
G_GNUC_INTERNAL gboolean unpack_config(xmlNode *config, pe_working_set_t *data_set)
Definition: unpack.c:196
G_GNUC_INTERNAL op_digest_cache_t * pe__compare_fencing_digest(pe_resource_t *rsc, const char *agent, pe_node_t *node, pe_working_set_t *data_set)
Definition: pe_digest.c:520