24
|
1 |
/*
|
|
2 |
* Copyright (c) 2000 - 2001 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
/** ----------------------------------------------------------------------- **
|
|
20 |
@package: NW_TinyTree
|
|
21 |
|
|
22 |
@synopsis: default
|
|
23 |
|
|
24 |
@description: default
|
|
25 |
|
|
26 |
** ----------------------------------------------------------------------- **/
|
|
27 |
|
|
28 |
#ifndef NW_TINYTREE_TREEVECTOR_H
|
|
29 |
#define NW_TINYTREE_TREEVECTOR_H
|
|
30 |
|
|
31 |
#include <xml/cxml/cxml_proj.h>
|
|
32 |
|
|
33 |
|
|
34 |
#ifdef __cplusplus
|
|
35 |
extern "C" {
|
|
36 |
#endif /* __cplusplus */
|
|
37 |
|
|
38 |
|
|
39 |
typedef struct NW_TinyTree_TinyTree_s NW_TinyTree_t;
|
|
40 |
|
|
41 |
/** ----------------------------------------------------------------------- **
|
|
42 |
@struct: NW_TinyTree_TreeVector_t
|
|
43 |
|
|
44 |
@synopsis: default
|
|
45 |
|
|
46 |
@scope: public
|
|
47 |
@variables:
|
|
48 |
NW_TinyTree_t* tree
|
|
49 |
default
|
|
50 |
|
|
51 |
@description: default
|
|
52 |
** ----------------------------------------------------------------------- **/
|
|
53 |
typedef struct NW_TinyTree_TreeVector_s {
|
|
54 |
CXML_Vector_t* vector;
|
|
55 |
NW_TinyTree_t* tree; /* Reference back to parent tree */
|
|
56 |
NW_Int32 lastValid; // mark the end of valid wbxml, rest of buffer maybe faked close tags
|
|
57 |
// put this member in this structure to maintain the binary compatibility.
|
|
58 |
} NW_TinyTree_TreeVector_t;
|
|
59 |
|
|
60 |
extern
|
|
61 |
NW_TinyTree_TreeVector_t*
|
|
62 |
NW_TinyTree_TreeVector_Construct (CXML_Vector_Metric_t elementSize,
|
|
63 |
CXML_Vector_Metric_t segmentSize,
|
|
64 |
NW_TinyTree_t* tree);
|
|
65 |
|
|
66 |
void
|
|
67 |
NW_TinyTree_TreeVector_Destruct (NW_TinyTree_TreeVector_t* thisObj);
|
|
68 |
|
|
69 |
#ifdef __cplusplus
|
|
70 |
} /* extern "C" { */
|
|
71 |
#endif /* __cplusplus */
|
|
72 |
|
|
73 |
#endif /* NW_TINYTREE_TREEVECTOR_H */
|