HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
xml_parse.c File Reference

XML parsing functionalities. More...

#include <string.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include "dbgfuncs.h"
#include "techtype.h"
#include "hbbtv_sif_os.h"
#include "debug.h"
#include "hbbtv_string.h"
#include "xml_parse.h"
#include "hbbtv.h"

Macros

#define NODE_CONTENT_GET(node, dptr)   dptr = (node->children) ? node->children->content : NULL
 
#define NODE_CONTENT_RELEASE()
 
#define NODE_PROPERTY(node, prop)   XmlGetPropertyContent(node, prop)
 
#define NODE_PROP_FREE(dptr)
 

Functions

S_AIT_TABLEHBBTV_XmlParseAit (U8BIT *content, U32BIT length)
 Parse Xml data as specified in TS 102 809 section 5.4. More...
 
void HBBTV_XmlClearAit (S_AIT_TABLE *ait_table)
 Clear/free table created by HBBTV_XmlParseAit(). This is a wrapper that calls AIT_ClearTable() More...
 
S_XML_DSMCCHBBTV_XmlParseDsmcc (U8BIT *content, U32BIT length)
 Parse Xml data as specified in TS 102 809 section 8.2. More...
 
void HBBTV_XmlClearDsmcc (S_XML_DSMCC *dsm_objs)
 Clear/free table created by HBBTV_XmlParseDsmcc(). More...
 

Detailed Description

XML parsing functionalities.

Date
01/01/2013
Author
Adam Sturtridge

Function Documentation

void HBBTV_XmlClearAit ( S_AIT_TABLE ait_table)

Clear/free table created by HBBTV_XmlParseAit(). This is a wrapper that calls AIT_ClearTable()


Parameters
ait_table- pointer to Ait table
Returns
n/a
void HBBTV_XmlClearDsmcc ( S_XML_DSMCC dsm_objs)

Clear/free table created by HBBTV_XmlParseDsmcc().


Parameters
dsm_objs- pointer to dsmcc obects
Returns
n/a
S_AIT_TABLE* HBBTV_XmlParseAit ( U8BIT *  content,
U32BIT  length 
)

Parse Xml data as specified in TS 102 809 section 5.4.


Parameters
content- pointer to Xml data
length- length of Xml data
Returns
AIT table data in same format as generated from DVB broadcast data
S_XML_DSMCC* HBBTV_XmlParseDsmcc ( U8BIT *  content,
U32BIT  length 
)

Parse Xml data as specified in TS 102 809 section 8.2.


Parameters
content- pointer to Xml data
content- length of Xml data
Returns
Dsmcc object data Stream event object data