pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Functions
xml_io.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <bzlib.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlIO.h>
#include <crm/crm.h>
#include <crm/common/xml.h>
#include <crm/common/xml_io.h>
#include "crmcommon_private.h"
Include dependency graph for xml_io.c:

Go to the source code of this file.

Functions

xmlNode * pcmk__xml_read (const char *filename)
 
xmlNode * pcmk__xml_parse (const char *input)
 
void pcmk__xml_string (const xmlNode *data, uint32_t options, GString *buffer, int depth)
 
int pcmk__xml_write_fd (const xmlNode *xml, const char *filename, int fd)
 
int pcmk__xml_write_file (const xmlNode *xml, const char *filename, bool compress)
 
int pcmk__xml2fd (int fd, xmlNode *cur)
 
void save_xml_to_file (const xmlNode *xml, const char *desc, const char *filename)
 

Function Documentation

◆ pcmk__xml2fd()

int pcmk__xml2fd ( int  fd,
xmlNode *  cur 
)

Definition at line 624 of file xml_io.c.

◆ pcmk__xml_parse()

xmlNode* pcmk__xml_parse ( const char *  input)

Definition at line 168 of file xml_io.c.

◆ pcmk__xml_read()

xmlNode* pcmk__xml_read ( const char *  filename)

Definition at line 102 of file xml_io.c.

◆ pcmk__xml_string()

void pcmk__xml_string ( const xmlNode *  data,
uint32_t  options,
GString *  buffer,
int  depth 
)

Definition at line 411 of file xml_io.c.

◆ pcmk__xml_write_fd()

int pcmk__xml_write_fd ( const xmlNode *  xml,
const char *  filename,
int  fd 
)

Definition at line 576 of file xml_io.c.

◆ pcmk__xml_write_file()

int pcmk__xml_write_file ( const xmlNode *  xml,
const char *  filename,
bool  compress 
)

Definition at line 601 of file xml_io.c.

◆ save_xml_to_file()

void save_xml_to_file ( const xmlNode *  xml,
const char *  desc,
const char *  filename 
)

Definition at line 645 of file xml_io.c.