12 #include <libxml/tree.h> 113 if ((node != NULL) && (fn != NULL)) {
152 if (node_name != NULL) {
153 for (
const GList *iter = nodes; iter != NULL; iter = iter->next) {
pcmk_node_t * pcmk__find_node_in_list(const GList *nodes, const char *node_name)
const char * crm_xml_add_int(xmlNode *node, const char *name, int value)
Create an XML attribute with specified name and integer value.
bool pcmk_foreach_active_resource(pcmk_node_t *node, bool(*fn)(pcmk_resource_t *, void *), void *user_data)
const char * crm_xml_add(xmlNode *node, const char *name, const char *value)
Create an XML attribute with specified name and value.
bool pcmk_node_is_clean(const pcmk_node_t *node)
#define PCMK__XA_ATTR_HOST_ID
bool pcmk_node_is_shutting_down(const pcmk_node_t *node)
void pcmk__xe_add_node(xmlNode *xml, const char *node, int nodeid)
bool pcmk_node_is_in_maintenance(const pcmk_node_t *node)
struct pe_node_shared_s * details
bool pcmk_node_is_pending(const pcmk_node_t *node)
bool pcmk_node_is_online(const pcmk_node_t *node)
Functionality for manipulating name/value pairs.
#define PCMK__XA_ATTR_HOST
pcmk__action_result_t result