HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
xml_parse.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2013 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef XML_PARSE_H
26 #define XML_PARSE_H
27 
28 #include "ait.h"
29 
30 typedef struct
31 {
32  U16BIT event_id;
33  U16BIT name_len;
34  U8BIT *name_ptr;
35 } S_XML_SEVENT;
36 
37 typedef struct
38 {
39  U16BIT component_tag;
40  U16BIT event_count;
41  S_XML_SEVENT *events;
42 } S_XML_SE_OBJ;
43 
44 typedef struct
45 {
46  U32BIT se_total;
47  S_XML_SE_OBJ *se_objs;
48 } S_XML_DSMCC;
49 
50 
51 /*!****************************************************************************
52  * @brief Parse Xml data as specified in TS 102 809 section 5.4
53  * @param content - pointer to Xml data
54  * @param content - length of Xml data
55  * @return AIT table data in same format as generated from DVB broadcast data
56  ******************************************************************************/
57 S_AIT_TABLE* HBBTV_XmlParseAit(U8BIT *content, U32BIT length);
58 
59 /*!****************************************************************************
60  * @brief Clear/free table created by HBBTV_XmlParseAit().
61  * This is a wrapper that calls AIT_ClearTable()
62  * @param ait_table - pointer to Ait table
63  * @return n/a
64  ******************************************************************************/
65 void HBBTV_XmlClearAit(S_AIT_TABLE *ait_table);
66 
67 /*!****************************************************************************
68  * @brief Parse Xml data as specified in TS 102 809 section 8.2
69  * @param content - pointer to Xml data
70  * @param content - length of Xml data
71  * @return Dsmcc object data Stream event object data
72  ******************************************************************************/
73 S_XML_DSMCC* HBBTV_XmlParseDsmcc(U8BIT *content, U32BIT length);
74 
75 /*!****************************************************************************
76  * @brief Clear/free table created by HBBTV_XmlParseDsmcc().
77  * @param dsm_objs - pointer to dsmcc obects
78  * @return n/a
79  ******************************************************************************/
80 void HBBTV_XmlClearDsmcc(S_XML_DSMCC *dsm_objs);
81 
82 #endif /* XML_PARSE_H */
Definition: xml_parse.h:37
void HBBTV_XmlClearDsmcc(S_XML_DSMCC *dsm_objs)
Clear/free table created by HBBTV_XmlParseDsmcc().
Definition: xml_parse.c:1185
void HBBTV_XmlClearAit(S_AIT_TABLE *ait_table)
Clear/free table created by HBBTV_XmlParseAit(). This is a wrapper that calls AIT_ClearTable() ...
Definition: xml_parse.c:1119
Definition: ait.h:157
HbbTV Glue: AIT related functions.
S_AIT_TABLE * HBBTV_XmlParseAit(U8BIT *content, U32BIT length)
Parse Xml data as specified in TS 102 809 section 5.4.
Definition: xml_parse.c:1065
Definition: xml_parse.h:44
Definition: xml_parse.h:30
S_XML_DSMCC * HBBTV_XmlParseDsmcc(U8BIT *content, U32BIT length)
Parse Xml data as specified in TS 102 809 section 8.2.
Definition: xml_parse.c:1130