VLC 4.0.0-dev
vlc_xml.h File Reference

This file defines functions and structures to handle xml tags in vlc. More...

Include dependency graph for vlc_xml.h:

Go to the source code of this file.

Data Structures

struct  xml_t
 
struct  xml_reader_t
 

Macros

#define xml_Create(a)   xml_Create( VLC_OBJECT(a) )
 
#define xml_ReaderCreate(a, s)   xml_ReaderCreate(VLC_OBJECT(a), s)
 

Enumerations

enum  {
  XML_READER_ERROR =-1 , XML_READER_NONE =0 , XML_READER_STARTELEM , XML_READER_ENDELEM ,
  XML_READER_TEXT
}
 

Functions

xml_txml_Create (vlc_object_t *)
 
void xml_Delete (xml_t *)
 
static void xml_CatalogLoad (xml_t *xml, const char *catalog)
 
static void xml_CatalogAdd (xml_t *xml, const char *type, const char *orig, const char *value)
 
xml_reader_txml_ReaderCreate (vlc_object_t *, stream_t *)
 Creates an XML reader. More...
 
void xml_ReaderDelete (xml_reader_t *)
 Deletes an XML reader. More...
 
static int xml_ReaderNextNode (xml_reader_t *reader, const char **pval)
 
static const char * xml_ReaderNextAttr (xml_reader_t *reader, const char **pval)
 
static int xml_ReaderUseDTD (xml_reader_t *reader)
 
static int xml_ReaderIsEmptyElement (xml_reader_t *reader)
 

Detailed Description

This file defines functions and structures to handle xml tags in vlc.

Macro Definition Documentation

◆ xml_Create

#define xml_Create (   a)    xml_Create( VLC_OBJECT(a) )

◆ xml_ReaderCreate

#define xml_ReaderCreate (   a,
 
)    xml_ReaderCreate(VLC_OBJECT(a), s)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
XML_READER_ERROR 
XML_READER_NONE 
XML_READER_STARTELEM 
XML_READER_ENDELEM 
XML_READER_TEXT 

Function Documentation

◆ xml_CatalogAdd()

static void xml_CatalogAdd ( xml_t xml,
const char *  type,
const char *  orig,
const char *  value 
)
inlinestatic

References xml_t::pf_catalog_add.

◆ xml_CatalogLoad()

static void xml_CatalogLoad ( xml_t xml,
const char *  catalog 
)
inlinestatic

◆ xml_Create()

◆ xml_Delete()

void xml_Delete ( xml_t p_xml)

◆ xml_ReaderCreate()

xml_reader_t * xml_ReaderCreate ( vlc_object_t obj,
stream_t stream 
)

Creates an XML reader.

Parameters
objparent VLC object
streamstream to read XML from
Returns
NULL on error.

References module_need, msg_Err, xml_reader_t::p_module, xml_reader_t::p_stream, unlikely, vlc_custom_create, and vlc_object_delete.

◆ xml_ReaderDelete()

void xml_ReaderDelete ( xml_reader_t reader)

Deletes an XML reader.

Parameters
readerXML reader created with xml_ReaderCreate().

References module_unneed, xml_reader_t::p_module, and vlc_object_delete.

◆ xml_ReaderIsEmptyElement()

static int xml_ReaderIsEmptyElement ( xml_reader_t reader)
inlinestatic

◆ xml_ReaderNextAttr()

static const char * xml_ReaderNextAttr ( xml_reader_t reader,
const char **  pval 
)
inlinestatic

◆ xml_ReaderNextNode()

static int xml_ReaderNextNode ( xml_reader_t reader,
const char **  pval 
)
inlinestatic

◆ xml_ReaderUseDTD()

static int xml_ReaderUseDTD ( xml_reader_t reader)
inlinestatic