|
1 /* |
|
2 * Copyright (c) 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 ** WARNING |
|
21 ** |
|
22 ** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED |
|
23 ** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM |
|
24 ** |
|
25 ** This file generated on Thu Jun 7 15:00:08 2001 |
|
26 ** (coordinated universal time) |
|
27 ** |
|
28 ** Command line: dict_creator syncml_1.0.dict syncml_1_0_dict.c syncml_1_0_dict.h |
|
29 */ |
|
30 |
|
31 /* |
|
32 * Dictionary = SyncML_1_0 |
|
33 * Public id = 0x0FD1 |
|
34 * Doc Type = -//SYNCML//DTD SyncML v1.0//EN |
|
35 */ |
|
36 |
|
37 #include "nw_wbxml_dictionary.h" |
|
38 |
|
39 |
|
40 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Add[] = {'A','d','d','\0'}; |
|
41 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Alert[] = {'A','l','e','r','t','\0'}; |
|
42 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Archive[] = {'A','r','c','h','i','v','e','\0'}; |
|
43 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Atomic[] = {'A','t','o','m','i','c','\0'}; |
|
44 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Chal[] = {'C','h','a','l','\0'}; |
|
45 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Cmd[] = {'C','m','d','\0'}; |
|
46 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_CmdID[] = {'C','m','d','I','D','\0'}; |
|
47 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_CmdRef[] = {'C','m','d','R','e','f','\0'}; |
|
48 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Copy[] = {'C','o','p','y','\0'}; |
|
49 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Cred[] = {'C','r','e','d','\0'}; |
|
50 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Data[] = {'D','a','t','a','\0'}; |
|
51 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Delete[] = {'D','e','l','e','t','e','\0'}; |
|
52 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Exec[] = {'E','x','e','c','\0'}; |
|
53 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Final[] = {'F','i','n','a','l','\0'}; |
|
54 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Get[] = {'G','e','t','\0'}; |
|
55 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Item[] = {'I','t','e','m','\0'}; |
|
56 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Lang[] = {'L','a','n','g','\0'}; |
|
57 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_LocName[] = {'L','o','c','N','a','m','e','\0'}; |
|
58 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_LocURI[] = {'L','o','c','U','R','I','\0'}; |
|
59 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Map[] = {'M','a','p','\0'}; |
|
60 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_MapItem[] = {'M','a','p','I','t','e','m','\0'}; |
|
61 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Meta[] = {'M','e','t','a','\0'}; |
|
62 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_MsgID[] = {'M','s','g','I','D','\0'}; |
|
63 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_MsgRef[] = {'M','s','g','R','e','f','\0'}; |
|
64 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_NoResp[] = {'N','o','R','e','s','p','\0'}; |
|
65 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_NoResults[] = {'N','o','R','e','s','u','l','t','s','\0'}; |
|
66 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Put[] = {'P','u','t','\0'}; |
|
67 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Replace[] = {'R','e','p','l','a','c','e','\0'}; |
|
68 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_RespURI[] = {'R','e','s','p','U','R','I','\0'}; |
|
69 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Results[] = {'R','e','s','u','l','t','s','\0'}; |
|
70 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Search[] = {'S','e','a','r','c','h','\0'}; |
|
71 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Sequence[] = {'S','e','q','u','e','n','c','e','\0'}; |
|
72 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_SessionID[] = {'S','e','s','s','i','o','n','I','D','\0'}; |
|
73 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_SftDel[] = {'S','f','t','D','e','l','\0'}; |
|
74 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Source[] = {'S','o','u','r','c','e','\0'}; |
|
75 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_SourceRef[] = {'S','o','u','r','c','e','R','e','f','\0'}; |
|
76 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Status[] = {'S','t','a','t','u','s','\0'}; |
|
77 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Sync[] = {'S','y','n','c','\0'}; |
|
78 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_SyncBody[] = {'S','y','n','c','B','o','d','y','\0'}; |
|
79 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_SyncHdr[] = {'S','y','n','c','H','d','r','\0'}; |
|
80 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_SyncML[] = {'S','y','n','c','M','L','\0'}; |
|
81 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Target[] = {'T','a','r','g','e','t','\0'}; |
|
82 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_TargetRef[] = {'T','a','r','g','e','t','R','e','f','\0'}; |
|
83 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Reserved[] = {'R','e','s','e','r','v','e','d','\0'}; |
|
84 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_VerDTD[] = {'V','e','r','D','T','D','\0'}; |
|
85 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_VerProto[] = {'V','e','r','P','r','o','t','o','\0'}; |
|
86 |
|
87 /* |
|
88 ** WARNING |
|
89 ** |
|
90 ** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED |
|
91 ** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM |
|
92 ** |
|
93 ** This file generated on Thu Jun 7 15:00:08 2001 |
|
94 ** (coordinated universal time) |
|
95 ** |
|
96 ** Command line: dict_creator syncml_1.0.dict syncml_1_0_dict.c syncml_1_0_dict.h |
|
97 */ |
|
98 |
|
99 /* |
|
100 * tag entries - sorted by token |
|
101 */ |
|
102 static const |
|
103 NW_WBXML_DictEntry_t NW_SyncML_1_0_tag_token_0[46] = { |
|
104 {0x05, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Add}, |
|
105 {0x06, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Alert}, |
|
106 {0x07, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Archive}, |
|
107 {0x08, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Atomic}, |
|
108 {0x09, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Chal}, |
|
109 {0x0a, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Cmd}, |
|
110 {0x0b, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_CmdID}, |
|
111 {0x0c, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_CmdRef}, |
|
112 {0x0d, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Copy}, |
|
113 {0x0e, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Cred}, |
|
114 {0x0f, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Data}, |
|
115 {0x10, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Delete}, |
|
116 {0x11, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Exec}, |
|
117 {0x12, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Final}, |
|
118 {0x13, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Get}, |
|
119 {0x14, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Item}, |
|
120 {0x15, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Lang}, |
|
121 {0x16, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_LocName}, |
|
122 {0x17, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_LocURI}, |
|
123 {0x18, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Map}, |
|
124 {0x19, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_MapItem}, |
|
125 {0x1a, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Meta}, |
|
126 {0x1b, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_MsgID}, |
|
127 {0x1c, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_MsgRef}, |
|
128 {0x1d, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_NoResp}, |
|
129 {0x1e, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_NoResults}, |
|
130 {0x1f, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Put}, |
|
131 {0x20, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Replace}, |
|
132 {0x21, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_RespURI}, |
|
133 {0x22, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Results}, |
|
134 {0x23, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Search}, |
|
135 {0x24, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Sequence}, |
|
136 {0x25, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_SessionID}, |
|
137 {0x26, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_SftDel}, |
|
138 {0x27, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Source}, |
|
139 {0x28, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_SourceRef}, |
|
140 {0x29, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Status}, |
|
141 {0x2a, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Sync}, |
|
142 {0x2b, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_SyncBody}, |
|
143 {0x2c, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_SyncHdr}, |
|
144 {0x2d, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_SyncML}, |
|
145 {0x2e, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Target}, |
|
146 {0x2f, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_TargetRef}, |
|
147 {0x30, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Reserved}, |
|
148 {0x31, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_VerDTD}, |
|
149 {0x32, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_VerProto} |
|
150 }; |
|
151 |
|
152 /* |
|
153 ** WARNING |
|
154 ** |
|
155 ** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED |
|
156 ** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM |
|
157 ** |
|
158 ** This file generated on Thu Jun 7 15:00:08 2001 |
|
159 ** (coordinated universal time) |
|
160 ** |
|
161 ** Command line: dict_creator syncml_1.0.dict syncml_1_0_dict.c syncml_1_0_dict.h |
|
162 */ |
|
163 |
|
164 /* |
|
165 * tag entries - sorted by name |
|
166 */ |
|
167 static const |
|
168 NW_Byte NW_SyncML_1_0_tag_name_0[46] = { |
|
169 0, |
|
170 1, |
|
171 2, |
|
172 3, |
|
173 4, |
|
174 5, |
|
175 6, |
|
176 7, |
|
177 8, |
|
178 9, |
|
179 10, |
|
180 11, |
|
181 12, |
|
182 13, |
|
183 14, |
|
184 15, |
|
185 16, |
|
186 17, |
|
187 18, |
|
188 19, |
|
189 20, |
|
190 21, |
|
191 22, |
|
192 23, |
|
193 24, |
|
194 25, |
|
195 26, |
|
196 27, |
|
197 43, |
|
198 28, |
|
199 29, |
|
200 30, |
|
201 31, |
|
202 32, |
|
203 33, |
|
204 34, |
|
205 35, |
|
206 36, |
|
207 37, |
|
208 38, |
|
209 39, |
|
210 40, |
|
211 41, |
|
212 42, |
|
213 44, |
|
214 45, |
|
215 }; |
|
216 |
|
217 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Anchor[] = {'A','n','c','h','o','r','\0'}; |
|
218 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_EMI[] = {'E','M','I','\0'}; |
|
219 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Format[] = {'F','o','r','m','a','t','\0'}; |
|
220 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_FreeID[] = {'F','r','e','e','I','D','\0'}; |
|
221 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_FreeMem[] = {'F','r','e','e','M','e','m','\0'}; |
|
222 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Last[] = {'L','a','s','t','\0'}; |
|
223 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Mark[] = {'M','a','r','k','\0'}; |
|
224 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_MaxMsgSize[] = {'M','a','x','M','s','g','S','i','z','e','\0'}; |
|
225 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Mem[] = {'M','e','m','\0'}; |
|
226 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_MetInf[] = {'M','e','t','I','n','f','\0'}; |
|
227 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Next[] = {'N','e','x','t','\0'}; |
|
228 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_NextNonce[] = {'N','e','x','t','N','o','n','c','e','\0'}; |
|
229 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_SharedMem[] = {'S','h','a','r','e','d','M','e','m','\0'}; |
|
230 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Size[] = {'S','i','z','e','\0'}; |
|
231 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Type[] = {'T','y','p','e','\0'}; |
|
232 static const NW_Ucs2 NW_SyncML_1_0_ElementTag_Version[] = {'V','e','r','s','i','o','n','\0'}; |
|
233 |
|
234 /* |
|
235 ** WARNING |
|
236 ** |
|
237 ** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED |
|
238 ** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM |
|
239 ** |
|
240 ** This file generated on Thu Jun 7 15:00:08 2001 |
|
241 ** (coordinated universal time) |
|
242 ** |
|
243 ** Command line: dict_creator syncml_1.0.dict syncml_1_0_dict.c syncml_1_0_dict.h |
|
244 */ |
|
245 |
|
246 /* |
|
247 * tag entries - sorted by token |
|
248 */ |
|
249 static const |
|
250 NW_WBXML_DictEntry_t NW_SyncML_1_0_tag_token_1[16] = { |
|
251 {0x05, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Anchor}, |
|
252 {0x06, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_EMI}, |
|
253 {0x07, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Format}, |
|
254 {0x08, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_FreeID}, |
|
255 {0x09, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_FreeMem}, |
|
256 {0x0a, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Last}, |
|
257 {0x0b, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Mark}, |
|
258 {0x0c, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_MaxMsgSize}, |
|
259 {0x0d, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Mem}, |
|
260 {0x0e, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_MetInf}, |
|
261 {0x0f, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Next}, |
|
262 {0x10, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_NextNonce}, |
|
263 {0x11, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_SharedMem}, |
|
264 {0x12, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Size}, |
|
265 {0x13, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Type}, |
|
266 {0x14, (NW_String_UCS2Buff_t *) NW_SyncML_1_0_ElementTag_Version} |
|
267 }; |
|
268 |
|
269 /* |
|
270 ** WARNING |
|
271 ** |
|
272 ** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED |
|
273 ** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM |
|
274 ** |
|
275 ** This file generated on Thu Jun 7 15:00:08 2001 |
|
276 ** (coordinated universal time) |
|
277 ** |
|
278 ** Command line: dict_creator syncml_1.0.dict syncml_1_0_dict.c syncml_1_0_dict.h |
|
279 */ |
|
280 |
|
281 /* |
|
282 * tag entries - sorted by name |
|
283 */ |
|
284 static const |
|
285 NW_Byte NW_SyncML_1_0_tag_name_1[16] = { |
|
286 0, |
|
287 1, |
|
288 2, |
|
289 3, |
|
290 4, |
|
291 5, |
|
292 6, |
|
293 7, |
|
294 8, |
|
295 9, |
|
296 10, |
|
297 11, |
|
298 12, |
|
299 13, |
|
300 14, |
|
301 15, |
|
302 }; |
|
303 |
|
304 /* |
|
305 * Tag codepage table |
|
306 */ |
|
307 static const |
|
308 NW_WBXML_Codepage_t NW_SyncML_1_0_tag_codepages[2] = { |
|
309 {46, (NW_WBXML_DictEntry_t*)&NW_SyncML_1_0_tag_token_0[0], (NW_Byte *)&NW_SyncML_1_0_tag_name_0[0]}, |
|
310 {16, (NW_WBXML_DictEntry_t*)&NW_SyncML_1_0_tag_token_1[0], (NW_Byte *)&NW_SyncML_1_0_tag_name_1[0]}, |
|
311 }; |
|
312 |
|
313 /* |
|
314 * Attribute codepage table |
|
315 */ |
|
316 |
|
317 static const NW_Ucs2 NW_SyncML_1_0_docType[] = {'-','/','/','S','Y','N','C','M','L','/','/','D','T','D',' ','S','y','n','c','M','L',' ','v','1','.','0','/','/','E','N','\0'}; |
|
318 |
|
319 /* |
|
320 * Dictionary |
|
321 */ |
|
322 const NW_WBXML_Dictionary_t NW_SyncML_1_0_WBXMLDictionary = { |
|
323 0x0FD1, |
|
324 (NW_Ucs2 *)NW_SyncML_1_0_docType, |
|
325 2, (NW_WBXML_Codepage_t*)&NW_SyncML_1_0_tag_codepages[0], |
|
326 0, 0, |
|
327 }; |
|
328 |
|
329 /* |
|
330 ** WARNING |
|
331 ** |
|
332 ** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED |
|
333 ** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM |
|
334 ** |
|
335 ** This file generated on Thu Jun 7 15:00:08 2001 |
|
336 ** (coordinated universal time) |
|
337 ** |
|
338 ** Command line: dict_creator syncml_1.0.dict syncml_1_0_dict.c syncml_1_0_dict.h |
|
339 */ |