1 /* c/zx-di-dec.c - WARNING: This file was auto generated by xsd2sg.pl. DO NOT EDIT!
2 * $Id$ */
3 /* Code generation design Copyright (c) 2006 Sampo Kellomaki (sampo@iki.fi),
4 * All Rights Reserved. NO WARRANTY. See file COPYING for terms and conditions
5 * of use. Some aspects of code generation were driven by schema
6 * descriptions that were used as input and may be subject to their own copyright.
7 * Code generation uses a template, whose copyright statement follows. */
8
9 /** dec-templ.c - XML decoder template, used in code generation
10 ** Copyright (c) 2010 Sampo Kellomaki (sampo@iki.fi), All Rights Reserved.
11 ** Copyright (c) 2006-2007 Symlabs (symlabs@symlabs.com), All Rights Reserved.
12 ** Author: Sampo Kellomaki (sampo@iki.fi)
13 ** This is confidential unpublished proprietary source code of the author.
14 ** NO WARRANTY, not even implied warranties. Contains trade secrets.
15 ** Distribution prohibited unless authorized in writing.
16 ** Licensed under Apache License 2.0, see file COPYING.
17 ** Id: dec-templ.c,v 1.30 2008-10-04 23:42:14 sampo Exp $
18 **
19 ** 28.5.2006, created, Sampo Kellomaki (sampo@iki.fi)
20 ** 8.8.2006, reworked namespace handling --Sampo
21 ** 12.8.2006, added special scanning of xmlns to avoid backtracking elem recognition --Sampo
22 ** 23.9.2006, added collection of WO information --Sampo
23 ** 21.6.2007, improved handling of undeclared namespace prefixes --Sampo
24 ** 27.10.2010, CSE refactoring, re-engineered namespace handling --Sampo
25 ** 21.11.2010, re-engineered to extract most code to zx_DEC_elem, leaving just switches --Sampo
26 **
27 ** N.B: This template is meant to be processed by pd/xsd2sg.pl. Beware
28 ** of special markers that xsd2sg.pl expects to find and understand.
29 **/
30
31 #include "errmac.h"
32 #include "zx.h"
33 #include "c/zx-const.h"
34 #include "c/zx-data.h"
35 #include "c/zx-di-data.h"
36 #define TPF zx_
37 #include "zx_ext_pt.h"
38
39
40
zx_DEC_ATTR_di_EndpointContext(struct zx_ctx * c,struct zx_di_EndpointContext_s * x)41 int zx_DEC_ATTR_di_EndpointContext(struct zx_ctx* c, struct zx_di_EndpointContext_s* x)
42 {
43 switch (x->gg.attr->g.tok) {
44
45 default: return 0;
46 }
47 }
48
zx_DEC_ELEM_di_EndpointContext(struct zx_ctx * c,struct zx_di_EndpointContext_s * x)49 int zx_DEC_ELEM_di_EndpointContext(struct zx_ctx* c, struct zx_di_EndpointContext_s* x)
50 {
51 struct zx_elem_s* el = x->gg.kids;
52 switch (el->g.tok) {
53 case zx_di_Address_ELEM:
54 if (!x->Address)
55 x->Address = el;
56 return 1;
57 case zx_sbf_Framework_ELEM:
58 if (!x->Framework)
59 x->Framework = (struct zx_sbf_Framework_s*)el;
60 return 1;
61 case zx_di_SecurityMechID_ELEM:
62 if (!x->SecurityMechID)
63 x->SecurityMechID = el;
64 return 1;
65 case zx_di_Action_ELEM:
66 if (!x->Action)
67 x->Action = el;
68 return 1;
69
70 default: return 0;
71 }
72 }
73
74
75
76
zx_DEC_ATTR_di_Framework(struct zx_ctx * c,struct zx_di_Framework_s * x)77 int zx_DEC_ATTR_di_Framework(struct zx_ctx* c, struct zx_di_Framework_s* x)
78 {
79 switch (x->gg.attr->g.tok) {
80 case zx_version_ATTR: x->version = x->gg.attr; return 1;
81 case zx_Id_ATTR|zx_wsu_NS: x->Id = x->gg.attr; return 1;
82 case zx_actor_ATTR|zx_e_NS: x->actor = x->gg.attr; return 1;
83 case zx_mustUnderstand_ATTR|zx_e_NS: x->mustUnderstand = x->gg.attr; return 1;
84
85 default: return 0;
86 }
87 }
88
zx_DEC_ELEM_di_Framework(struct zx_ctx * c,struct zx_di_Framework_s * x)89 int zx_DEC_ELEM_di_Framework(struct zx_ctx* c, struct zx_di_Framework_s* x)
90 {
91 struct zx_elem_s* el = x->gg.kids;
92 switch (el->g.tok) {
93
94 default: return 0;
95 }
96 }
97
98
99
100
zx_DEC_ATTR_di_Keys(struct zx_ctx * c,struct zx_di_Keys_s * x)101 int zx_DEC_ATTR_di_Keys(struct zx_ctx* c, struct zx_di_Keys_s* x)
102 {
103 switch (x->gg.attr->g.tok) {
104
105 default: return 0;
106 }
107 }
108
zx_DEC_ELEM_di_Keys(struct zx_ctx * c,struct zx_di_Keys_s * x)109 int zx_DEC_ELEM_di_Keys(struct zx_ctx* c, struct zx_di_Keys_s* x)
110 {
111 struct zx_elem_s* el = x->gg.kids;
112 switch (el->g.tok) {
113 case zx_md_KeyDescriptor_ELEM:
114 if (!x->KeyDescriptor)
115 x->KeyDescriptor = (struct zx_md_KeyDescriptor_s*)el;
116 return 1;
117
118 default: return 0;
119 }
120 }
121
122
123
124
zx_DEC_ATTR_di_Options(struct zx_ctx * c,struct zx_di_Options_s * x)125 int zx_DEC_ATTR_di_Options(struct zx_ctx* c, struct zx_di_Options_s* x)
126 {
127 switch (x->gg.attr->g.tok) {
128
129 default: return 0;
130 }
131 }
132
zx_DEC_ELEM_di_Options(struct zx_ctx * c,struct zx_di_Options_s * x)133 int zx_DEC_ELEM_di_Options(struct zx_ctx* c, struct zx_di_Options_s* x)
134 {
135 struct zx_elem_s* el = x->gg.kids;
136 switch (el->g.tok) {
137 case zx_di_Option_ELEM:
138 if (!x->Option)
139 x->Option = el;
140 return 1;
141
142 default: return 0;
143 }
144 }
145
146
147
148
zx_DEC_ATTR_di_Query(struct zx_ctx * c,struct zx_di_Query_s * x)149 int zx_DEC_ATTR_di_Query(struct zx_ctx* c, struct zx_di_Query_s* x)
150 {
151 switch (x->gg.attr->g.tok) {
152
153 default: return 0;
154 }
155 }
156
zx_DEC_ELEM_di_Query(struct zx_ctx * c,struct zx_di_Query_s * x)157 int zx_DEC_ELEM_di_Query(struct zx_ctx* c, struct zx_di_Query_s* x)
158 {
159 struct zx_elem_s* el = x->gg.kids;
160 switch (el->g.tok) {
161 case zx_di_RequestedService_ELEM:
162 if (!x->RequestedService)
163 x->RequestedService = (struct zx_di_RequestedService_s*)el;
164 return 1;
165
166 default: return 0;
167 }
168 }
169
170
171
172
zx_DEC_ATTR_di_QueryResponse(struct zx_ctx * c,struct zx_di_QueryResponse_s * x)173 int zx_DEC_ATTR_di_QueryResponse(struct zx_ctx* c, struct zx_di_QueryResponse_s* x)
174 {
175 switch (x->gg.attr->g.tok) {
176
177 default: return 0;
178 }
179 }
180
zx_DEC_ELEM_di_QueryResponse(struct zx_ctx * c,struct zx_di_QueryResponse_s * x)181 int zx_DEC_ELEM_di_QueryResponse(struct zx_ctx* c, struct zx_di_QueryResponse_s* x)
182 {
183 struct zx_elem_s* el = x->gg.kids;
184 switch (el->g.tok) {
185 case zx_lu_Status_ELEM:
186 if (!x->Status)
187 x->Status = (struct zx_lu_Status_s*)el;
188 return 1;
189 case zx_a_EndpointReference_ELEM:
190 if (!x->EndpointReference)
191 x->EndpointReference = (struct zx_a_EndpointReference_s*)el;
192 return 1;
193
194 default: return 0;
195 }
196 }
197
198
199
200
zx_DEC_ATTR_di_RequestedService(struct zx_ctx * c,struct zx_di_RequestedService_s * x)201 int zx_DEC_ATTR_di_RequestedService(struct zx_ctx* c, struct zx_di_RequestedService_s* x)
202 {
203 switch (x->gg.attr->g.tok) {
204 case zx_reqID_ATTR: x->reqID = x->gg.attr; return 1;
205 case zx_resultsType_ATTR: x->resultsType = x->gg.attr; return 1;
206
207 default: return 0;
208 }
209 }
210
zx_DEC_ELEM_di_RequestedService(struct zx_ctx * c,struct zx_di_RequestedService_s * x)211 int zx_DEC_ELEM_di_RequestedService(struct zx_ctx* c, struct zx_di_RequestedService_s* x)
212 {
213 struct zx_elem_s* el = x->gg.kids;
214 switch (el->g.tok) {
215 case zx_di_ServiceType_ELEM:
216 if (!x->ServiceType)
217 x->ServiceType = el;
218 return 1;
219 case zx_di_ProviderID_ELEM:
220 if (!x->ProviderID)
221 x->ProviderID = el;
222 return 1;
223 case zx_di_Options_ELEM:
224 if (!x->Options)
225 x->Options = (struct zx_di_Options_s*)el;
226 return 1;
227 case zx_di_SecurityMechID_ELEM:
228 if (!x->SecurityMechID)
229 x->SecurityMechID = el;
230 return 1;
231 case zx_di_Framework_ELEM:
232 if (!x->Framework)
233 x->Framework = (struct zx_di_Framework_s*)el;
234 return 1;
235 case zx_di_Action_ELEM:
236 if (!x->Action)
237 x->Action = el;
238 return 1;
239
240 default: return 0;
241 }
242 }
243
244
245
246
zx_DEC_ATTR_di_SecurityContext(struct zx_ctx * c,struct zx_di_SecurityContext_s * x)247 int zx_DEC_ATTR_di_SecurityContext(struct zx_ctx* c, struct zx_di_SecurityContext_s* x)
248 {
249 switch (x->gg.attr->g.tok) {
250
251 default: return 0;
252 }
253 }
254
zx_DEC_ELEM_di_SecurityContext(struct zx_ctx * c,struct zx_di_SecurityContext_s * x)255 int zx_DEC_ELEM_di_SecurityContext(struct zx_ctx* c, struct zx_di_SecurityContext_s* x)
256 {
257 struct zx_elem_s* el = x->gg.kids;
258 switch (el->g.tok) {
259 case zx_di_SecurityMechID_ELEM:
260 if (!x->SecurityMechID)
261 x->SecurityMechID = el;
262 return 1;
263 case zx_sec_Token_ELEM:
264 if (!x->Token)
265 x->Token = (struct zx_sec_Token_s*)el;
266 return 1;
267
268 default: return 0;
269 }
270 }
271
272
273
274
zx_DEC_ATTR_di_ServiceContext(struct zx_ctx * c,struct zx_di_ServiceContext_s * x)275 int zx_DEC_ATTR_di_ServiceContext(struct zx_ctx* c, struct zx_di_ServiceContext_s* x)
276 {
277 switch (x->gg.attr->g.tok) {
278
279 default: return 0;
280 }
281 }
282
zx_DEC_ELEM_di_ServiceContext(struct zx_ctx * c,struct zx_di_ServiceContext_s * x)283 int zx_DEC_ELEM_di_ServiceContext(struct zx_ctx* c, struct zx_di_ServiceContext_s* x)
284 {
285 struct zx_elem_s* el = x->gg.kids;
286 switch (el->g.tok) {
287 case zx_di_ServiceType_ELEM:
288 if (!x->ServiceType)
289 x->ServiceType = el;
290 return 1;
291 case zx_di_Options_ELEM:
292 if (!x->Options)
293 x->Options = (struct zx_di_Options_s*)el;
294 return 1;
295 case zx_di_EndpointContext_ELEM:
296 if (!x->EndpointContext)
297 x->EndpointContext = (struct zx_di_EndpointContext_s*)el;
298 return 1;
299
300 default: return 0;
301 }
302 }
303
304
305
306
zx_DEC_ATTR_di_SvcMD(struct zx_ctx * c,struct zx_di_SvcMD_s * x)307 int zx_DEC_ATTR_di_SvcMD(struct zx_ctx* c, struct zx_di_SvcMD_s* x)
308 {
309 switch (x->gg.attr->g.tok) {
310 case zx_svcMDID_ATTR: x->svcMDID = x->gg.attr; return 1;
311
312 default: return 0;
313 }
314 }
315
zx_DEC_ELEM_di_SvcMD(struct zx_ctx * c,struct zx_di_SvcMD_s * x)316 int zx_DEC_ELEM_di_SvcMD(struct zx_ctx* c, struct zx_di_SvcMD_s* x)
317 {
318 struct zx_elem_s* el = x->gg.kids;
319 switch (el->g.tok) {
320 case zx_di_Abstract_ELEM:
321 if (!x->Abstract)
322 x->Abstract = el;
323 return 1;
324 case zx_di_ProviderID_ELEM:
325 if (!x->ProviderID)
326 x->ProviderID = el;
327 return 1;
328 case zx_di_ServiceContext_ELEM:
329 if (!x->ServiceContext)
330 x->ServiceContext = (struct zx_di_ServiceContext_s*)el;
331 return 1;
332
333 default: return 0;
334 }
335 }
336
337
338
339
zx_DEC_ATTR_di_SvcMDAssociationAdd(struct zx_ctx * c,struct zx_di_SvcMDAssociationAdd_s * x)340 int zx_DEC_ATTR_di_SvcMDAssociationAdd(struct zx_ctx* c, struct zx_di_SvcMDAssociationAdd_s* x)
341 {
342 switch (x->gg.attr->g.tok) {
343
344 default: return 0;
345 }
346 }
347
zx_DEC_ELEM_di_SvcMDAssociationAdd(struct zx_ctx * c,struct zx_di_SvcMDAssociationAdd_s * x)348 int zx_DEC_ELEM_di_SvcMDAssociationAdd(struct zx_ctx* c, struct zx_di_SvcMDAssociationAdd_s* x)
349 {
350 struct zx_elem_s* el = x->gg.kids;
351 switch (el->g.tok) {
352 case zx_di_SvcMDID_ELEM:
353 if (!x->SvcMDID)
354 x->SvcMDID = el;
355 return 1;
356
357 default: return 0;
358 }
359 }
360
361
362
363
zx_DEC_ATTR_di_SvcMDAssociationAddResponse(struct zx_ctx * c,struct zx_di_SvcMDAssociationAddResponse_s * x)364 int zx_DEC_ATTR_di_SvcMDAssociationAddResponse(struct zx_ctx* c, struct zx_di_SvcMDAssociationAddResponse_s* x)
365 {
366 switch (x->gg.attr->g.tok) {
367
368 default: return 0;
369 }
370 }
371
zx_DEC_ELEM_di_SvcMDAssociationAddResponse(struct zx_ctx * c,struct zx_di_SvcMDAssociationAddResponse_s * x)372 int zx_DEC_ELEM_di_SvcMDAssociationAddResponse(struct zx_ctx* c, struct zx_di_SvcMDAssociationAddResponse_s* x)
373 {
374 struct zx_elem_s* el = x->gg.kids;
375 switch (el->g.tok) {
376 case zx_lu_Status_ELEM:
377 if (!x->Status)
378 x->Status = (struct zx_lu_Status_s*)el;
379 return 1;
380
381 default: return 0;
382 }
383 }
384
385
386
387
zx_DEC_ATTR_di_SvcMDAssociationDelete(struct zx_ctx * c,struct zx_di_SvcMDAssociationDelete_s * x)388 int zx_DEC_ATTR_di_SvcMDAssociationDelete(struct zx_ctx* c, struct zx_di_SvcMDAssociationDelete_s* x)
389 {
390 switch (x->gg.attr->g.tok) {
391
392 default: return 0;
393 }
394 }
395
zx_DEC_ELEM_di_SvcMDAssociationDelete(struct zx_ctx * c,struct zx_di_SvcMDAssociationDelete_s * x)396 int zx_DEC_ELEM_di_SvcMDAssociationDelete(struct zx_ctx* c, struct zx_di_SvcMDAssociationDelete_s* x)
397 {
398 struct zx_elem_s* el = x->gg.kids;
399 switch (el->g.tok) {
400 case zx_di_SvcMDID_ELEM:
401 if (!x->SvcMDID)
402 x->SvcMDID = el;
403 return 1;
404
405 default: return 0;
406 }
407 }
408
409
410
411
zx_DEC_ATTR_di_SvcMDAssociationDeleteResponse(struct zx_ctx * c,struct zx_di_SvcMDAssociationDeleteResponse_s * x)412 int zx_DEC_ATTR_di_SvcMDAssociationDeleteResponse(struct zx_ctx* c, struct zx_di_SvcMDAssociationDeleteResponse_s* x)
413 {
414 switch (x->gg.attr->g.tok) {
415
416 default: return 0;
417 }
418 }
419
zx_DEC_ELEM_di_SvcMDAssociationDeleteResponse(struct zx_ctx * c,struct zx_di_SvcMDAssociationDeleteResponse_s * x)420 int zx_DEC_ELEM_di_SvcMDAssociationDeleteResponse(struct zx_ctx* c, struct zx_di_SvcMDAssociationDeleteResponse_s* x)
421 {
422 struct zx_elem_s* el = x->gg.kids;
423 switch (el->g.tok) {
424 case zx_lu_Status_ELEM:
425 if (!x->Status)
426 x->Status = (struct zx_lu_Status_s*)el;
427 return 1;
428
429 default: return 0;
430 }
431 }
432
433
434
435
zx_DEC_ATTR_di_SvcMDAssociationQuery(struct zx_ctx * c,struct zx_di_SvcMDAssociationQuery_s * x)436 int zx_DEC_ATTR_di_SvcMDAssociationQuery(struct zx_ctx* c, struct zx_di_SvcMDAssociationQuery_s* x)
437 {
438 switch (x->gg.attr->g.tok) {
439
440 default: return 0;
441 }
442 }
443
zx_DEC_ELEM_di_SvcMDAssociationQuery(struct zx_ctx * c,struct zx_di_SvcMDAssociationQuery_s * x)444 int zx_DEC_ELEM_di_SvcMDAssociationQuery(struct zx_ctx* c, struct zx_di_SvcMDAssociationQuery_s* x)
445 {
446 struct zx_elem_s* el = x->gg.kids;
447 switch (el->g.tok) {
448 case zx_di_SvcMDID_ELEM:
449 if (!x->SvcMDID)
450 x->SvcMDID = el;
451 return 1;
452
453 default: return 0;
454 }
455 }
456
457
458
459
zx_DEC_ATTR_di_SvcMDAssociationQueryResponse(struct zx_ctx * c,struct zx_di_SvcMDAssociationQueryResponse_s * x)460 int zx_DEC_ATTR_di_SvcMDAssociationQueryResponse(struct zx_ctx* c, struct zx_di_SvcMDAssociationQueryResponse_s* x)
461 {
462 switch (x->gg.attr->g.tok) {
463
464 default: return 0;
465 }
466 }
467
zx_DEC_ELEM_di_SvcMDAssociationQueryResponse(struct zx_ctx * c,struct zx_di_SvcMDAssociationQueryResponse_s * x)468 int zx_DEC_ELEM_di_SvcMDAssociationQueryResponse(struct zx_ctx* c, struct zx_di_SvcMDAssociationQueryResponse_s* x)
469 {
470 struct zx_elem_s* el = x->gg.kids;
471 switch (el->g.tok) {
472 case zx_lu_Status_ELEM:
473 if (!x->Status)
474 x->Status = (struct zx_lu_Status_s*)el;
475 return 1;
476 case zx_di_SvcMDID_ELEM:
477 if (!x->SvcMDID)
478 x->SvcMDID = el;
479 return 1;
480
481 default: return 0;
482 }
483 }
484
485
486
487
zx_DEC_ATTR_di_SvcMDDelete(struct zx_ctx * c,struct zx_di_SvcMDDelete_s * x)488 int zx_DEC_ATTR_di_SvcMDDelete(struct zx_ctx* c, struct zx_di_SvcMDDelete_s* x)
489 {
490 switch (x->gg.attr->g.tok) {
491
492 default: return 0;
493 }
494 }
495
zx_DEC_ELEM_di_SvcMDDelete(struct zx_ctx * c,struct zx_di_SvcMDDelete_s * x)496 int zx_DEC_ELEM_di_SvcMDDelete(struct zx_ctx* c, struct zx_di_SvcMDDelete_s* x)
497 {
498 struct zx_elem_s* el = x->gg.kids;
499 switch (el->g.tok) {
500 case zx_di_SvcMDID_ELEM:
501 if (!x->SvcMDID)
502 x->SvcMDID = el;
503 return 1;
504
505 default: return 0;
506 }
507 }
508
509
510
511
zx_DEC_ATTR_di_SvcMDDeleteResponse(struct zx_ctx * c,struct zx_di_SvcMDDeleteResponse_s * x)512 int zx_DEC_ATTR_di_SvcMDDeleteResponse(struct zx_ctx* c, struct zx_di_SvcMDDeleteResponse_s* x)
513 {
514 switch (x->gg.attr->g.tok) {
515
516 default: return 0;
517 }
518 }
519
zx_DEC_ELEM_di_SvcMDDeleteResponse(struct zx_ctx * c,struct zx_di_SvcMDDeleteResponse_s * x)520 int zx_DEC_ELEM_di_SvcMDDeleteResponse(struct zx_ctx* c, struct zx_di_SvcMDDeleteResponse_s* x)
521 {
522 struct zx_elem_s* el = x->gg.kids;
523 switch (el->g.tok) {
524 case zx_lu_Status_ELEM:
525 if (!x->Status)
526 x->Status = (struct zx_lu_Status_s*)el;
527 return 1;
528
529 default: return 0;
530 }
531 }
532
533
534
535
zx_DEC_ATTR_di_SvcMDQuery(struct zx_ctx * c,struct zx_di_SvcMDQuery_s * x)536 int zx_DEC_ATTR_di_SvcMDQuery(struct zx_ctx* c, struct zx_di_SvcMDQuery_s* x)
537 {
538 switch (x->gg.attr->g.tok) {
539
540 default: return 0;
541 }
542 }
543
zx_DEC_ELEM_di_SvcMDQuery(struct zx_ctx * c,struct zx_di_SvcMDQuery_s * x)544 int zx_DEC_ELEM_di_SvcMDQuery(struct zx_ctx* c, struct zx_di_SvcMDQuery_s* x)
545 {
546 struct zx_elem_s* el = x->gg.kids;
547 switch (el->g.tok) {
548 case zx_di_SvcMDID_ELEM:
549 if (!x->SvcMDID)
550 x->SvcMDID = el;
551 return 1;
552
553 default: return 0;
554 }
555 }
556
557
558
559
zx_DEC_ATTR_di_SvcMDQueryResponse(struct zx_ctx * c,struct zx_di_SvcMDQueryResponse_s * x)560 int zx_DEC_ATTR_di_SvcMDQueryResponse(struct zx_ctx* c, struct zx_di_SvcMDQueryResponse_s* x)
561 {
562 switch (x->gg.attr->g.tok) {
563
564 default: return 0;
565 }
566 }
567
zx_DEC_ELEM_di_SvcMDQueryResponse(struct zx_ctx * c,struct zx_di_SvcMDQueryResponse_s * x)568 int zx_DEC_ELEM_di_SvcMDQueryResponse(struct zx_ctx* c, struct zx_di_SvcMDQueryResponse_s* x)
569 {
570 struct zx_elem_s* el = x->gg.kids;
571 switch (el->g.tok) {
572 case zx_lu_Status_ELEM:
573 if (!x->Status)
574 x->Status = (struct zx_lu_Status_s*)el;
575 return 1;
576 case zx_di_SvcMD_ELEM:
577 if (!x->SvcMD)
578 x->SvcMD = (struct zx_di_SvcMD_s*)el;
579 return 1;
580
581 default: return 0;
582 }
583 }
584
585
586
587
zx_DEC_ATTR_di_SvcMDRegister(struct zx_ctx * c,struct zx_di_SvcMDRegister_s * x)588 int zx_DEC_ATTR_di_SvcMDRegister(struct zx_ctx* c, struct zx_di_SvcMDRegister_s* x)
589 {
590 switch (x->gg.attr->g.tok) {
591
592 default: return 0;
593 }
594 }
595
zx_DEC_ELEM_di_SvcMDRegister(struct zx_ctx * c,struct zx_di_SvcMDRegister_s * x)596 int zx_DEC_ELEM_di_SvcMDRegister(struct zx_ctx* c, struct zx_di_SvcMDRegister_s* x)
597 {
598 struct zx_elem_s* el = x->gg.kids;
599 switch (el->g.tok) {
600 case zx_di_SvcMD_ELEM:
601 if (!x->SvcMD)
602 x->SvcMD = (struct zx_di_SvcMD_s*)el;
603 return 1;
604
605 default: return 0;
606 }
607 }
608
609
610
611
zx_DEC_ATTR_di_SvcMDRegisterResponse(struct zx_ctx * c,struct zx_di_SvcMDRegisterResponse_s * x)612 int zx_DEC_ATTR_di_SvcMDRegisterResponse(struct zx_ctx* c, struct zx_di_SvcMDRegisterResponse_s* x)
613 {
614 switch (x->gg.attr->g.tok) {
615
616 default: return 0;
617 }
618 }
619
zx_DEC_ELEM_di_SvcMDRegisterResponse(struct zx_ctx * c,struct zx_di_SvcMDRegisterResponse_s * x)620 int zx_DEC_ELEM_di_SvcMDRegisterResponse(struct zx_ctx* c, struct zx_di_SvcMDRegisterResponse_s* x)
621 {
622 struct zx_elem_s* el = x->gg.kids;
623 switch (el->g.tok) {
624 case zx_lu_Status_ELEM:
625 if (!x->Status)
626 x->Status = (struct zx_lu_Status_s*)el;
627 return 1;
628 case zx_di_SvcMDID_ELEM:
629 if (!x->SvcMDID)
630 x->SvcMDID = el;
631 return 1;
632 case zx_di_Keys_ELEM:
633 if (!x->Keys)
634 x->Keys = (struct zx_di_Keys_s*)el;
635 return 1;
636
637 default: return 0;
638 }
639 }
640
641
642
643
zx_DEC_ATTR_di_SvcMDReplace(struct zx_ctx * c,struct zx_di_SvcMDReplace_s * x)644 int zx_DEC_ATTR_di_SvcMDReplace(struct zx_ctx* c, struct zx_di_SvcMDReplace_s* x)
645 {
646 switch (x->gg.attr->g.tok) {
647
648 default: return 0;
649 }
650 }
651
zx_DEC_ELEM_di_SvcMDReplace(struct zx_ctx * c,struct zx_di_SvcMDReplace_s * x)652 int zx_DEC_ELEM_di_SvcMDReplace(struct zx_ctx* c, struct zx_di_SvcMDReplace_s* x)
653 {
654 struct zx_elem_s* el = x->gg.kids;
655 switch (el->g.tok) {
656 case zx_di_SvcMD_ELEM:
657 if (!x->SvcMD)
658 x->SvcMD = (struct zx_di_SvcMD_s*)el;
659 return 1;
660
661 default: return 0;
662 }
663 }
664
665
666
667
zx_DEC_ATTR_di_SvcMDReplaceResponse(struct zx_ctx * c,struct zx_di_SvcMDReplaceResponse_s * x)668 int zx_DEC_ATTR_di_SvcMDReplaceResponse(struct zx_ctx* c, struct zx_di_SvcMDReplaceResponse_s* x)
669 {
670 switch (x->gg.attr->g.tok) {
671
672 default: return 0;
673 }
674 }
675
zx_DEC_ELEM_di_SvcMDReplaceResponse(struct zx_ctx * c,struct zx_di_SvcMDReplaceResponse_s * x)676 int zx_DEC_ELEM_di_SvcMDReplaceResponse(struct zx_ctx* c, struct zx_di_SvcMDReplaceResponse_s* x)
677 {
678 struct zx_elem_s* el = x->gg.kids;
679 switch (el->g.tok) {
680 case zx_lu_Status_ELEM:
681 if (!x->Status)
682 x->Status = (struct zx_lu_Status_s*)el;
683 return 1;
684
685 default: return 0;
686 }
687 }
688
689
690 /* EOF -- c/zx-di-dec.c */
691