pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Functions
xml_element_internal.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <libxml/tree.h>
#include <crm/common/iso8601.h>
#include <crm/common/xml_element.h>
#include <crm/common/xml_names.h>
Include dependency graph for xml_element_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * pcmk__xe_add_last_written (xmlNode *xe)
 
xmlNode * pcmk__xe_first_child (const xmlNode *parent, const char *node_name, const char *attr_n, const char *attr_v)
 
void pcmk__xe_remove_attr (xmlNode *element, const char *name)
 
bool pcmk__xe_remove_attr_cb (xmlNode *xml, void *user_data)
 
void pcmk__xe_remove_matching_attrs (xmlNode *element, bool(*match)(xmlAttrPtr, void *), void *user_data)
 
int pcmk__xe_delete_match (xmlNode *xml, xmlNode *search)
 
int pcmk__xe_replace_match (xmlNode *xml, xmlNode *replace)
 
int pcmk__xe_update_match (xmlNode *xml, xmlNode *update, uint32_t flags)
 
xmlNode * pcmk__xe_create (xmlNode *parent, const char *name)
 
xmlNode * pcmk__xe_next (const xmlNode *node, const char *element_name)
 
void pcmk__xe_set_content (xmlNode *node, const char *format,...) G_GNUC_PRINTF(2
 
void int pcmk__xe_get_score (const xmlNode *xml, const char *name, int *score, int default_score)
 
int pcmk__xe_copy_attrs (xmlNode *target, const xmlNode *src, uint32_t flags)
 
void pcmk__xe_sort_attrs (xmlNode *xml)
 
void pcmk__xe_set_id (xmlNode *xml, const char *format,...) G_GNUC_PRINTF(2
 
void void pcmk__xe_set_propv (xmlNodePtr node, va_list pairs)
 
void pcmk__xe_set_props (xmlNodePtr node,...) G_GNUC_NULL_TERMINATED
 
int pcmk__xe_foreach_child (xmlNode *xml, const char *child_element_name, int(*handler)(xmlNode *xml, void *userdata), void *userdata)
 
int pcmk__xe_get_datetime (const xmlNode *xml, const char *attr, crm_time_t **t)
 
int pcmk__xe_get_flags (const xmlNode *xml, const char *name, uint32_t *dest, uint32_t default_value)
 
void pcmk__xe_set_bool_attr (xmlNodePtr node, const char *name, bool value)
 
int pcmk__xe_get_bool_attr (const xmlNode *node, const char *name, bool *value)
 
bool pcmk__xe_attr_is_true (const xmlNode *node, const char *name)
 

Function Documentation

◆ pcmk__xe_add_last_written()

const char* pcmk__xe_add_last_written ( xmlNode *  xe)

Definition at line 526 of file xml_element.c.

◆ pcmk__xe_attr_is_true()

bool pcmk__xe_attr_is_true ( const xmlNode *  node,
const char *  name 
)

Definition at line 1538 of file xml_element.c.

◆ pcmk__xe_copy_attrs()

int pcmk__xe_copy_attrs ( xmlNode *  target,
const xmlNode *  src,
uint32_t  flags 
)

Definition at line 252 of file xml_element.c.

◆ pcmk__xe_create()

xmlNode* pcmk__xe_create ( xmlNode *  parent,
const char *  name 
)

Definition at line 407 of file xml_element.c.

◆ pcmk__xe_delete_match()

int pcmk__xe_delete_match ( xmlNode *  xml,
xmlNode *  search 
)

Definition at line 717 of file xml_element.c.

◆ pcmk__xe_first_child()

xmlNode* pcmk__xe_first_child ( const xmlNode *  parent,
const char *  node_name,
const char *  attr_n,
const char *  attr_v 
)

Definition at line 42 of file xml_element.c.

◆ pcmk__xe_foreach_child()

int pcmk__xe_foreach_child ( xmlNode *  xml,
const char *  child_element_name,
int(*)(xmlNode *xml, void *userdata)  handler,
void *  userdata 
)

Definition at line 979 of file xml_element.c.

◆ pcmk__xe_get_bool_attr()

int pcmk__xe_get_bool_attr ( const xmlNode *  node,
const char *  name,
bool *  value 
)

Definition at line 1501 of file xml_element.c.

◆ pcmk__xe_get_datetime()

int pcmk__xe_get_datetime ( const xmlNode *  xml,
const char *  attr,
crm_time_t **  t 
)

Definition at line 1436 of file xml_element.c.

◆ pcmk__xe_get_flags()

int pcmk__xe_get_flags ( const xmlNode *  xml,
const char *  name,
uint32_t *  dest,
uint32_t  default_value 
)

Definition at line 1243 of file xml_element.c.

◆ pcmk__xe_get_score()

void int pcmk__xe_get_score ( const xmlNode *  xml,
const char *  name,
int *  score,
int  default_score 
)

Definition at line 132 of file xml_element.c.

◆ pcmk__xe_next()

xmlNode* pcmk__xe_next ( const xmlNode *  node,
const char *  element_name 
)

Definition at line 106 of file xml_element.c.

◆ pcmk__xe_remove_attr()

void pcmk__xe_remove_attr ( xmlNode *  element,
const char *  name 
)

Definition at line 339 of file xml_element.c.

◆ pcmk__xe_remove_attr_cb()

bool pcmk__xe_remove_attr_cb ( xmlNode *  xml,
void *  user_data 
)

Definition at line 361 of file xml_element.c.

◆ pcmk__xe_remove_matching_attrs()

void pcmk__xe_remove_matching_attrs ( xmlNode *  element,
bool(*)(xmlAttrPtr, void *)  match,
void *  user_data 
)

Definition at line 379 of file xml_element.c.

◆ pcmk__xe_replace_match()

int pcmk__xe_replace_match ( xmlNode *  xml,
xmlNode *  replace 
)

Definition at line 832 of file xml_element.c.

◆ pcmk__xe_set_bool_attr()

void pcmk__xe_set_bool_attr ( xmlNodePtr  node,
const char *  name,
bool  value 
)

Definition at line 1480 of file xml_element.c.

◆ pcmk__xe_set_content()

void pcmk__xe_set_content ( xmlNode *  node,
const char *  format,
  ... 
)

◆ pcmk__xe_set_id()

void pcmk__xe_set_id ( xmlNode *  xml,
const char *  format,
  ... 
)

◆ pcmk__xe_set_props()

void pcmk__xe_set_props ( xmlNodePtr  node,
  ... 
)

Definition at line 970 of file xml_element.c.

◆ pcmk__xe_set_propv()

void void pcmk__xe_set_propv ( xmlNodePtr  node,
va_list  pairs 
)

Definition at line 952 of file xml_element.c.

◆ pcmk__xe_sort_attrs()

void pcmk__xe_sort_attrs ( xmlNode *  xml)

Definition at line 312 of file xml_element.c.

◆ pcmk__xe_update_match()

int pcmk__xe_update_match ( xmlNode *  xml,
xmlNode *  update,
uint32_t  flags 
)

Definition at line 926 of file xml_element.c.