WE310F5  39.00.000
m2mb_xml.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
26 #include "m2mb_types.h"
27 #include "m2mb_status.h"
28 
29 #ifndef _M2MB_XML_H_
30 #define _M2MB_XML_H_
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
51 /*-----------------------------------------------------------------------------------------------*/
52 
57 /*-----------------------------------------------------------------------------------------------*/
58 
59 
60 /* Global declarations ==========================================================================*/
61 
62 
63 /* Global typedefs ==============================================================================*/
64 
72 typedef enum M2MB_XML_OBJ_TYPE
73 {
79 
87 typedef enum M2MB_XML_DATA_TYPE
88 {
127 
135 typedef struct M2MB_XML_NODE
136 {
141 
149 typedef struct M2MB_XML_DATE
150 {
157 
165 typedef struct M2MB_XML_TIME
166 {
173 
181 typedef struct M2MB_XML_DATE_TIME
182 {
192 
200 typedef struct M2MB_XML_DURATION
201 {
209 
210 
218 typedef struct M2MB_XML_STRING
219 {
225 
233 typedef struct M2MB_XML_OBJ
234 {
243 
251 typedef struct M2MB_XML_COMPLEX_INFO
252 {
257 
265 typedef struct M2MB_XML_COMPLEX_OBJ
266 {
270 
271 
272 
273 /*---------------------------------------------------------------------------*/
368 /*---------------------------------------------------------------------------*/
370  UINT8 *user_struct, UINT8 *xml_file_buffer, UINT32 xml_file_buffer_Size,
371  UINT32 *len_of_xml_written );
372 
373 /*---------------------------------------------------------------------------*/
458 /*---------------------------------------------------------------------------*/
459 M2MB_STATUS_T m2mb_xml_decode( UINT8 *parent_start, UINT8* parent_end,
460  M2MB_XML_COMPLEX_OBJ_T *xml_schema, UINT8 *return_struct );
461 
462 /*---------------------------------------------------------------------------*/
502 /*---------------------------------------------------------------------------*/
504  UINT8 *parent_node_start, UINT8 *parent_node_end,UINT8 *tag_end );
505 
506 /*---------------------------------------------------------------------------*/
540 /*---------------------------------------------------------------------------*/
541 UINT8 m2mb_xml_node_occ_get( UINT8 *pTName, UINT8 *pPNStart,
542  UINT8 *pPNEnd );
543 
547 /*-----------------------------------------------------------------------------------------------*/
548 
549 
550 #ifdef __cplusplus
551 }
552 #endif
553 #endif /* _M2MB_XML_H_ */
struct M2MB_XML_DATE M2MB_XML_DATE_T
XML date structure xml.
UINT8 hrOffset
Definition: m2mb_xml.h:170
M2MB_XML_OBJ_TYPE_T objType
Definition: m2mb_xml.h:236
UINT8 hrOffset
Definition: m2mb_xml.h:154
unsigned char UINT8
Definition: m2mb_types.h:86
M2MB_XML_OBJ_TYPE
Object type supported by the xml.
Definition: m2mb_xml.h:72
enum M2MB_XML_OBJ_TYPE M2MB_XML_OBJ_TYPE_T
Object type supported by the xml.
struct M2MB_XML_TIME M2MB_XML_TIME_T
Xml time structure xml.
struct M2MB_XML_NODE M2MB_XML_NODE_T
Xml node structure.
UINT8 * ptr
Definition: m2mb_xml.h:222
UINT8 minOffset
Definition: m2mb_xml.h:155
M2MB_XML_DATA_TYPE_T dataType
Definition: m2mb_xml.h:237
enum M2MB_XML_DATA_TYPE M2MB_XML_DATA_TYPE_T
Data type supported by the XML.
Xml time structure xml.
Definition: m2mb_xml.h:165
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:97
UINT8 * pName
Definition: m2mb_xml.h:235
struct M2MB_XML_STRING M2MB_XML_STRING_T
Duration structure XML.
unsigned short UINT16
Definition: m2mb_types.h:87
XML complex information structure.
Definition: m2mb_xml.h:251
M2MB_STATUS_T m2mb_xml_encode(M2MB_XML_COMPLEX_OBJ_T *xml_schema, UINT8 *user_struct, UINT8 *xml_file_buffer, UINT32 xml_file_buffer_Size, UINT32 *len_of_xml_written)
Encode API for XML module.
UINT8 * pName
Definition: m2mb_xml.h:137
UINT8 minOffset
Definition: m2mb_xml.h:171
UINT16 offset
Definition: m2mb_xml.h:240
const M2MB_XML_OBJ_T ** pObj
Definition: m2mb_xml.h:255
Xml duration structure.
Definition: m2mb_xml.h:200
M2MB_STATUS_T m2mb_xml_node_get(M2MB_XML_NODE_T *child_node, UINT8 *parent_node_start, UINT8 *parent_node_end, UINT8 *tag_end)
Get node API for XML module.
XML date structure xml.
Definition: m2mb_xml.h:149
M2MB_XML_DATA_TYPE
Data type supported by the XML.
Definition: m2mb_xml.h:87
M2MB_STATUS_T m2mb_xml_decode(UINT8 *parent_start, UINT8 *parent_end, M2MB_XML_COMPLEX_OBJ_T *xml_schema, UINT8 *return_struct)
Decode API for XML module.
M2MB_XML_OBJ_T obj
Definition: m2mb_xml.h:267
UINT8 maxObjOcc
Definition: m2mb_xml.h:238
Xml object structure.
Definition: m2mb_xml.h:233
M2M base status (ver. )
Xml date & time structure xml.
Definition: m2mb_xml.h:181
UINT8 * pStart
Definition: m2mb_xml.h:138
Xml node structure.
Definition: m2mb_xml.h:135
struct M2MB_XML_COMPLEX_OBJ M2MB_XML_COMPLEX_OBJ_T
Xml complex object structure.
struct M2MB_XML_DATE_TIME M2MB_XML_DATE_TIME_T
Xml date & time structure xml.
unsigned long int UINT32
Definition: m2mb_types.h:88
UINT8 month
Definition: m2mb_xml.h:152
Xml complex object structure.
Definition: m2mb_xml.h:265
M2MB_XML_COMPLEX_INFO_T complexobj
Definition: m2mb_xml.h:268
struct M2MB_XML_COMPLEX_INFO M2MB_XML_COMPLEX_INFO_T
XML complex information structure.
Duration structure XML.
Definition: m2mb_xml.h:218
struct M2MB_XML_DURATION M2MB_XML_DURATION_T
Xml duration structure.
struct M2MB_XML_OBJ M2MB_XML_OBJ_T
Xml object structure.
M2M base types (ver. )
UINT8 m2mb_xml_node_occ_get(UINT8 *pTName, UINT8 *pPNStart, UINT8 *pPNEnd)
Occurrence of node present API for XML module.
UINT16 year
Definition: m2mb_xml.h:151
UINT8 * pEnd
Definition: m2mb_xml.h:139