pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
Typedefs | Functions | Variables
output_xml.c File Reference
#include <crm_internal.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <glib.h>
#include <crm/common/xml.h>
Include dependency graph for output_xml.c:

Go to the source code of this file.

Typedefs

typedef struct subst_s subst_t
 
typedef struct private_data_s private_data_t
 

Functions

pcmk__output_tpcmk__mk_xml_output (char **argv)
 
xmlNodePtr pcmk__output_xml_create_parent (pcmk__output_t *out, const char *name,...)
 
void pcmk__output_xml_add_node (pcmk__output_t *out, xmlNodePtr node)
 
xmlNodePtr pcmk__output_create_xml_node (pcmk__output_t *out, const char *name,...)
 
xmlNodePtr pcmk__output_create_xml_text_node (pcmk__output_t *out, const char *name, const char *content)
 
void pcmk__output_xml_push_parent (pcmk__output_t *out, xmlNodePtr parent)
 
void pcmk__output_xml_pop_parent (pcmk__output_t *out)
 
xmlNodePtr pcmk__output_xml_peek_parent (pcmk__output_t *out)
 

Variables

GOptionEntry pcmk__xml_output_entries []
 

Typedef Documentation

◆ private_data_t

typedef struct private_data_s private_data_t

◆ subst_t

typedef struct subst_s subst_t

Function Documentation

◆ pcmk__mk_xml_output()

pcmk__output_t* pcmk__mk_xml_output ( char **  argv)

Definition at line 395 of file output_xml.c.

◆ pcmk__output_create_xml_node()

xmlNodePtr pcmk__output_create_xml_node ( pcmk__output_t out,
const char *  name,
  ... 
)

Definition at line 466 of file output_xml.c.

◆ pcmk__output_create_xml_text_node()

xmlNodePtr pcmk__output_create_xml_text_node ( pcmk__output_t out,
const char *  name,
const char *  content 
)

Definition at line 485 of file output_xml.c.

◆ pcmk__output_xml_add_node()

void pcmk__output_xml_add_node ( pcmk__output_t out,
xmlNodePtr  node 
)

Definition at line 450 of file output_xml.c.

◆ pcmk__output_xml_create_parent()

xmlNodePtr pcmk__output_xml_create_parent ( pcmk__output_t out,
const char *  name,
  ... 
)

Definition at line 433 of file output_xml.c.

◆ pcmk__output_xml_peek_parent()

xmlNodePtr pcmk__output_xml_peek_parent ( pcmk__output_t out)

Definition at line 528 of file output_xml.c.

◆ pcmk__output_xml_pop_parent()

void pcmk__output_xml_pop_parent ( pcmk__output_t out)

Definition at line 512 of file output_xml.c.

◆ pcmk__output_xml_push_parent()

void pcmk__output_xml_push_parent ( pcmk__output_t out,
xmlNodePtr  parent 
)

Definition at line 496 of file output_xml.c.

Variable Documentation

◆ pcmk__xml_output_entries

GOptionEntry pcmk__xml_output_entries[]
Initial value:
= {
{ "xml-legacy", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &legacy_xml,
NULL,
NULL },
{ "xml-simple-list", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &simple_list,
NULL,
NULL },
{ "xml-substitute", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &substitute,
NULL,
NULL },
{ NULL }
}

Definition at line 24 of file output_xml.c.