LCOV - code coverage report
Current view: top level - zxid/c - zx-is12-dec.c (source / functions) Hit Total Coverage
Test: ZXID Code Coverage Lines: 0 254 0.0 %
Date: 2010-12-19 Functions: 0 34 0.0 %
Branches: 0 160 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* c/zx-is12-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-is12-data.h"
      36                 :            : #define TPF zx_
      37                 :            : #include "zx_ext_pt.h"
      38                 :            : 
      39                 :            : 
      40                 :            : 
      41                 :            : int zx_DEC_ATTR_is12_Confirm(struct zx_ctx* c, struct zx_is12_Confirm_s* x)
      42                 :          0 : {
      43         [ #  # ]:          0 :   switch (x->gg.attr->g.tok) {
      44                 :          0 :     case zx_name_ATTR:  x->name = x->gg.attr; return 1;
      45                 :            : 
      46                 :          0 :   default: return 0;
      47                 :            :   }
      48                 :            : }
      49                 :            : 
      50                 :            : int zx_DEC_ELEM_is12_Confirm(struct zx_ctx* c, struct zx_is12_Confirm_s* x)
      51                 :          0 : {
      52                 :          0 :   struct zx_elem_s* el = x->gg.kids;
      53   [ #  #  #  #  :          0 :   switch (el->g.tok) {
                      # ]
      54                 :            :   case zx_is12_Help_ELEM:
      55         [ #  # ]:          0 :     if (!x->Help)
      56                 :          0 :       x->Help = (struct zx_is12_Help_s*)el;
      57                 :          0 :     return 1;
      58                 :            :   case zx_is12_Hint_ELEM:
      59         [ #  # ]:          0 :     if (!x->Hint)
      60                 :          0 :       x->Hint = el;
      61                 :          0 :     return 1;
      62                 :            :   case zx_is12_Label_ELEM:
      63         [ #  # ]:          0 :     if (!x->Label)
      64                 :          0 :       x->Label = el;
      65                 :          0 :     return 1;
      66                 :            :   case zx_is12_Value_ELEM:
      67         [ #  # ]:          0 :     if (!x->Value)
      68                 :          0 :       x->Value = el;
      69                 :          0 :     return 1;
      70                 :            : 
      71                 :          0 :   default: return 0;
      72                 :            :   }
      73                 :            : }
      74                 :            : 
      75                 :            : 
      76                 :            : 
      77                 :            : 
      78                 :            : int zx_DEC_ATTR_is12_EncryptedResourceID(struct zx_ctx* c, struct zx_is12_EncryptedResourceID_s* x)
      79                 :          0 : {
      80                 :          0 :   switch (x->gg.attr->g.tok) {
      81                 :            : 
      82                 :          0 :   default: return 0;
      83                 :            :   }
      84                 :            : }
      85                 :            : 
      86                 :            : int zx_DEC_ELEM_is12_EncryptedResourceID(struct zx_ctx* c, struct zx_is12_EncryptedResourceID_s* x)
      87                 :          0 : {
      88                 :          0 :   struct zx_elem_s* el = x->gg.kids;
      89      [ #  #  # ]:          0 :   switch (el->g.tok) {
      90                 :            :   case zx_xenc_EncryptedData_ELEM:
      91         [ #  # ]:          0 :     if (!x->EncryptedData)
      92                 :          0 :       x->EncryptedData = (struct zx_xenc_EncryptedData_s*)el;
      93                 :          0 :     return 1;
      94                 :            :   case zx_xenc_EncryptedKey_ELEM:
      95         [ #  # ]:          0 :     if (!x->EncryptedKey)
      96                 :          0 :       x->EncryptedKey = (struct zx_xenc_EncryptedKey_s*)el;
      97                 :          0 :     return 1;
      98                 :            : 
      99                 :          0 :   default: return 0;
     100                 :            :   }
     101                 :            : }
     102                 :            : 
     103                 :            : 
     104                 :            : 
     105                 :            : 
     106                 :            : int zx_DEC_ATTR_is12_Extension(struct zx_ctx* c, struct zx_is12_Extension_s* x)
     107                 :          0 : {
     108                 :          0 :   switch (x->gg.attr->g.tok) {
     109                 :            : 
     110                 :          0 :   default: return 0;
     111                 :            :   }
     112                 :            : }
     113                 :            : 
     114                 :            : int zx_DEC_ELEM_is12_Extension(struct zx_ctx* c, struct zx_is12_Extension_s* x)
     115                 :          0 : {
     116                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     117                 :          0 :   switch (el->g.tok) {
     118                 :            : 
     119                 :          0 :   default: return 0;
     120                 :            :   }
     121                 :            : }
     122                 :            : 
     123                 :            : 
     124                 :            : 
     125                 :            : 
     126                 :            : int zx_DEC_ATTR_is12_Help(struct zx_ctx* c, struct zx_is12_Help_s* x)
     127                 :          0 : {
     128   [ #  #  #  # ]:          0 :   switch (x->gg.attr->g.tok) {
     129                 :          0 :     case zx_label_ATTR:  x->label = x->gg.attr; return 1;
     130                 :          0 :     case zx_link_ATTR:  x->link = x->gg.attr; return 1;
     131                 :          0 :     case zx_moreLink_ATTR:  x->moreLink = x->gg.attr; return 1;
     132                 :            : 
     133                 :          0 :   default: return 0;
     134                 :            :   }
     135                 :            : }
     136                 :            : 
     137                 :            : int zx_DEC_ELEM_is12_Help(struct zx_ctx* c, struct zx_is12_Help_s* x)
     138                 :          0 : {
     139                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     140                 :          0 :   switch (el->g.tok) {
     141                 :            : 
     142                 :          0 :   default: return 0;
     143                 :            :   }
     144                 :            : }
     145                 :            : 
     146                 :            : 
     147                 :            : 
     148                 :            : 
     149                 :            : int zx_DEC_ATTR_is12_Inquiry(struct zx_ctx* c, struct zx_is12_Inquiry_s* x)
     150                 :          0 : {
     151      [ #  #  # ]:          0 :   switch (x->gg.attr->g.tok) {
     152                 :          0 :     case zx_id_ATTR:  x->id = x->gg.attr; return 1;
     153                 :          0 :     case zx_title_ATTR:  x->title = x->gg.attr; return 1;
     154                 :            : 
     155                 :          0 :   default: return 0;
     156                 :            :   }
     157                 :            : }
     158                 :            : 
     159                 :            : int zx_DEC_ELEM_is12_Inquiry(struct zx_ctx* c, struct zx_is12_Inquiry_s* x)
     160                 :          0 : {
     161                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     162   [ #  #  #  #  :          0 :   switch (el->g.tok) {
                      # ]
     163                 :            :   case zx_is12_Help_ELEM:
     164         [ #  # ]:          0 :     if (!x->Help)
     165                 :          0 :       x->Help = (struct zx_is12_Help_s*)el;
     166                 :          0 :     return 1;
     167                 :            :   case zx_is12_Select_ELEM:
     168         [ #  # ]:          0 :     if (!x->Select)
     169                 :          0 :       x->Select = (struct zx_is12_Select_s*)el;
     170                 :          0 :     return 1;
     171                 :            :   case zx_is12_Confirm_ELEM:
     172         [ #  # ]:          0 :     if (!x->Confirm)
     173                 :          0 :       x->Confirm = (struct zx_is12_Confirm_s*)el;
     174                 :          0 :     return 1;
     175                 :            :   case zx_is12_Text_ELEM:
     176         [ #  # ]:          0 :     if (!x->Text)
     177                 :          0 :       x->Text = (struct zx_is12_Text_s*)el;
     178                 :          0 :     return 1;
     179                 :            : 
     180                 :          0 :   default: return 0;
     181                 :            :   }
     182                 :            : }
     183                 :            : 
     184                 :            : 
     185                 :            : 
     186                 :            : 
     187                 :            : int zx_DEC_ATTR_is12_InteractionRequest(struct zx_ctx* c, struct zx_is12_InteractionRequest_s* x)
     188                 :          0 : {
     189   [ #  #  #  #  :          0 :   switch (x->gg.attr->g.tok) {
                      # ]
     190                 :          0 :     case zx_id_ATTR:  x->id = x->gg.attr; return 1;
     191                 :          0 :     case zx_language_ATTR:  x->language = x->gg.attr; return 1;
     192                 :          0 :     case zx_maxInteractTime_ATTR:  x->maxInteractTime = x->gg.attr; return 1;
     193                 :          0 :     case zx_signed_ATTR:  x->signed_is_c_keyword = x->gg.attr; return 1;
     194                 :            : 
     195                 :          0 :   default: return 0;
     196                 :            :   }
     197                 :            : }
     198                 :            : 
     199                 :            : int zx_DEC_ELEM_is12_InteractionRequest(struct zx_ctx* c, struct zx_is12_InteractionRequest_s* x)
     200                 :          0 : {
     201                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     202      [ #  #  # ]:          0 :   switch (el->g.tok) {
     203                 :            :   case zx_is12_Inquiry_ELEM:
     204         [ #  # ]:          0 :     if (!x->Inquiry)
     205                 :          0 :       x->Inquiry = (struct zx_is12_Inquiry_s*)el;
     206                 :          0 :     return 1;
     207                 :            :   case zx_ds_KeyInfo_ELEM:
     208         [ #  # ]:          0 :     if (!x->KeyInfo)
     209                 :          0 :       x->KeyInfo = (struct zx_ds_KeyInfo_s*)el;
     210                 :          0 :     return 1;
     211                 :            : 
     212                 :          0 :   default: return 0;
     213                 :            :   }
     214                 :            : }
     215                 :            : 
     216                 :            : 
     217                 :            : 
     218                 :            : 
     219                 :            : int zx_DEC_ATTR_is12_InteractionResponse(struct zx_ctx* c, struct zx_is12_InteractionResponse_s* x)
     220                 :          0 : {
     221                 :          0 :   switch (x->gg.attr->g.tok) {
     222                 :            : 
     223                 :          0 :   default: return 0;
     224                 :            :   }
     225                 :            : }
     226                 :            : 
     227                 :            : int zx_DEC_ELEM_is12_InteractionResponse(struct zx_ctx* c, struct zx_is12_InteractionResponse_s* x)
     228                 :          0 : {
     229                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     230   [ #  #  #  # ]:          0 :   switch (el->g.tok) {
     231                 :            :   case zx_is12_Status_ELEM:
     232         [ #  # ]:          0 :     if (!x->Status)
     233                 :          0 :       x->Status = (struct zx_is12_Status_s*)el;
     234                 :          0 :     return 1;
     235                 :            :   case zx_is12_InteractionStatement_ELEM:
     236         [ #  # ]:          0 :     if (!x->InteractionStatement)
     237                 :          0 :       x->InteractionStatement = (struct zx_is12_InteractionStatement_s*)el;
     238                 :          0 :     return 1;
     239                 :            :   case zx_is12_Parameter_ELEM:
     240         [ #  # ]:          0 :     if (!x->Parameter)
     241                 :          0 :       x->Parameter = (struct zx_is12_Parameter_s*)el;
     242                 :          0 :     return 1;
     243                 :            : 
     244                 :          0 :   default: return 0;
     245                 :            :   }
     246                 :            : }
     247                 :            : 
     248                 :            : 
     249                 :            : 
     250                 :            : 
     251                 :            : int zx_DEC_ATTR_is12_InteractionService(struct zx_ctx* c, struct zx_is12_InteractionService_s* x)
     252                 :          0 : {
     253         [ #  # ]:          0 :   switch (x->gg.attr->g.tok) {
     254                 :          0 :     case zx_entryID_ATTR:  x->entryID = x->gg.attr; return 1;
     255                 :            : 
     256                 :          0 :   default: return 0;
     257                 :            :   }
     258                 :            : }
     259                 :            : 
     260                 :            : int zx_DEC_ELEM_is12_InteractionService(struct zx_ctx* c, struct zx_is12_InteractionService_s* x)
     261                 :          0 : {
     262                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     263   [ #  #  #  #  :          0 :   switch (el->g.tok) {
                   #  # ]
     264                 :            :   case zx_di12_ResourceID_ELEM:
     265         [ #  # ]:          0 :     if (!x->ResourceID)
     266                 :          0 :       x->ResourceID = (struct zx_di12_ResourceID_s*)el;
     267                 :          0 :     return 1;
     268                 :            :   case zx_di12_EncryptedResourceID_ELEM:
     269         [ #  # ]:          0 :     if (!x->EncryptedResourceID)
     270                 :          0 :       x->EncryptedResourceID = (struct zx_di12_EncryptedResourceID_s*)el;
     271                 :          0 :     return 1;
     272                 :            :   case zx_di12_ServiceInstance_ELEM:
     273         [ #  # ]:          0 :     if (!x->ServiceInstance)
     274                 :          0 :       x->ServiceInstance = (struct zx_di12_ServiceInstance_s*)el;
     275                 :          0 :     return 1;
     276                 :            :   case zx_di12_Options_ELEM:
     277         [ #  # ]:          0 :     if (!x->Options)
     278                 :          0 :       x->Options = (struct zx_di12_Options_s*)el;
     279                 :          0 :     return 1;
     280                 :            :   case zx_di12_Abstract_ELEM:
     281         [ #  # ]:          0 :     if (!x->Abstract)
     282                 :          0 :       x->Abstract = el;
     283                 :          0 :     return 1;
     284                 :            : 
     285                 :          0 :   default: return 0;
     286                 :            :   }
     287                 :            : }
     288                 :            : 
     289                 :            : 
     290                 :            : 
     291                 :            : 
     292                 :            : int zx_DEC_ATTR_is12_InteractionStatement(struct zx_ctx* c, struct zx_is12_InteractionStatement_s* x)
     293                 :          0 : {
     294                 :          0 :   switch (x->gg.attr->g.tok) {
     295                 :            : 
     296                 :          0 :   default: return 0;
     297                 :            :   }
     298                 :            : }
     299                 :            : 
     300                 :            : int zx_DEC_ELEM_is12_InteractionStatement(struct zx_ctx* c, struct zx_is12_InteractionStatement_s* x)
     301                 :          0 : {
     302                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     303      [ #  #  # ]:          0 :   switch (el->g.tok) {
     304                 :            :   case zx_is12_Inquiry_ELEM:
     305         [ #  # ]:          0 :     if (!x->Inquiry)
     306                 :          0 :       x->Inquiry = (struct zx_is12_Inquiry_s*)el;
     307                 :          0 :     return 1;
     308                 :            :   case zx_ds_Signature_ELEM:
     309         [ #  # ]:          0 :     if (!x->Signature)
     310                 :          0 :       x->Signature = (struct zx_ds_Signature_s*)el;
     311                 :          0 :     return 1;
     312                 :            : 
     313                 :          0 :   default: return 0;
     314                 :            :   }
     315                 :            : }
     316                 :            : 
     317                 :            : 
     318                 :            : 
     319                 :            : 
     320                 :            : int zx_DEC_ATTR_is12_Item(struct zx_ctx* c, struct zx_is12_Item_s* x)
     321                 :          0 : {
     322      [ #  #  # ]:          0 :   switch (x->gg.attr->g.tok) {
     323                 :          0 :     case zx_label_ATTR:  x->label = x->gg.attr; return 1;
     324                 :          0 :     case zx_value_ATTR:  x->value = x->gg.attr; return 1;
     325                 :            : 
     326                 :          0 :   default: return 0;
     327                 :            :   }
     328                 :            : }
     329                 :            : 
     330                 :            : int zx_DEC_ELEM_is12_Item(struct zx_ctx* c, struct zx_is12_Item_s* x)
     331                 :          0 : {
     332                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     333         [ #  # ]:          0 :   switch (el->g.tok) {
     334                 :            :   case zx_is12_Hint_ELEM:
     335         [ #  # ]:          0 :     if (!x->Hint)
     336                 :          0 :       x->Hint = el;
     337                 :          0 :     return 1;
     338                 :            : 
     339                 :          0 :   default: return 0;
     340                 :            :   }
     341                 :            : }
     342                 :            : 
     343                 :            : 
     344                 :            : 
     345                 :            : 
     346                 :            : int zx_DEC_ATTR_is12_Parameter(struct zx_ctx* c, struct zx_is12_Parameter_s* x)
     347                 :          0 : {
     348      [ #  #  # ]:          0 :   switch (x->gg.attr->g.tok) {
     349                 :          0 :     case zx_name_ATTR:  x->name = x->gg.attr; return 1;
     350                 :          0 :     case zx_value_ATTR:  x->value = x->gg.attr; return 1;
     351                 :            : 
     352                 :          0 :   default: return 0;
     353                 :            :   }
     354                 :            : }
     355                 :            : 
     356                 :            : int zx_DEC_ELEM_is12_Parameter(struct zx_ctx* c, struct zx_is12_Parameter_s* x)
     357                 :          0 : {
     358                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     359                 :          0 :   switch (el->g.tok) {
     360                 :            : 
     361                 :          0 :   default: return 0;
     362                 :            :   }
     363                 :            : }
     364                 :            : 
     365                 :            : 
     366                 :            : 
     367                 :            : 
     368                 :            : int zx_DEC_ATTR_is12_RedirectRequest(struct zx_ctx* c, struct zx_is12_RedirectRequest_s* x)
     369                 :          0 : {
     370         [ #  # ]:          0 :   switch (x->gg.attr->g.tok) {
     371                 :          0 :     case zx_redirectURL_ATTR:  x->redirectURL = x->gg.attr; return 1;
     372                 :            : 
     373                 :          0 :   default: return 0;
     374                 :            :   }
     375                 :            : }
     376                 :            : 
     377                 :            : int zx_DEC_ELEM_is12_RedirectRequest(struct zx_ctx* c, struct zx_is12_RedirectRequest_s* x)
     378                 :          0 : {
     379                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     380                 :          0 :   switch (el->g.tok) {
     381                 :            : 
     382                 :          0 :   default: return 0;
     383                 :            :   }
     384                 :            : }
     385                 :            : 
     386                 :            : 
     387                 :            : 
     388                 :            : 
     389                 :            : int zx_DEC_ATTR_is12_ResourceID(struct zx_ctx* c, struct zx_is12_ResourceID_s* x)
     390                 :          0 : {
     391         [ #  # ]:          0 :   switch (x->gg.attr->g.tok) {
     392                 :          0 :     case zx_id_ATTR:  x->id = x->gg.attr; return 1;
     393                 :            : 
     394                 :          0 :   default: return 0;
     395                 :            :   }
     396                 :            : }
     397                 :            : 
     398                 :            : int zx_DEC_ELEM_is12_ResourceID(struct zx_ctx* c, struct zx_is12_ResourceID_s* x)
     399                 :          0 : {
     400                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     401                 :          0 :   switch (el->g.tok) {
     402                 :            : 
     403                 :          0 :   default: return 0;
     404                 :            :   }
     405                 :            : }
     406                 :            : 
     407                 :            : 
     408                 :            : 
     409                 :            : 
     410                 :            : int zx_DEC_ATTR_is12_Select(struct zx_ctx* c, struct zx_is12_Select_s* x)
     411                 :          0 : {
     412      [ #  #  # ]:          0 :   switch (x->gg.attr->g.tok) {
     413                 :          0 :     case zx_multiple_ATTR:  x->multiple = x->gg.attr; return 1;
     414                 :          0 :     case zx_name_ATTR:  x->name = x->gg.attr; return 1;
     415                 :            : 
     416                 :          0 :   default: return 0;
     417                 :            :   }
     418                 :            : }
     419                 :            : 
     420                 :            : int zx_DEC_ELEM_is12_Select(struct zx_ctx* c, struct zx_is12_Select_s* x)
     421                 :          0 : {
     422                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     423   [ #  #  #  #  :          0 :   switch (el->g.tok) {
                   #  # ]
     424                 :            :   case zx_is12_Help_ELEM:
     425         [ #  # ]:          0 :     if (!x->Help)
     426                 :          0 :       x->Help = (struct zx_is12_Help_s*)el;
     427                 :          0 :     return 1;
     428                 :            :   case zx_is12_Hint_ELEM:
     429         [ #  # ]:          0 :     if (!x->Hint)
     430                 :          0 :       x->Hint = el;
     431                 :          0 :     return 1;
     432                 :            :   case zx_is12_Label_ELEM:
     433         [ #  # ]:          0 :     if (!x->Label)
     434                 :          0 :       x->Label = el;
     435                 :          0 :     return 1;
     436                 :            :   case zx_is12_Value_ELEM:
     437         [ #  # ]:          0 :     if (!x->Value)
     438                 :          0 :       x->Value = el;
     439                 :          0 :     return 1;
     440                 :            :   case zx_is12_Item_ELEM:
     441         [ #  # ]:          0 :     if (!x->Item)
     442                 :          0 :       x->Item = (struct zx_is12_Item_s*)el;
     443                 :          0 :     return 1;
     444                 :            : 
     445                 :          0 :   default: return 0;
     446                 :            :   }
     447                 :            : }
     448                 :            : 
     449                 :            : 
     450                 :            : 
     451                 :            : 
     452                 :            : int zx_DEC_ATTR_is12_Status(struct zx_ctx* c, struct zx_is12_Status_s* x)
     453                 :          0 : {
     454   [ #  #  #  # ]:          0 :   switch (x->gg.attr->g.tok) {
     455                 :          0 :     case zx_code_ATTR:  x->code = x->gg.attr; return 1;
     456                 :          0 :     case zx_comment_ATTR:  x->comment = x->gg.attr; return 1;
     457                 :          0 :     case zx_ref_ATTR:  x->ref = x->gg.attr; return 1;
     458                 :            : 
     459                 :          0 :   default: return 0;
     460                 :            :   }
     461                 :            : }
     462                 :            : 
     463                 :            : int zx_DEC_ELEM_is12_Status(struct zx_ctx* c, struct zx_is12_Status_s* x)
     464                 :          0 : {
     465                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     466         [ #  # ]:          0 :   switch (el->g.tok) {
     467                 :            :   case zx_is12_Status_ELEM:
     468         [ #  # ]:          0 :     if (!x->Status)
     469                 :          0 :       x->Status = (struct zx_is12_Status_s*)el;
     470                 :          0 :     return 1;
     471                 :            : 
     472                 :          0 :   default: return 0;
     473                 :            :   }
     474                 :            : }
     475                 :            : 
     476                 :            : 
     477                 :            : 
     478                 :            : 
     479                 :            : int zx_DEC_ATTR_is12_Text(struct zx_ctx* c, struct zx_is12_Text_s* x)
     480                 :          0 : {
     481   [ #  #  #  #  :          0 :   switch (x->gg.attr->g.tok) {
                      # ]
     482                 :          0 :     case zx_format_ATTR:  x->format = x->gg.attr; return 1;
     483                 :          0 :     case zx_maxChars_ATTR:  x->maxChars = x->gg.attr; return 1;
     484                 :          0 :     case zx_minChars_ATTR:  x->minChars = x->gg.attr; return 1;
     485                 :          0 :     case zx_name_ATTR:  x->name = x->gg.attr; return 1;
     486                 :            : 
     487                 :          0 :   default: return 0;
     488                 :            :   }
     489                 :            : }
     490                 :            : 
     491                 :            : int zx_DEC_ELEM_is12_Text(struct zx_ctx* c, struct zx_is12_Text_s* x)
     492                 :          0 : {
     493                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     494   [ #  #  #  #  :          0 :   switch (el->g.tok) {
                      # ]
     495                 :            :   case zx_is12_Help_ELEM:
     496         [ #  # ]:          0 :     if (!x->Help)
     497                 :          0 :       x->Help = (struct zx_is12_Help_s*)el;
     498                 :          0 :     return 1;
     499                 :            :   case zx_is12_Hint_ELEM:
     500         [ #  # ]:          0 :     if (!x->Hint)
     501                 :          0 :       x->Hint = el;
     502                 :          0 :     return 1;
     503                 :            :   case zx_is12_Label_ELEM:
     504         [ #  # ]:          0 :     if (!x->Label)
     505                 :          0 :       x->Label = el;
     506                 :          0 :     return 1;
     507                 :            :   case zx_is12_Value_ELEM:
     508         [ #  # ]:          0 :     if (!x->Value)
     509                 :          0 :       x->Value = el;
     510                 :          0 :     return 1;
     511                 :            : 
     512                 :          0 :   default: return 0;
     513                 :            :   }
     514                 :            : }
     515                 :            : 
     516                 :            : 
     517                 :            : 
     518                 :            : 
     519                 :            : int zx_DEC_ATTR_is12_UserInteraction(struct zx_ctx* c, struct zx_is12_UserInteraction_s* x)
     520                 :          0 : {
     521   [ #  #  #  #  :          0 :   switch (x->gg.attr->g.tok) {
             #  #  #  # ]
     522                 :          0 :     case zx_id_ATTR:  x->id = x->gg.attr; return 1;
     523                 :          0 :     case zx_interact_ATTR:  x->interact = x->gg.attr; return 1;
     524                 :          0 :     case zx_language_ATTR:  x->language = x->gg.attr; return 1;
     525                 :          0 :     case zx_maxInteractTime_ATTR:  x->maxInteractTime = x->gg.attr; return 1;
     526                 :          0 :     case zx_redirect_ATTR:  x->redirect = x->gg.attr; return 1;
     527                 :          0 :     case zx_actor_ATTR|zx_e_NS:  x->actor = x->gg.attr; return 1;
     528                 :          0 :     case zx_mustUnderstand_ATTR|zx_e_NS:  x->mustUnderstand = x->gg.attr; return 1;
     529                 :            : 
     530                 :          0 :   default: return 0;
     531                 :            :   }
     532                 :            : }
     533                 :            : 
     534                 :            : int zx_DEC_ELEM_is12_UserInteraction(struct zx_ctx* c, struct zx_is12_UserInteraction_s* x)
     535                 :          0 : {
     536                 :          0 :   struct zx_elem_s* el = x->gg.kids;
     537         [ #  # ]:          0 :   switch (el->g.tok) {
     538                 :            :   case zx_is12_InteractionService_ELEM:
     539         [ #  # ]:          0 :     if (!x->InteractionService)
     540                 :          0 :       x->InteractionService = (struct zx_is12_InteractionService_s*)el;
     541                 :          0 :     return 1;
     542                 :            : 
     543                 :          0 :   default: return 0;
     544                 :            :   }
     545                 :            : }
     546                 :            : 
     547                 :            : 
     548                 :            : /* EOF -- c/zx-is12-dec.c */

Generated by: LCOV version 1.9