Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [PDU] >>> ***/ |
| 3 | |
| 4 | #include <Sequence.h> |
| 5 | #include <Set.h> |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 6 | #include <SequenceOf.h> |
| 7 | #include <ExtensibleSet.h> |
| 8 | #include <ExtensibleSequence.h> |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 9 | #include <ExtensibleSequence2.h> |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 10 | #include <SetOfNULL.h> |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 11 | #include <SetOfREAL.h> |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 12 | #include <SetOfEnums.h> |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 13 | #include <NamedSetOfNULL.h> |
| 14 | #include <NamedSetOfREAL.h> |
| 15 | #include <NamedSetOfEnums.h> |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 16 | #include <SeqOfZuka.h> |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 17 | #include <SetOfChoice.h> |
| 18 | #include <NamedSetOfChoice.h> |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 19 | #include <constr_CHOICE.h> |
| 20 | |
| 21 | /*** <<< DEPS [PDU] >>> ***/ |
| 22 | |
| 23 | typedef enum PDU_PR { |
| 24 | PDU_PR_NOTHING, /* No components present */ |
| 25 | PDU_PR_sequence, |
| 26 | PDU_PR_set, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 27 | PDU_PR_sequenceOf, |
| 28 | PDU_PR_extensibleSet, |
| 29 | PDU_PR_extensibleSequence, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 30 | PDU_PR_extensibleSequence2, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 31 | PDU_PR_setOfNULL, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 32 | PDU_PR_setOfREAL, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 33 | PDU_PR_setOfEnums, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 34 | PDU_PR_namedSetOfNULL, |
| 35 | PDU_PR_namedSetOfREAL, |
| 36 | PDU_PR_namedSetOfEnums, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 37 | PDU_PR_seqOfZuka, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 38 | PDU_PR_setOfChoice, |
| 39 | PDU_PR_namedSetOfChoice, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 40 | /* Extensions may appear below */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 41 | } PDU_PR; |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 42 | |
| 43 | /*** <<< TYPE-DECLS [PDU] >>> ***/ |
| 44 | |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 45 | typedef struct PDU { |
| 46 | PDU_PR present; |
Lev Walkin | 0f5d74c | 2005-08-14 15:03:31 +0000 | [diff] [blame] | 47 | union PDU_u { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 48 | Sequence_t sequence; |
| 49 | Set_t set; |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 50 | SequenceOf_t sequenceOf; |
| 51 | ExtensibleSet_t extensibleSet; |
| 52 | ExtensibleSequence_t extensibleSequence; |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 53 | ExtensibleSequence2_t extensibleSequence2; |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 54 | SetOfNULL_t setOfNULL; |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 55 | SetOfREAL_t setOfREAL; |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 56 | SetOfEnums_t setOfEnums; |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 57 | NamedSetOfNULL_t namedSetOfNULL; |
| 58 | NamedSetOfREAL_t namedSetOfREAL; |
| 59 | NamedSetOfEnums_t namedSetOfEnums; |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 60 | SeqOfZuka_t seqOfZuka; |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 61 | SetOfChoice_t setOfChoice; |
| 62 | NamedSetOfChoice_t namedSetOfChoice; |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 63 | /* |
| 64 | * This type is extensible, |
| 65 | * possible extensions are below. |
| 66 | */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 67 | } choice; |
| 68 | |
| 69 | /* Context for parsing across buffer boundaries */ |
| 70 | asn_struct_ctx_t _asn_ctx; |
| 71 | } PDU_t; |
| 72 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 73 | /*** <<< FUNC-DECLS [PDU] >>> ***/ |
| 74 | |
| 75 | extern asn_TYPE_descriptor_t asn_DEF_PDU; |
| 76 | |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 77 | /*** <<< STAT-DEFS [PDU] >>> ***/ |
| 78 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 79 | static asn_TYPE_member_t asn_MBR_PDU_1[] = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 80 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence), |
| 81 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 82 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 83 | .type = &asn_DEF_Sequence, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 84 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 85 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 86 | .default_value = 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 87 | .name = "sequence" |
| 88 | }, |
| 89 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set), |
| 90 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 91 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 92 | .type = &asn_DEF_Set, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 93 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 94 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 95 | .default_value = 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 96 | .name = "set" |
| 97 | }, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 98 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf), |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 99 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 100 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 101 | .type = &asn_DEF_SequenceOf, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 102 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 103 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 104 | .default_value = 0, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 105 | .name = "sequenceOf" |
| 106 | }, |
| 107 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet), |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 108 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 109 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 110 | .type = &asn_DEF_ExtensibleSet, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 111 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 112 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 113 | .default_value = 0, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 114 | .name = "extensibleSet" |
| 115 | }, |
| 116 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence), |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 117 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 118 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 119 | .type = &asn_DEF_ExtensibleSequence, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 120 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 121 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 122 | .default_value = 0, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 123 | .name = "extensibleSequence" |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 124 | }, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 125 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence2), |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 126 | .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 127 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 128 | .type = &asn_DEF_ExtensibleSequence2, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 129 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 130 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 131 | .default_value = 0, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 132 | .name = "extensibleSequence2" |
| 133 | }, |
| 134 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL), |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 135 | .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 136 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 137 | .type = &asn_DEF_SetOfNULL, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 138 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 139 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 140 | .default_value = 0, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 141 | .name = "setOfNULL" |
| 142 | }, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 143 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfREAL), |
| 144 | .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)), |
| 145 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 146 | .type = &asn_DEF_SetOfREAL, |
| 147 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 148 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 149 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 150 | .name = "setOfREAL" |
| 151 | }, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 152 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums), |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 153 | .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)), |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 154 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 155 | .type = &asn_DEF_SetOfEnums, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 156 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 157 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 158 | .default_value = 0, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 159 | .name = "setOfEnums" |
| 160 | }, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 161 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfNULL), |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 162 | .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)), |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 163 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 164 | .type = &asn_DEF_NamedSetOfNULL, |
| 165 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 166 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 167 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 168 | .name = "namedSetOfNULL" |
| 169 | }, |
| 170 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfREAL), |
| 171 | .tag = (ASN_TAG_CLASS_CONTEXT | (10 << 2)), |
| 172 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 173 | .type = &asn_DEF_NamedSetOfREAL, |
| 174 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 175 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 176 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 177 | .name = "namedSetOfREAL" |
| 178 | }, |
| 179 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfEnums), |
| 180 | .tag = (ASN_TAG_CLASS_CONTEXT | (11 << 2)), |
| 181 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 182 | .type = &asn_DEF_NamedSetOfEnums, |
| 183 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 184 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 185 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 186 | .name = "namedSetOfEnums" |
| 187 | }, |
| 188 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka), |
| 189 | .tag = (ASN_TAG_CLASS_CONTEXT | (12 << 2)), |
| 190 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 191 | .type = &asn_DEF_SeqOfZuka, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 192 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 193 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 194 | .default_value = 0, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 195 | .name = "seqOfZuka" |
| 196 | }, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 197 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfChoice), |
| 198 | .tag = (ASN_TAG_CLASS_CONTEXT | (13 << 2)), |
| 199 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 200 | .type = &asn_DEF_SetOfChoice, |
| 201 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 202 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 203 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 204 | .name = "setOfChoice" |
| 205 | }, |
| 206 | { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfChoice), |
| 207 | .tag = (ASN_TAG_CLASS_CONTEXT | (14 << 2)), |
| 208 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 209 | .type = &asn_DEF_NamedSetOfChoice, |
| 210 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 211 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 212 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 213 | .name = "namedSetOfChoice" |
| 214 | }, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 215 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 216 | static asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 217 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence at 19 */ |
| 218 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set at 20 */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 219 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sequenceOf at 21 */ |
| 220 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* extensibleSet at 22 */ |
| 221 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSequence at 23 */ |
| 222 | { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence2 at 24 */ |
| 223 | { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* setOfNULL at 25 */ |
| 224 | { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setOfREAL at 26 */ |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 225 | { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* setOfEnums at 27 */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 226 | { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* namedSetOfNULL at 28 */ |
| 227 | { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* namedSetOfREAL at 29 */ |
| 228 | { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* namedSetOfEnums at 30 */ |
| 229 | { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* seqOfZuka at 31 */ |
| 230 | { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* setOfChoice at 32 */ |
| 231 | { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* namedSetOfChoice at 33 */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 232 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 233 | static asn_CHOICE_specifics_t asn_SPC_PDU_specs_1 = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 234 | sizeof(struct PDU), |
| 235 | offsetof(struct PDU, _asn_ctx), |
| 236 | offsetof(struct PDU, present), |
| 237 | sizeof(((struct PDU *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 238 | asn_MAP_PDU_tag2el_1, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 239 | 15, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 240 | .canonical_order = 0, |
| 241 | .ext_start = 15 /* Extensions start */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 242 | }; |
| 243 | asn_TYPE_descriptor_t asn_DEF_PDU = { |
| 244 | "PDU", |
| 245 | "PDU", |
| 246 | CHOICE_free, |
| 247 | CHOICE_print, |
| 248 | CHOICE_constraint, |
| 249 | CHOICE_decode_ber, |
| 250 | CHOICE_encode_der, |
| 251 | CHOICE_decode_xer, |
| 252 | CHOICE_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 253 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 254 | CHOICE_outmost_tag, |
| 255 | 0, /* No effective tags (pointer) */ |
| 256 | 0, /* No effective tags (count) */ |
| 257 | 0, /* No tags (pointer) */ |
| 258 | 0, /* No tags (count) */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 259 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 260 | asn_MBR_PDU_1, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 261 | 15, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 262 | &asn_SPC_PDU_specs_1 /* Additional specs */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 263 | }; |
| 264 | |
| 265 | |
| 266 | /*** <<< INCLUDES [Sequence] >>> ***/ |
| 267 | |
| 268 | #include <INTEGER.h> |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 269 | #include <BIT_STRING.h> |
| 270 | #include <UTF8String.h> |
| 271 | #include <constr_SEQUENCE.h> |
| 272 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 273 | /*** <<< FWD-DECLS [Sequence] >>> ***/ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 274 | |
Lev Walkin | bf56d54 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 275 | struct Sequence; |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 276 | |
| 277 | /*** <<< TYPE-DECLS [Sequence] >>> ***/ |
| 278 | |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 279 | typedef struct Sequence { |
| 280 | INTEGER_t integer; |
| 281 | struct Sequence *sequence /* OPTIONAL */; |
| 282 | BIT_STRING_t *bits /* OPTIONAL */; |
| 283 | UTF8String_t string; |
| 284 | |
| 285 | /* Context for parsing across buffer boundaries */ |
| 286 | asn_struct_ctx_t _asn_ctx; |
| 287 | } Sequence_t; |
| 288 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 289 | /*** <<< FUNC-DECLS [Sequence] >>> ***/ |
| 290 | |
| 291 | extern asn_TYPE_descriptor_t asn_DEF_Sequence; |
| 292 | |
| 293 | /*** <<< POST-INCLUDE [Sequence] >>> ***/ |
| 294 | |
| 295 | #include <Sequence.h> |
| 296 | |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 297 | /*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 298 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 299 | static asn_TYPE_member_t asn_MBR_Sequence_1[] = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 300 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer), |
| 301 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 302 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 303 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 304 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 305 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 306 | .default_value = 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 307 | .name = "integer" |
| 308 | }, |
| 309 | { ATF_POINTER, 2, offsetof(struct Sequence, sequence), |
| 310 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 311 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 312 | .type = &asn_DEF_Sequence, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 313 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 314 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 315 | .default_value = 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 316 | .name = "sequence" |
| 317 | }, |
| 318 | { ATF_POINTER, 1, offsetof(struct Sequence, bits), |
| 319 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 320 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 321 | .type = &asn_DEF_BIT_STRING, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 322 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 323 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 324 | .default_value = 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 325 | .name = "bits" |
| 326 | }, |
| 327 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, string), |
| 328 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 329 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 330 | .type = &asn_DEF_UTF8String, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 331 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 332 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 333 | .default_value = 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 334 | .name = "string" |
| 335 | }, |
| 336 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 337 | static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 338 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 339 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 340 | static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 341 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer at 38 */ |
| 342 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence at 39 */ |
| 343 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits at 40 */ |
| 344 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string at 41 */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 345 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 346 | static asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 347 | sizeof(struct Sequence), |
| 348 | offsetof(struct Sequence, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 349 | asn_MAP_Sequence_tag2el_1, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 350 | 4, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 351 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 352 | -1, /* Start extensions */ |
| 353 | -1 /* Stop extensions */ |
| 354 | }; |
| 355 | asn_TYPE_descriptor_t asn_DEF_Sequence = { |
| 356 | "Sequence", |
| 357 | "Sequence", |
| 358 | SEQUENCE_free, |
| 359 | SEQUENCE_print, |
| 360 | SEQUENCE_constraint, |
| 361 | SEQUENCE_decode_ber, |
| 362 | SEQUENCE_encode_der, |
| 363 | SEQUENCE_decode_xer, |
| 364 | SEQUENCE_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 365 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 366 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 367 | asn_DEF_Sequence_tags_1, |
| 368 | sizeof(asn_DEF_Sequence_tags_1) |
| 369 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
| 370 | asn_DEF_Sequence_tags_1, /* Same as above */ |
| 371 | sizeof(asn_DEF_Sequence_tags_1) |
| 372 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
| 373 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 374 | asn_MBR_Sequence_1, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 375 | 4, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 376 | &asn_SPC_Sequence_specs_1 /* Additional specs */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 377 | }; |
| 378 | |
| 379 | |
| 380 | /*** <<< INCLUDES [Set] >>> ***/ |
| 381 | |
| 382 | #include <RELATIVE-OID.h> |
| 383 | #include <OCTET_STRING.h> |
| 384 | #include <constr_SET.h> |
| 385 | |
| 386 | /*** <<< DEPS [Set] >>> ***/ |
| 387 | |
| 388 | |
| 389 | /* |
| 390 | * Method of determining the components presence |
| 391 | */ |
| 392 | typedef enum Set_PR { |
| 393 | Set_PR_roid, /* Member roid is present */ |
| 394 | Set_PR_opaque, /* Member opaque is present */ |
| 395 | } Set_PR; |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 396 | |
| 397 | /*** <<< TYPE-DECLS [Set] >>> ***/ |
| 398 | |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 399 | typedef struct Set { |
| 400 | RELATIVE_OID_t roid; |
| 401 | OCTET_STRING_t *opaque /* OPTIONAL */; |
| 402 | |
| 403 | /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */ |
| 404 | unsigned int _presence_map |
| 405 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 406 | |
| 407 | /* Context for parsing across buffer boundaries */ |
| 408 | asn_struct_ctx_t _asn_ctx; |
| 409 | } Set_t; |
| 410 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 411 | /*** <<< FUNC-DECLS [Set] >>> ***/ |
| 412 | |
| 413 | extern asn_TYPE_descriptor_t asn_DEF_Set; |
| 414 | |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 415 | /*** <<< STAT-DEFS [Set] >>> ***/ |
| 416 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 417 | static asn_TYPE_member_t asn_MBR_Set_1[] = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 418 | { ATF_NOFLAGS, 0, offsetof(struct Set, roid), |
| 419 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 420 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 421 | .type = &asn_DEF_RELATIVE_OID, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 422 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 423 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 424 | .default_value = 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 425 | .name = "roid" |
| 426 | }, |
| 427 | { ATF_POINTER, 1, offsetof(struct Set, opaque), |
| 428 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 429 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 430 | .type = &asn_DEF_OCTET_STRING, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 431 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 432 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 433 | .default_value = 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 434 | .name = "opaque" |
| 435 | }, |
| 436 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 437 | static ber_tlv_tag_t asn_DEF_Set_tags_1[] = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 438 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 439 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 440 | static asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 441 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid at 45 */ |
| 442 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque at 46 */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 443 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 444 | static uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 445 | (1 << 7) | (0 << 6) |
| 446 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 447 | static asn_SET_specifics_t asn_SPC_Set_specs_1 = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 448 | sizeof(struct Set), |
| 449 | offsetof(struct Set, _asn_ctx), |
| 450 | offsetof(struct Set, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 451 | asn_MAP_Set_tag2el_1, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 452 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 453 | asn_MAP_Set_tag2el_1, /* Same as above */ |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 454 | 2, /* Count of tags in the CXER map */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 455 | 0, /* Whether extensible */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 456 | (unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 457 | }; |
| 458 | asn_TYPE_descriptor_t asn_DEF_Set = { |
| 459 | "Set", |
| 460 | "Set", |
| 461 | SET_free, |
| 462 | SET_print, |
| 463 | SET_constraint, |
| 464 | SET_decode_ber, |
| 465 | SET_encode_der, |
| 466 | SET_decode_xer, |
| 467 | SET_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 468 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 469 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 470 | asn_DEF_Set_tags_1, |
| 471 | sizeof(asn_DEF_Set_tags_1) |
| 472 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
| 473 | asn_DEF_Set_tags_1, /* Same as above */ |
| 474 | sizeof(asn_DEF_Set_tags_1) |
| 475 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
| 476 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 477 | asn_MBR_Set_1, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 478 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 479 | &asn_SPC_Set_specs_1 /* Additional specs */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 480 | }; |
| 481 | |
| 482 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 483 | /*** <<< INCLUDES [ExtensibleSet] >>> ***/ |
| 484 | |
| 485 | #include <UTF8String.h> |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 486 | #include <ENUMERATED.h> |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 487 | #include <constr_SET.h> |
| 488 | |
| 489 | /*** <<< DEPS [ExtensibleSet] >>> ***/ |
| 490 | |
| 491 | |
| 492 | /* |
| 493 | * Method of determining the components presence |
| 494 | */ |
| 495 | typedef enum ExtensibleSet_PR { |
| 496 | ExtensibleSet_PR_string, /* Member string is present */ |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 497 | ExtensibleSet_PR_enum, /* Member enum is present */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 498 | } ExtensibleSet_PR; |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 499 | typedef enum Enum { |
| 500 | enum_b = 0, |
| 501 | enum_a = 1 |
Lev Walkin | 171487e | 2006-03-21 07:25:18 +0000 | [diff] [blame] | 502 | } e_enum; |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 503 | |
| 504 | /*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/ |
| 505 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 506 | typedef struct ExtensibleSet { |
| 507 | UTF8String_t *string /* OPTIONAL */; |
| 508 | /* |
| 509 | * This type is extensible, |
| 510 | * possible extensions are below. |
| 511 | */ |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 512 | ENUMERATED_t *Enum; |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 513 | |
| 514 | /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */ |
| 515 | unsigned int _presence_map |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 516 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 517 | |
| 518 | /* Context for parsing across buffer boundaries */ |
| 519 | asn_struct_ctx_t _asn_ctx; |
| 520 | } ExtensibleSet_t; |
| 521 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 522 | /*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/ |
| 523 | |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 524 | /* extern asn_TYPE_descriptor_t asn_DEF_enum_4; // (Use -fall-defs-global to expose) */ |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 525 | extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet; |
| 526 | |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 527 | /*** <<< CODE [ExtensibleSet] >>> ***/ |
| 528 | |
| 529 | static int |
| 530 | enum_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 531 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 532 | /* Replace with underlying type checker */ |
| 533 | td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 534 | return td->check_constraints(td, sptr, ctfailcb, app_key); |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 535 | } |
| 536 | |
| 537 | /* |
| 538 | * This type is implemented using ENUMERATED, |
| 539 | * so here we adjust the DEF accordingly. |
| 540 | */ |
| 541 | static void |
| 542 | enum_4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 543 | td->free_struct = asn_DEF_ENUMERATED.free_struct; |
| 544 | td->print_struct = asn_DEF_ENUMERATED.print_struct; |
| 545 | td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder; |
| 546 | td->der_encoder = asn_DEF_ENUMERATED.der_encoder; |
| 547 | td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder; |
| 548 | td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 549 | td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder; |
| 550 | if(!td->per_constraints) |
| 551 | td->per_constraints = asn_DEF_ENUMERATED.per_constraints; |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 552 | td->elements = asn_DEF_ENUMERATED.elements; |
| 553 | td->elements_count = asn_DEF_ENUMERATED.elements_count; |
Lev Walkin | 29a8219 | 2005-03-29 19:05:37 +0000 | [diff] [blame] | 554 | /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */ |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 555 | } |
| 556 | |
| 557 | static void |
| 558 | enum_4_free(asn_TYPE_descriptor_t *td, |
| 559 | void *struct_ptr, int contents_only) { |
| 560 | enum_4_inherit_TYPE_descriptor(td); |
| 561 | td->free_struct(td, struct_ptr, contents_only); |
| 562 | } |
| 563 | |
| 564 | static int |
| 565 | enum_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
| 566 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 567 | enum_4_inherit_TYPE_descriptor(td); |
| 568 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 569 | } |
| 570 | |
| 571 | static asn_dec_rval_t |
| 572 | enum_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | 3ebc65a | 2005-03-17 21:57:19 +0000 | [diff] [blame] | 573 | void **structure, const void *bufptr, size_t size, int tag_mode) { |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 574 | enum_4_inherit_TYPE_descriptor(td); |
| 575 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
| 576 | } |
| 577 | |
| 578 | static asn_enc_rval_t |
| 579 | enum_4_encode_der(asn_TYPE_descriptor_t *td, |
| 580 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 581 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 582 | enum_4_inherit_TYPE_descriptor(td); |
| 583 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 584 | } |
| 585 | |
| 586 | static asn_dec_rval_t |
| 587 | enum_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | 3ebc65a | 2005-03-17 21:57:19 +0000 | [diff] [blame] | 588 | void **structure, const char *opt_mname, const void *bufptr, size_t size) { |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 589 | enum_4_inherit_TYPE_descriptor(td); |
| 590 | return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); |
| 591 | } |
| 592 | |
| 593 | static asn_enc_rval_t |
| 594 | enum_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
| 595 | int ilevel, enum xer_encoder_flags_e flags, |
| 596 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 597 | enum_4_inherit_TYPE_descriptor(td); |
| 598 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
| 599 | } |
| 600 | |
| 601 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 602 | /*** <<< STAT-DEFS [ExtensibleSet] >>> ***/ |
| 603 | |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 604 | static asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = { |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 605 | { 0, 1, "b" }, |
| 606 | { 1, 1, "a" } |
| 607 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 608 | static unsigned int asn_MAP_enum_enum2value_4[] = { |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 609 | 1, /* a(1) */ |
| 610 | 0 /* b(0) */ |
| 611 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 612 | static asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = { |
| 613 | asn_MAP_enum_value2enum_4, /* "tag" => N; sorted by tag */ |
| 614 | asn_MAP_enum_enum2value_4, /* N => "tag"; sorted by N */ |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 615 | 2, /* Number of elements in the maps */ |
| 616 | 0, /* Enumeration is not extensible */ |
| 617 | 1 /* Strict enumeration */ |
| 618 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 619 | static ber_tlv_tag_t asn_DEF_enum_tags_4[] = { |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 620 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 621 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 622 | }; |
| 623 | static /* Use -fall-defs-global to expose */ |
| 624 | asn_TYPE_descriptor_t asn_DEF_enum_4 = { |
| 625 | "enum", |
| 626 | "enum", |
| 627 | enum_4_free, |
| 628 | enum_4_print, |
| 629 | enum_4_constraint, |
| 630 | enum_4_decode_ber, |
| 631 | enum_4_encode_der, |
| 632 | enum_4_decode_xer, |
| 633 | enum_4_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 634 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 635 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 636 | asn_DEF_enum_tags_4, |
| 637 | sizeof(asn_DEF_enum_tags_4) |
| 638 | /sizeof(asn_DEF_enum_tags_4[0]) - 1, /* 1 */ |
| 639 | asn_DEF_enum_tags_4, /* Same as above */ |
| 640 | sizeof(asn_DEF_enum_tags_4) |
| 641 | /sizeof(asn_DEF_enum_tags_4[0]), /* 2 */ |
| 642 | 0, /* No PER visible constraints */ |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 643 | 0, 0, /* Defined elsewhere */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 644 | &asn_SPC_enum_specs_4 /* Additional specs */ |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 645 | }; |
| 646 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 647 | static asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = { |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 648 | { ATF_POINTER, 2, offsetof(struct ExtensibleSet, string), |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 649 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 650 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 651 | .type = &asn_DEF_UTF8String, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 652 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 653 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 654 | .default_value = 0, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 655 | .name = "string" |
| 656 | }, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 657 | { ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum), |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 658 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 659 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 660 | .type = &asn_DEF_enum_4, |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 661 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 662 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 663 | .default_value = 0, |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 664 | .name = "enum" |
| 665 | }, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 666 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 667 | static ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = { |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 668 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 669 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 670 | static asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 671 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 50 */ |
| 672 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* enum at 52 */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 673 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 674 | static uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 675 | (0 << 7) | (0 << 6) |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 676 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 677 | static asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = { |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 678 | sizeof(struct ExtensibleSet), |
| 679 | offsetof(struct ExtensibleSet, _asn_ctx), |
| 680 | offsetof(struct ExtensibleSet, _presence_map), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 681 | asn_MAP_ExtensibleSet_tag2el_1, |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 682 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 683 | asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */ |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 684 | 2, /* Count of tags in the CXER map */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 685 | 1, /* Whether extensible */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 686 | (unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 687 | }; |
| 688 | asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = { |
| 689 | "ExtensibleSet", |
| 690 | "ExtensibleSet", |
| 691 | SET_free, |
| 692 | SET_print, |
| 693 | SET_constraint, |
| 694 | SET_decode_ber, |
| 695 | SET_encode_der, |
| 696 | SET_decode_xer, |
| 697 | SET_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 698 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 699 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 700 | asn_DEF_ExtensibleSet_tags_1, |
| 701 | sizeof(asn_DEF_ExtensibleSet_tags_1) |
| 702 | /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */ |
| 703 | asn_DEF_ExtensibleSet_tags_1, /* Same as above */ |
| 704 | sizeof(asn_DEF_ExtensibleSet_tags_1) |
| 705 | /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */ |
| 706 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 707 | asn_MBR_ExtensibleSet_1, |
Lev Walkin | c92a746 | 2005-03-10 11:20:47 +0000 | [diff] [blame] | 708 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 709 | &asn_SPC_ExtensibleSet_specs_1 /* Additional specs */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 710 | }; |
| 711 | |
| 712 | |
| 713 | /*** <<< INCLUDES [ExtensibleSequence] >>> ***/ |
| 714 | |
| 715 | #include <UTF8String.h> |
| 716 | #include <INTEGER.h> |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 717 | #include <GeneralizedTime.h> |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 718 | #include <constr_SEQUENCE.h> |
| 719 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 720 | /*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/ |
| 721 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 722 | typedef struct ExtensibleSequence { |
| 723 | UTF8String_t *string /* OPTIONAL */; |
| 724 | /* |
| 725 | * This type is extensible, |
| 726 | * possible extensions are below. |
| 727 | */ |
| 728 | INTEGER_t *integer /* OPTIONAL */; |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 729 | GeneralizedTime_t *gtime; |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 730 | |
| 731 | /* Context for parsing across buffer boundaries */ |
| 732 | asn_struct_ctx_t _asn_ctx; |
| 733 | } ExtensibleSequence_t; |
| 734 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 735 | /*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/ |
| 736 | |
| 737 | extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence; |
| 738 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 739 | /*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/ |
| 740 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 741 | static asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = { |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 742 | { ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string), |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 743 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 744 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 745 | .type = &asn_DEF_UTF8String, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 746 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 747 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 748 | .default_value = 0, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 749 | .name = "string" |
| 750 | }, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 751 | { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer), |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 752 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 753 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 754 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 755 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 756 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 757 | .default_value = 0, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 758 | .name = "integer" |
| 759 | }, |
Lev Walkin | b85a813 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 760 | { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime), |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 761 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 762 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 763 | .type = &asn_DEF_GeneralizedTime, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 764 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 765 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 766 | .default_value = 0, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 767 | .name = "gtime" |
| 768 | }, |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 769 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 770 | static ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = { |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 771 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 772 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 773 | static asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 774 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 56 */ |
| 775 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer at 58 */ |
| 776 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gtime at 59 */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 777 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 778 | static asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1 = { |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 779 | sizeof(struct ExtensibleSequence), |
| 780 | offsetof(struct ExtensibleSequence, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 781 | asn_MAP_ExtensibleSequence_tag2el_1, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 782 | 3, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 783 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 784 | 0, /* Start extensions */ |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 785 | 4 /* Stop extensions */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 786 | }; |
| 787 | asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = { |
| 788 | "ExtensibleSequence", |
| 789 | "ExtensibleSequence", |
| 790 | SEQUENCE_free, |
| 791 | SEQUENCE_print, |
| 792 | SEQUENCE_constraint, |
| 793 | SEQUENCE_decode_ber, |
| 794 | SEQUENCE_encode_der, |
| 795 | SEQUENCE_decode_xer, |
| 796 | SEQUENCE_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 797 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 798 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 799 | asn_DEF_ExtensibleSequence_tags_1, |
| 800 | sizeof(asn_DEF_ExtensibleSequence_tags_1) |
| 801 | /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */ |
| 802 | asn_DEF_ExtensibleSequence_tags_1, /* Same as above */ |
| 803 | sizeof(asn_DEF_ExtensibleSequence_tags_1) |
| 804 | /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */ |
| 805 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 806 | asn_MBR_ExtensibleSequence_1, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 807 | 3, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 808 | &asn_SPC_ExtensibleSequence_specs_1 /* Additional specs */ |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 809 | }; |
| 810 | |
| 811 | |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 812 | /*** <<< INCLUDES [ExtensibleSequence2] >>> ***/ |
| 813 | |
| 814 | #include <UTF8String.h> |
| 815 | #include <INTEGER.h> |
| 816 | #include <constr_SEQUENCE.h> |
| 817 | |
| 818 | /*** <<< TYPE-DECLS [ExtensibleSequence2] >>> ***/ |
| 819 | |
| 820 | typedef struct ExtensibleSequence2 { |
| 821 | UTF8String_t *string /* OPTIONAL */; |
| 822 | /* |
| 823 | * This type is extensible, |
| 824 | * possible extensions are below. |
| 825 | */ |
| 826 | INTEGER_t *integer /* OPTIONAL */; |
| 827 | |
| 828 | /* Context for parsing across buffer boundaries */ |
| 829 | asn_struct_ctx_t _asn_ctx; |
| 830 | } ExtensibleSequence2_t; |
| 831 | |
| 832 | /*** <<< FUNC-DECLS [ExtensibleSequence2] >>> ***/ |
| 833 | |
| 834 | extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2; |
| 835 | |
| 836 | /*** <<< STAT-DEFS [ExtensibleSequence2] >>> ***/ |
| 837 | |
| 838 | static asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = { |
| 839 | { ATF_POINTER, 2, offsetof(struct ExtensibleSequence2, string), |
| 840 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 841 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 842 | .type = &asn_DEF_UTF8String, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 843 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 844 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 845 | .default_value = 0, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 846 | .name = "string" |
| 847 | }, |
| 848 | { ATF_POINTER, 1, offsetof(struct ExtensibleSequence2, integer), |
| 849 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 850 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 851 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 852 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 853 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 854 | .default_value = 0, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 855 | .name = "integer" |
| 856 | }, |
| 857 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 858 | static ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = { |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 859 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 860 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 861 | static asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 862 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 63 */ |
| 863 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer at 65 */ |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 864 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 865 | static asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1 = { |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 866 | sizeof(struct ExtensibleSequence2), |
| 867 | offsetof(struct ExtensibleSequence2, _asn_ctx), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 868 | asn_MAP_ExtensibleSequence2_tag2el_1, |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 869 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 870 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 871 | 0, /* Start extensions */ |
| 872 | 3 /* Stop extensions */ |
| 873 | }; |
| 874 | asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2 = { |
| 875 | "ExtensibleSequence2", |
| 876 | "ExtensibleSequence2", |
| 877 | SEQUENCE_free, |
| 878 | SEQUENCE_print, |
| 879 | SEQUENCE_constraint, |
| 880 | SEQUENCE_decode_ber, |
| 881 | SEQUENCE_encode_der, |
| 882 | SEQUENCE_decode_xer, |
| 883 | SEQUENCE_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 884 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 885 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 886 | asn_DEF_ExtensibleSequence2_tags_1, |
| 887 | sizeof(asn_DEF_ExtensibleSequence2_tags_1) |
| 888 | /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */ |
| 889 | asn_DEF_ExtensibleSequence2_tags_1, /* Same as above */ |
| 890 | sizeof(asn_DEF_ExtensibleSequence2_tags_1) |
| 891 | /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */ |
| 892 | 0, /* No PER visible constraints */ |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 893 | asn_MBR_ExtensibleSequence2_1, |
| 894 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 895 | &asn_SPC_ExtensibleSequence2_specs_1 /* Additional specs */ |
Lev Walkin | 1575040 | 2005-07-03 05:27:19 +0000 | [diff] [blame] | 896 | }; |
| 897 | |
| 898 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 899 | /*** <<< INCLUDES [SetOfNULL] >>> ***/ |
| 900 | |
| 901 | #include <NULL.h> |
| 902 | #include <asn_SET_OF.h> |
| 903 | #include <constr_SET_OF.h> |
| 904 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 905 | /*** <<< TYPE-DECLS [SetOfNULL] >>> ***/ |
| 906 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 907 | typedef struct SetOfNULL { |
| 908 | A_SET_OF(NULL_t) list; |
| 909 | |
| 910 | /* Context for parsing across buffer boundaries */ |
| 911 | asn_struct_ctx_t _asn_ctx; |
| 912 | } SetOfNULL_t; |
| 913 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 914 | /*** <<< FUNC-DECLS [SetOfNULL] >>> ***/ |
| 915 | |
| 916 | extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL; |
| 917 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 918 | /*** <<< STAT-DEFS [SetOfNULL] >>> ***/ |
| 919 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 920 | static asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 921 | { ATF_POINTER, 0, 0, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 922 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 923 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 924 | .type = &asn_DEF_NULL, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 925 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 926 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 927 | .default_value = 0, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 928 | .name = "" |
| 929 | }, |
| 930 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 931 | static ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = { |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 932 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 933 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 934 | static asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1 = { |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 935 | sizeof(struct SetOfNULL), |
| 936 | offsetof(struct SetOfNULL, _asn_ctx), |
| 937 | 1, /* XER encoding is XMLValueList */ |
| 938 | }; |
| 939 | asn_TYPE_descriptor_t asn_DEF_SetOfNULL = { |
| 940 | "SetOfNULL", |
| 941 | "SetOfNULL", |
| 942 | SET_OF_free, |
| 943 | SET_OF_print, |
| 944 | SET_OF_constraint, |
| 945 | SET_OF_decode_ber, |
| 946 | SET_OF_encode_der, |
| 947 | SET_OF_decode_xer, |
| 948 | SET_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 949 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 950 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 951 | asn_DEF_SetOfNULL_tags_1, |
| 952 | sizeof(asn_DEF_SetOfNULL_tags_1) |
| 953 | /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */ |
| 954 | asn_DEF_SetOfNULL_tags_1, /* Same as above */ |
| 955 | sizeof(asn_DEF_SetOfNULL_tags_1) |
| 956 | /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */ |
| 957 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 958 | asn_MBR_SetOfNULL_1, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 959 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 960 | &asn_SPC_SetOfNULL_specs_1 /* Additional specs */ |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 961 | }; |
| 962 | |
| 963 | |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 964 | /*** <<< INCLUDES [SetOfREAL] >>> ***/ |
| 965 | |
| 966 | #include <REAL.h> |
| 967 | #include <asn_SET_OF.h> |
| 968 | #include <constr_SET_OF.h> |
| 969 | |
| 970 | /*** <<< TYPE-DECLS [SetOfREAL] >>> ***/ |
| 971 | |
| 972 | typedef struct SetOfREAL { |
| 973 | A_SET_OF(REAL_t) list; |
| 974 | |
| 975 | /* Context for parsing across buffer boundaries */ |
| 976 | asn_struct_ctx_t _asn_ctx; |
| 977 | } SetOfREAL_t; |
| 978 | |
| 979 | /*** <<< FUNC-DECLS [SetOfREAL] >>> ***/ |
| 980 | |
| 981 | extern asn_TYPE_descriptor_t asn_DEF_SetOfREAL; |
| 982 | |
| 983 | /*** <<< STAT-DEFS [SetOfREAL] >>> ***/ |
| 984 | |
| 985 | static asn_TYPE_member_t asn_MBR_SetOfREAL_1[] = { |
| 986 | { ATF_POINTER, 0, 0, |
| 987 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), |
| 988 | .tag_mode = 0, |
| 989 | .type = &asn_DEF_REAL, |
| 990 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 991 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 992 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 993 | .name = "" |
| 994 | }, |
| 995 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 996 | static ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 997 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 998 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 999 | static asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1 = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1000 | sizeof(struct SetOfREAL), |
| 1001 | offsetof(struct SetOfREAL, _asn_ctx), |
| 1002 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 1003 | }; |
| 1004 | asn_TYPE_descriptor_t asn_DEF_SetOfREAL = { |
| 1005 | "SetOfREAL", |
| 1006 | "SetOfREAL", |
| 1007 | SET_OF_free, |
| 1008 | SET_OF_print, |
| 1009 | SET_OF_constraint, |
| 1010 | SET_OF_decode_ber, |
| 1011 | SET_OF_encode_der, |
| 1012 | SET_OF_decode_xer, |
| 1013 | SET_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1014 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1015 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1016 | asn_DEF_SetOfREAL_tags_1, |
| 1017 | sizeof(asn_DEF_SetOfREAL_tags_1) |
| 1018 | /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */ |
| 1019 | asn_DEF_SetOfREAL_tags_1, /* Same as above */ |
| 1020 | sizeof(asn_DEF_SetOfREAL_tags_1) |
| 1021 | /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */ |
| 1022 | 0, /* No PER visible constraints */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1023 | asn_MBR_SetOfREAL_1, |
| 1024 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1025 | &asn_SPC_SetOfREAL_specs_1 /* Additional specs */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1026 | }; |
| 1027 | |
| 1028 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1029 | /*** <<< INCLUDES [SetOfEnums] >>> ***/ |
| 1030 | |
| 1031 | #include <ENUMERATED.h> |
| 1032 | #include <asn_SET_OF.h> |
| 1033 | #include <constr_SET_OF.h> |
| 1034 | |
| 1035 | /*** <<< DEPS [SetOfEnums] >>> ***/ |
| 1036 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1037 | typedef enum Member { |
| 1038 | Member_one = 0, |
| 1039 | Member_oneMore = 1 |
Lev Walkin | 171487e | 2006-03-21 07:25:18 +0000 | [diff] [blame] | 1040 | } e_Member; |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1041 | |
| 1042 | /*** <<< TYPE-DECLS [SetOfEnums] >>> ***/ |
| 1043 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1044 | typedef struct SetOfEnums { |
| 1045 | A_SET_OF(ENUMERATED_t) list; |
| 1046 | |
| 1047 | /* Context for parsing across buffer boundaries */ |
| 1048 | asn_struct_ctx_t _asn_ctx; |
| 1049 | } SetOfEnums_t; |
| 1050 | |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1051 | /*** <<< FUNC-DECLS [SetOfEnums] >>> ***/ |
| 1052 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1053 | /* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */ |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 1054 | extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums; |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1055 | |
| 1056 | /*** <<< CODE [SetOfEnums] >>> ***/ |
| 1057 | |
| 1058 | static int |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1059 | Member_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 1060 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1061 | /* Replace with underlying type checker */ |
| 1062 | td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 1063 | return td->check_constraints(td, sptr, ctfailcb, app_key); |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1064 | } |
| 1065 | |
| 1066 | /* |
| 1067 | * This type is implemented using ENUMERATED, |
| 1068 | * so here we adjust the DEF accordingly. |
| 1069 | */ |
| 1070 | static void |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1071 | Member_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1072 | td->free_struct = asn_DEF_ENUMERATED.free_struct; |
| 1073 | td->print_struct = asn_DEF_ENUMERATED.print_struct; |
| 1074 | td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder; |
| 1075 | td->der_encoder = asn_DEF_ENUMERATED.der_encoder; |
| 1076 | td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder; |
| 1077 | td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1078 | td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder; |
| 1079 | if(!td->per_constraints) |
| 1080 | td->per_constraints = asn_DEF_ENUMERATED.per_constraints; |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1081 | td->elements = asn_DEF_ENUMERATED.elements; |
| 1082 | td->elements_count = asn_DEF_ENUMERATED.elements_count; |
Lev Walkin | 29a8219 | 2005-03-29 19:05:37 +0000 | [diff] [blame] | 1083 | /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */ |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1084 | } |
| 1085 | |
| 1086 | static void |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1087 | Member_2_free(asn_TYPE_descriptor_t *td, |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1088 | void *struct_ptr, int contents_only) { |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1089 | Member_2_inherit_TYPE_descriptor(td); |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1090 | td->free_struct(td, struct_ptr, contents_only); |
| 1091 | } |
| 1092 | |
| 1093 | static int |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1094 | Member_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1095 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1096 | Member_2_inherit_TYPE_descriptor(td); |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1097 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 1098 | } |
| 1099 | |
| 1100 | static asn_dec_rval_t |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1101 | Member_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | 3ebc65a | 2005-03-17 21:57:19 +0000 | [diff] [blame] | 1102 | void **structure, const void *bufptr, size_t size, int tag_mode) { |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1103 | Member_2_inherit_TYPE_descriptor(td); |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1104 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
| 1105 | } |
| 1106 | |
| 1107 | static asn_enc_rval_t |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1108 | Member_2_encode_der(asn_TYPE_descriptor_t *td, |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1109 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 1110 | asn_app_consume_bytes_f *cb, void *app_key) { |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1111 | Member_2_inherit_TYPE_descriptor(td); |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1112 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 1113 | } |
| 1114 | |
| 1115 | static asn_dec_rval_t |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1116 | Member_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | 3ebc65a | 2005-03-17 21:57:19 +0000 | [diff] [blame] | 1117 | void **structure, const char *opt_mname, const void *bufptr, size_t size) { |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1118 | Member_2_inherit_TYPE_descriptor(td); |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1119 | return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); |
| 1120 | } |
| 1121 | |
| 1122 | static asn_enc_rval_t |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1123 | Member_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1124 | int ilevel, enum xer_encoder_flags_e flags, |
| 1125 | asn_app_consume_bytes_f *cb, void *app_key) { |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1126 | Member_2_inherit_TYPE_descriptor(td); |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1127 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
| 1128 | } |
| 1129 | |
| 1130 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1131 | /*** <<< STAT-DEFS [SetOfEnums] >>> ***/ |
| 1132 | |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1133 | static asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = { |
Lev Walkin | 9f30ef1 | 2005-02-25 11:08:02 +0000 | [diff] [blame] | 1134 | { 0, 3, "one" }, |
| 1135 | { 1, 7, "oneMore" } |
| 1136 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1137 | static unsigned int asn_MAP_Member_enum2value_2[] = { |
Lev Walkin | 9f30ef1 | 2005-02-25 11:08:02 +0000 | [diff] [blame] | 1138 | 0, /* one(0) */ |
| 1139 | 1 /* oneMore(1) */ |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1140 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1141 | static asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = { |
| 1142 | asn_MAP_Member_value2enum_2, /* "tag" => N; sorted by tag */ |
| 1143 | asn_MAP_Member_enum2value_2, /* N => "tag"; sorted by N */ |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1144 | 2, /* Number of elements in the maps */ |
Lev Walkin | 295e245 | 2005-02-25 11:47:59 +0000 | [diff] [blame] | 1145 | 0, /* Enumeration is not extensible */ |
| 1146 | 1 /* Strict enumeration */ |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1147 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1148 | static ber_tlv_tag_t asn_DEF_Member_tags_2[] = { |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1149 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 1150 | }; |
| 1151 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1152 | asn_TYPE_descriptor_t asn_DEF_Member_2 = { |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1153 | "ENUMERATED", |
| 1154 | "ENUMERATED", |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1155 | Member_2_free, |
| 1156 | Member_2_print, |
| 1157 | Member_2_constraint, |
| 1158 | Member_2_decode_ber, |
| 1159 | Member_2_encode_der, |
| 1160 | Member_2_decode_xer, |
| 1161 | Member_2_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1162 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1163 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1164 | asn_DEF_Member_tags_2, |
| 1165 | sizeof(asn_DEF_Member_tags_2) |
| 1166 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
| 1167 | asn_DEF_Member_tags_2, /* Same as above */ |
| 1168 | sizeof(asn_DEF_Member_tags_2) |
| 1169 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
| 1170 | 0, /* No PER visible constraints */ |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1171 | 0, 0, /* Defined elsewhere */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1172 | &asn_SPC_Member_specs_2 /* Additional specs */ |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1173 | }; |
| 1174 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1175 | static asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 1176 | { ATF_POINTER, 0, 0, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1177 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), |
| 1178 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1179 | .type = &asn_DEF_Member_2, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1180 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1181 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1182 | .default_value = 0, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1183 | .name = "" |
| 1184 | }, |
| 1185 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1186 | static ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = { |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1187 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1188 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1189 | static asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1 = { |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1190 | sizeof(struct SetOfEnums), |
| 1191 | offsetof(struct SetOfEnums, _asn_ctx), |
Lev Walkin | b47df09 | 2005-02-25 08:35:54 +0000 | [diff] [blame] | 1192 | 1, /* XER encoding is XMLValueList */ |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1193 | }; |
| 1194 | asn_TYPE_descriptor_t asn_DEF_SetOfEnums = { |
| 1195 | "SetOfEnums", |
| 1196 | "SetOfEnums", |
| 1197 | SET_OF_free, |
| 1198 | SET_OF_print, |
| 1199 | SET_OF_constraint, |
| 1200 | SET_OF_decode_ber, |
| 1201 | SET_OF_encode_der, |
| 1202 | SET_OF_decode_xer, |
| 1203 | SET_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1204 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1205 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1206 | asn_DEF_SetOfEnums_tags_1, |
| 1207 | sizeof(asn_DEF_SetOfEnums_tags_1) |
| 1208 | /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */ |
| 1209 | asn_DEF_SetOfEnums_tags_1, /* Same as above */ |
| 1210 | sizeof(asn_DEF_SetOfEnums_tags_1) |
| 1211 | /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */ |
| 1212 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1213 | asn_MBR_SetOfEnums_1, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1214 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1215 | &asn_SPC_SetOfEnums_specs_1 /* Additional specs */ |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1216 | }; |
| 1217 | |
| 1218 | |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1219 | /*** <<< INCLUDES [NamedSetOfNULL] >>> ***/ |
| 1220 | |
| 1221 | #include <NULL.h> |
| 1222 | #include <asn_SET_OF.h> |
| 1223 | #include <constr_SET_OF.h> |
| 1224 | |
| 1225 | /*** <<< TYPE-DECLS [NamedSetOfNULL] >>> ***/ |
| 1226 | |
| 1227 | typedef struct NamedSetOfNULL { |
| 1228 | A_SET_OF(NULL_t) list; |
| 1229 | |
| 1230 | /* Context for parsing across buffer boundaries */ |
| 1231 | asn_struct_ctx_t _asn_ctx; |
| 1232 | } NamedSetOfNULL_t; |
| 1233 | |
| 1234 | /*** <<< FUNC-DECLS [NamedSetOfNULL] >>> ***/ |
| 1235 | |
| 1236 | extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL; |
| 1237 | |
| 1238 | /*** <<< STAT-DEFS [NamedSetOfNULL] >>> ***/ |
| 1239 | |
| 1240 | static asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[] = { |
| 1241 | { ATF_POINTER, 0, 0, |
| 1242 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 1243 | .tag_mode = 0, |
| 1244 | .type = &asn_DEF_NULL, |
| 1245 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1246 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1247 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1248 | .name = "y" |
| 1249 | }, |
| 1250 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1251 | static ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1252 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1253 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1254 | static asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1 = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1255 | sizeof(struct NamedSetOfNULL), |
| 1256 | offsetof(struct NamedSetOfNULL, _asn_ctx), |
| 1257 | 1, /* XER encoding is XMLValueList */ |
| 1258 | }; |
| 1259 | asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL = { |
| 1260 | "NamedSetOfNULL", |
| 1261 | "NamedSetOfNULL", |
| 1262 | SET_OF_free, |
| 1263 | SET_OF_print, |
| 1264 | SET_OF_constraint, |
| 1265 | SET_OF_decode_ber, |
| 1266 | SET_OF_encode_der, |
| 1267 | SET_OF_decode_xer, |
| 1268 | SET_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1269 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1270 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1271 | asn_DEF_NamedSetOfNULL_tags_1, |
| 1272 | sizeof(asn_DEF_NamedSetOfNULL_tags_1) |
| 1273 | /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */ |
| 1274 | asn_DEF_NamedSetOfNULL_tags_1, /* Same as above */ |
| 1275 | sizeof(asn_DEF_NamedSetOfNULL_tags_1) |
| 1276 | /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */ |
| 1277 | 0, /* No PER visible constraints */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1278 | asn_MBR_NamedSetOfNULL_1, |
| 1279 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1280 | &asn_SPC_NamedSetOfNULL_specs_1 /* Additional specs */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1281 | }; |
| 1282 | |
| 1283 | |
| 1284 | /*** <<< INCLUDES [NamedSetOfREAL] >>> ***/ |
| 1285 | |
| 1286 | #include <REAL.h> |
| 1287 | #include <asn_SET_OF.h> |
| 1288 | #include <constr_SET_OF.h> |
| 1289 | |
| 1290 | /*** <<< TYPE-DECLS [NamedSetOfREAL] >>> ***/ |
| 1291 | |
| 1292 | typedef struct NamedSetOfREAL { |
| 1293 | A_SET_OF(REAL_t) list; |
| 1294 | |
| 1295 | /* Context for parsing across buffer boundaries */ |
| 1296 | asn_struct_ctx_t _asn_ctx; |
| 1297 | } NamedSetOfREAL_t; |
| 1298 | |
| 1299 | /*** <<< FUNC-DECLS [NamedSetOfREAL] >>> ***/ |
| 1300 | |
| 1301 | extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL; |
| 1302 | |
| 1303 | /*** <<< STAT-DEFS [NamedSetOfREAL] >>> ***/ |
| 1304 | |
| 1305 | static asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[] = { |
| 1306 | { ATF_POINTER, 0, 0, |
| 1307 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), |
| 1308 | .tag_mode = 0, |
| 1309 | .type = &asn_DEF_REAL, |
| 1310 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1311 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1312 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1313 | .name = "name" |
| 1314 | }, |
| 1315 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1316 | static ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1317 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1318 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1319 | static asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1 = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1320 | sizeof(struct NamedSetOfREAL), |
| 1321 | offsetof(struct NamedSetOfREAL, _asn_ctx), |
| 1322 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 1323 | }; |
| 1324 | asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL = { |
| 1325 | "NamedSetOfREAL", |
| 1326 | "NamedSetOfREAL", |
| 1327 | SET_OF_free, |
| 1328 | SET_OF_print, |
| 1329 | SET_OF_constraint, |
| 1330 | SET_OF_decode_ber, |
| 1331 | SET_OF_encode_der, |
| 1332 | SET_OF_decode_xer, |
| 1333 | SET_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1334 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1335 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1336 | asn_DEF_NamedSetOfREAL_tags_1, |
| 1337 | sizeof(asn_DEF_NamedSetOfREAL_tags_1) |
| 1338 | /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */ |
| 1339 | asn_DEF_NamedSetOfREAL_tags_1, /* Same as above */ |
| 1340 | sizeof(asn_DEF_NamedSetOfREAL_tags_1) |
| 1341 | /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */ |
| 1342 | 0, /* No PER visible constraints */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1343 | asn_MBR_NamedSetOfREAL_1, |
| 1344 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1345 | &asn_SPC_NamedSetOfREAL_specs_1 /* Additional specs */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1346 | }; |
| 1347 | |
| 1348 | |
| 1349 | /*** <<< INCLUDES [NamedSetOfEnums] >>> ***/ |
| 1350 | |
| 1351 | #include <ENUMERATED.h> |
| 1352 | #include <asn_SET_OF.h> |
| 1353 | #include <constr_SET_OF.h> |
| 1354 | |
| 1355 | /*** <<< DEPS [NamedSetOfEnums] >>> ***/ |
| 1356 | |
| 1357 | typedef enum name { |
| 1358 | name_one = 0, |
| 1359 | name_oneMore = 1 |
Lev Walkin | 171487e | 2006-03-21 07:25:18 +0000 | [diff] [blame] | 1360 | } e_name; |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1361 | |
| 1362 | /*** <<< TYPE-DECLS [NamedSetOfEnums] >>> ***/ |
| 1363 | |
| 1364 | typedef struct NamedSetOfEnums { |
| 1365 | A_SET_OF(ENUMERATED_t) list; |
| 1366 | |
| 1367 | /* Context for parsing across buffer boundaries */ |
| 1368 | asn_struct_ctx_t _asn_ctx; |
| 1369 | } NamedSetOfEnums_t; |
| 1370 | |
| 1371 | /*** <<< FUNC-DECLS [NamedSetOfEnums] >>> ***/ |
| 1372 | |
| 1373 | /* extern asn_TYPE_descriptor_t asn_DEF_name_2; // (Use -fall-defs-global to expose) */ |
| 1374 | extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums; |
| 1375 | |
| 1376 | /*** <<< CODE [NamedSetOfEnums] >>> ***/ |
| 1377 | |
| 1378 | static int |
| 1379 | name_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 1380 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1381 | /* Replace with underlying type checker */ |
| 1382 | td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 1383 | return td->check_constraints(td, sptr, ctfailcb, app_key); |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1384 | } |
| 1385 | |
| 1386 | /* |
| 1387 | * This type is implemented using ENUMERATED, |
| 1388 | * so here we adjust the DEF accordingly. |
| 1389 | */ |
| 1390 | static void |
| 1391 | name_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 1392 | td->free_struct = asn_DEF_ENUMERATED.free_struct; |
| 1393 | td->print_struct = asn_DEF_ENUMERATED.print_struct; |
| 1394 | td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder; |
| 1395 | td->der_encoder = asn_DEF_ENUMERATED.der_encoder; |
| 1396 | td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder; |
| 1397 | td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1398 | td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder; |
| 1399 | if(!td->per_constraints) |
| 1400 | td->per_constraints = asn_DEF_ENUMERATED.per_constraints; |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1401 | td->elements = asn_DEF_ENUMERATED.elements; |
| 1402 | td->elements_count = asn_DEF_ENUMERATED.elements_count; |
| 1403 | /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */ |
| 1404 | } |
| 1405 | |
| 1406 | static void |
| 1407 | name_2_free(asn_TYPE_descriptor_t *td, |
| 1408 | void *struct_ptr, int contents_only) { |
| 1409 | name_2_inherit_TYPE_descriptor(td); |
| 1410 | td->free_struct(td, struct_ptr, contents_only); |
| 1411 | } |
| 1412 | |
| 1413 | static int |
| 1414 | name_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
| 1415 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 1416 | name_2_inherit_TYPE_descriptor(td); |
| 1417 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 1418 | } |
| 1419 | |
| 1420 | static asn_dec_rval_t |
| 1421 | name_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 1422 | void **structure, const void *bufptr, size_t size, int tag_mode) { |
| 1423 | name_2_inherit_TYPE_descriptor(td); |
| 1424 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
| 1425 | } |
| 1426 | |
| 1427 | static asn_enc_rval_t |
| 1428 | name_2_encode_der(asn_TYPE_descriptor_t *td, |
| 1429 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 1430 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 1431 | name_2_inherit_TYPE_descriptor(td); |
| 1432 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 1433 | } |
| 1434 | |
| 1435 | static asn_dec_rval_t |
| 1436 | name_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 1437 | void **structure, const char *opt_mname, const void *bufptr, size_t size) { |
| 1438 | name_2_inherit_TYPE_descriptor(td); |
| 1439 | return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); |
| 1440 | } |
| 1441 | |
| 1442 | static asn_enc_rval_t |
| 1443 | name_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
| 1444 | int ilevel, enum xer_encoder_flags_e flags, |
| 1445 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 1446 | name_2_inherit_TYPE_descriptor(td); |
| 1447 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
| 1448 | } |
| 1449 | |
| 1450 | |
| 1451 | /*** <<< STAT-DEFS [NamedSetOfEnums] >>> ***/ |
| 1452 | |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1453 | static asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1454 | { 0, 3, "one" }, |
| 1455 | { 1, 7, "oneMore" } |
| 1456 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1457 | static unsigned int asn_MAP_name_enum2value_2[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1458 | 0, /* one(0) */ |
| 1459 | 1 /* oneMore(1) */ |
| 1460 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1461 | static asn_INTEGER_specifics_t asn_SPC_name_specs_2 = { |
| 1462 | asn_MAP_name_value2enum_2, /* "tag" => N; sorted by tag */ |
| 1463 | asn_MAP_name_enum2value_2, /* N => "tag"; sorted by N */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1464 | 2, /* Number of elements in the maps */ |
| 1465 | 0, /* Enumeration is not extensible */ |
| 1466 | 1 /* Strict enumeration */ |
| 1467 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1468 | static ber_tlv_tag_t asn_DEF_name_tags_2[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1469 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 1470 | }; |
| 1471 | static /* Use -fall-defs-global to expose */ |
| 1472 | asn_TYPE_descriptor_t asn_DEF_name_2 = { |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1473 | "ENUMERATED", |
| 1474 | "ENUMERATED", |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1475 | name_2_free, |
| 1476 | name_2_print, |
| 1477 | name_2_constraint, |
| 1478 | name_2_decode_ber, |
| 1479 | name_2_encode_der, |
| 1480 | name_2_decode_xer, |
| 1481 | name_2_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1482 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1483 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1484 | asn_DEF_name_tags_2, |
| 1485 | sizeof(asn_DEF_name_tags_2) |
| 1486 | /sizeof(asn_DEF_name_tags_2[0]), /* 1 */ |
| 1487 | asn_DEF_name_tags_2, /* Same as above */ |
| 1488 | sizeof(asn_DEF_name_tags_2) |
| 1489 | /sizeof(asn_DEF_name_tags_2[0]), /* 1 */ |
| 1490 | 0, /* No PER visible constraints */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1491 | 0, 0, /* Defined elsewhere */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1492 | &asn_SPC_name_specs_2 /* Additional specs */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1493 | }; |
| 1494 | |
| 1495 | static asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[] = { |
| 1496 | { ATF_POINTER, 0, 0, |
| 1497 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), |
| 1498 | .tag_mode = 0, |
| 1499 | .type = &asn_DEF_name_2, |
| 1500 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1501 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1502 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1503 | .name = "name" |
| 1504 | }, |
| 1505 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1506 | static ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1507 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1508 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1509 | static asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1 = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1510 | sizeof(struct NamedSetOfEnums), |
| 1511 | offsetof(struct NamedSetOfEnums, _asn_ctx), |
| 1512 | 1, /* XER encoding is XMLValueList */ |
| 1513 | }; |
| 1514 | asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums = { |
| 1515 | "NamedSetOfEnums", |
| 1516 | "NamedSetOfEnums", |
| 1517 | SET_OF_free, |
| 1518 | SET_OF_print, |
| 1519 | SET_OF_constraint, |
| 1520 | SET_OF_decode_ber, |
| 1521 | SET_OF_encode_der, |
| 1522 | SET_OF_decode_xer, |
| 1523 | SET_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1524 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1525 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1526 | asn_DEF_NamedSetOfEnums_tags_1, |
| 1527 | sizeof(asn_DEF_NamedSetOfEnums_tags_1) |
| 1528 | /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */ |
| 1529 | asn_DEF_NamedSetOfEnums_tags_1, /* Same as above */ |
| 1530 | sizeof(asn_DEF_NamedSetOfEnums_tags_1) |
| 1531 | /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */ |
| 1532 | 0, /* No PER visible constraints */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1533 | asn_MBR_NamedSetOfEnums_1, |
| 1534 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1535 | &asn_SPC_NamedSetOfEnums_specs_1 /* Additional specs */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1536 | }; |
| 1537 | |
| 1538 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 1539 | /*** <<< INCLUDES [SequenceOf] >>> ***/ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1540 | |
| 1541 | #include <INTEGER.h> |
| 1542 | #include <asn_SEQUENCE_OF.h> |
| 1543 | #include <constr_SEQUENCE_OF.h> |
| 1544 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 1545 | /*** <<< TYPE-DECLS [SequenceOf] >>> ***/ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1546 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 1547 | typedef struct SequenceOf { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1548 | A_SEQUENCE_OF(INTEGER_t) list; |
| 1549 | |
| 1550 | /* Context for parsing across buffer boundaries */ |
| 1551 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 1552 | } SequenceOf_t; |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1553 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 1554 | /*** <<< FUNC-DECLS [SequenceOf] >>> ***/ |
| 1555 | |
| 1556 | extern asn_TYPE_descriptor_t asn_DEF_SequenceOf; |
| 1557 | |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 1558 | /*** <<< STAT-DEFS [SequenceOf] >>> ***/ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1559 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1560 | static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 1561 | { ATF_POINTER, 0, 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1562 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 1563 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1564 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1565 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1566 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1567 | .default_value = 0, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1568 | .name = "id" |
| 1569 | }, |
| 1570 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1571 | static ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = { |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1572 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1573 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1574 | static asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = { |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 1575 | sizeof(struct SequenceOf), |
| 1576 | offsetof(struct SequenceOf, _asn_ctx), |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1577 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 1578 | }; |
Lev Walkin | 843a246 | 2005-02-18 16:30:26 +0000 | [diff] [blame] | 1579 | asn_TYPE_descriptor_t asn_DEF_SequenceOf = { |
| 1580 | "SequenceOf", |
| 1581 | "SequenceOf", |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1582 | SEQUENCE_OF_free, |
| 1583 | SEQUENCE_OF_print, |
| 1584 | SEQUENCE_OF_constraint, |
| 1585 | SEQUENCE_OF_decode_ber, |
| 1586 | SEQUENCE_OF_encode_der, |
| 1587 | SEQUENCE_OF_decode_xer, |
| 1588 | SEQUENCE_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1589 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1590 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1591 | asn_DEF_SequenceOf_tags_1, |
| 1592 | sizeof(asn_DEF_SequenceOf_tags_1) |
| 1593 | /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */ |
| 1594 | asn_DEF_SequenceOf_tags_1, /* Same as above */ |
| 1595 | sizeof(asn_DEF_SequenceOf_tags_1) |
| 1596 | /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */ |
| 1597 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1598 | asn_MBR_SequenceOf_1, |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1599 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1600 | &asn_SPC_SequenceOf_specs_1 /* Additional specs */ |
Lev Walkin | 0ef9f14 | 2005-02-14 20:40:57 +0000 | [diff] [blame] | 1601 | }; |
| 1602 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1603 | |
| 1604 | /*** <<< INCLUDES [SeqOfZuka] >>> ***/ |
| 1605 | |
| 1606 | #include <NULL.h> |
| 1607 | #include <asn_SEQUENCE_OF.h> |
| 1608 | #include <constr_SEQUENCE_OF.h> |
| 1609 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1610 | /*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/ |
| 1611 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1612 | typedef struct SeqOfZuka { |
| 1613 | A_SEQUENCE_OF(NULL_t) list; |
| 1614 | |
| 1615 | /* Context for parsing across buffer boundaries */ |
| 1616 | asn_struct_ctx_t _asn_ctx; |
| 1617 | } SeqOfZuka_t; |
| 1618 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 1619 | /*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/ |
| 1620 | |
| 1621 | extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka; |
| 1622 | |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1623 | /*** <<< STAT-DEFS [SeqOfZuka] >>> ***/ |
| 1624 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1625 | static asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 1626 | { ATF_POINTER, 0, 0, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1627 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 1628 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1629 | .type = &asn_DEF_NULL, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1630 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1631 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1632 | .default_value = 0, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1633 | .name = "zuka" |
| 1634 | }, |
| 1635 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1636 | static ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = { |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1637 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1638 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1639 | static asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1 = { |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1640 | sizeof(struct SeqOfZuka), |
| 1641 | offsetof(struct SeqOfZuka, _asn_ctx), |
| 1642 | 1, /* XER encoding is XMLValueList */ |
| 1643 | }; |
| 1644 | asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = { |
| 1645 | "SeqOfZuka", |
| 1646 | "SeqOfZuka", |
| 1647 | SEQUENCE_OF_free, |
| 1648 | SEQUENCE_OF_print, |
| 1649 | SEQUENCE_OF_constraint, |
| 1650 | SEQUENCE_OF_decode_ber, |
| 1651 | SEQUENCE_OF_encode_der, |
| 1652 | SEQUENCE_OF_decode_xer, |
| 1653 | SEQUENCE_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1654 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1655 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1656 | asn_DEF_SeqOfZuka_tags_1, |
| 1657 | sizeof(asn_DEF_SeqOfZuka_tags_1) |
| 1658 | /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */ |
| 1659 | asn_DEF_SeqOfZuka_tags_1, /* Same as above */ |
| 1660 | sizeof(asn_DEF_SeqOfZuka_tags_1) |
| 1661 | /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */ |
| 1662 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 1663 | asn_MBR_SeqOfZuka_1, |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1664 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1665 | &asn_SPC_SeqOfZuka_specs_1 /* Additional specs */ |
Lev Walkin | f5db614 | 2005-02-24 22:38:43 +0000 | [diff] [blame] | 1666 | }; |
| 1667 | |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1668 | |
| 1669 | /*** <<< INCLUDES [SetOfChoice] >>> ***/ |
| 1670 | |
| 1671 | #include <asn_SET_OF.h> |
| 1672 | #include <constr_SET_OF.h> |
| 1673 | |
| 1674 | /*** <<< FWD-DECLS [SetOfChoice] >>> ***/ |
| 1675 | |
| 1676 | struct SimpleChoice; |
| 1677 | |
| 1678 | /*** <<< TYPE-DECLS [SetOfChoice] >>> ***/ |
| 1679 | |
| 1680 | typedef struct SetOfChoice { |
| 1681 | A_SET_OF(struct SimpleChoice) list; |
| 1682 | |
| 1683 | /* Context for parsing across buffer boundaries */ |
| 1684 | asn_struct_ctx_t _asn_ctx; |
| 1685 | } SetOfChoice_t; |
| 1686 | |
| 1687 | /*** <<< FUNC-DECLS [SetOfChoice] >>> ***/ |
| 1688 | |
| 1689 | extern asn_TYPE_descriptor_t asn_DEF_SetOfChoice; |
| 1690 | |
| 1691 | /*** <<< POST-INCLUDE [SetOfChoice] >>> ***/ |
| 1692 | |
| 1693 | #include <SimpleChoice.h> |
| 1694 | |
| 1695 | /*** <<< STAT-DEFS [SetOfChoice] >>> ***/ |
| 1696 | |
| 1697 | static asn_TYPE_member_t asn_MBR_SetOfChoice_1[] = { |
| 1698 | { ATF_POINTER, 0, 0, |
| 1699 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 1700 | .tag_mode = 0, |
| 1701 | .type = &asn_DEF_SimpleChoice, |
| 1702 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1703 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1704 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1705 | .name = "" |
| 1706 | }, |
| 1707 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1708 | static ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1709 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1710 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1711 | static asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1 = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1712 | sizeof(struct SetOfChoice), |
| 1713 | offsetof(struct SetOfChoice, _asn_ctx), |
Lev Walkin | d1bfea6 | 2005-11-08 03:06:16 +0000 | [diff] [blame] | 1714 | 2, /* XER encoding is XMLValueList */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1715 | }; |
| 1716 | asn_TYPE_descriptor_t asn_DEF_SetOfChoice = { |
| 1717 | "SetOfChoice", |
| 1718 | "SetOfChoice", |
| 1719 | SET_OF_free, |
| 1720 | SET_OF_print, |
| 1721 | SET_OF_constraint, |
| 1722 | SET_OF_decode_ber, |
| 1723 | SET_OF_encode_der, |
| 1724 | SET_OF_decode_xer, |
| 1725 | SET_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1726 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1727 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1728 | asn_DEF_SetOfChoice_tags_1, |
| 1729 | sizeof(asn_DEF_SetOfChoice_tags_1) |
| 1730 | /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */ |
| 1731 | asn_DEF_SetOfChoice_tags_1, /* Same as above */ |
| 1732 | sizeof(asn_DEF_SetOfChoice_tags_1) |
| 1733 | /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */ |
| 1734 | 0, /* No PER visible constraints */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1735 | asn_MBR_SetOfChoice_1, |
| 1736 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1737 | &asn_SPC_SetOfChoice_specs_1 /* Additional specs */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1738 | }; |
| 1739 | |
| 1740 | |
| 1741 | /*** <<< INCLUDES [NamedSetOfChoice] >>> ***/ |
| 1742 | |
| 1743 | #include <asn_SET_OF.h> |
| 1744 | #include <constr_SET_OF.h> |
| 1745 | |
| 1746 | /*** <<< FWD-DECLS [NamedSetOfChoice] >>> ***/ |
| 1747 | |
| 1748 | struct SimpleChoice; |
| 1749 | |
| 1750 | /*** <<< TYPE-DECLS [NamedSetOfChoice] >>> ***/ |
| 1751 | |
| 1752 | typedef struct NamedSetOfChoice { |
| 1753 | A_SET_OF(struct SimpleChoice) list; |
| 1754 | |
| 1755 | /* Context for parsing across buffer boundaries */ |
| 1756 | asn_struct_ctx_t _asn_ctx; |
| 1757 | } NamedSetOfChoice_t; |
| 1758 | |
| 1759 | /*** <<< FUNC-DECLS [NamedSetOfChoice] >>> ***/ |
| 1760 | |
| 1761 | extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice; |
| 1762 | |
| 1763 | /*** <<< POST-INCLUDE [NamedSetOfChoice] >>> ***/ |
| 1764 | |
| 1765 | #include <SimpleChoice.h> |
| 1766 | |
| 1767 | /*** <<< STAT-DEFS [NamedSetOfChoice] >>> ***/ |
| 1768 | |
| 1769 | static asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[] = { |
| 1770 | { ATF_POINTER, 0, 0, |
| 1771 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 1772 | .tag_mode = 0, |
| 1773 | .type = &asn_DEF_SimpleChoice, |
| 1774 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1775 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1776 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1777 | .name = "whatever" |
| 1778 | }, |
| 1779 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1780 | static ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1781 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1782 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1783 | static asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1 = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1784 | sizeof(struct NamedSetOfChoice), |
| 1785 | offsetof(struct NamedSetOfChoice, _asn_ctx), |
Lev Walkin | d1bfea6 | 2005-11-08 03:06:16 +0000 | [diff] [blame] | 1786 | 2, /* XER encoding is XMLValueList */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1787 | }; |
| 1788 | asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice = { |
| 1789 | "NamedSetOfChoice", |
| 1790 | "NamedSetOfChoice", |
| 1791 | SET_OF_free, |
| 1792 | SET_OF_print, |
| 1793 | SET_OF_constraint, |
| 1794 | SET_OF_decode_ber, |
| 1795 | SET_OF_encode_der, |
| 1796 | SET_OF_decode_xer, |
| 1797 | SET_OF_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1798 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1799 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1800 | asn_DEF_NamedSetOfChoice_tags_1, |
| 1801 | sizeof(asn_DEF_NamedSetOfChoice_tags_1) |
| 1802 | /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */ |
| 1803 | asn_DEF_NamedSetOfChoice_tags_1, /* Same as above */ |
| 1804 | sizeof(asn_DEF_NamedSetOfChoice_tags_1) |
| 1805 | /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */ |
| 1806 | 0, /* No PER visible constraints */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1807 | asn_MBR_NamedSetOfChoice_1, |
| 1808 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1809 | &asn_SPC_NamedSetOfChoice_specs_1 /* Additional specs */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1810 | }; |
| 1811 | |
| 1812 | |
| 1813 | /*** <<< INCLUDES [SimpleChoice] >>> ***/ |
| 1814 | |
| 1815 | #include <NULL.h> |
| 1816 | #include <INTEGER.h> |
| 1817 | #include <constr_CHOICE.h> |
| 1818 | |
| 1819 | /*** <<< DEPS [SimpleChoice] >>> ***/ |
| 1820 | |
| 1821 | typedef enum SimpleChoice_PR { |
| 1822 | SimpleChoice_PR_NOTHING, /* No components present */ |
| 1823 | SimpleChoice_PR_a, |
| 1824 | SimpleChoice_PR_b, |
| 1825 | } SimpleChoice_PR; |
| 1826 | |
| 1827 | /*** <<< TYPE-DECLS [SimpleChoice] >>> ***/ |
| 1828 | |
| 1829 | typedef struct SimpleChoice { |
| 1830 | SimpleChoice_PR present; |
| 1831 | union SimpleChoice_u { |
| 1832 | NULL_t a; |
| 1833 | INTEGER_t b; |
| 1834 | } choice; |
| 1835 | |
| 1836 | /* Context for parsing across buffer boundaries */ |
| 1837 | asn_struct_ctx_t _asn_ctx; |
| 1838 | } SimpleChoice_t; |
| 1839 | |
| 1840 | /*** <<< FUNC-DECLS [SimpleChoice] >>> ***/ |
| 1841 | |
| 1842 | extern asn_TYPE_descriptor_t asn_DEF_SimpleChoice; |
| 1843 | |
| 1844 | /*** <<< STAT-DEFS [SimpleChoice] >>> ***/ |
| 1845 | |
| 1846 | static asn_TYPE_member_t asn_MBR_SimpleChoice_1[] = { |
| 1847 | { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.a), |
| 1848 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1849 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 1850 | .type = &asn_DEF_NULL, |
| 1851 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1852 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1853 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1854 | .name = "a" |
| 1855 | }, |
| 1856 | { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.b), |
| 1857 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1858 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 1859 | .type = &asn_DEF_INTEGER, |
| 1860 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1861 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1862 | .default_value = 0, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1863 | .name = "b" |
| 1864 | }, |
| 1865 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1866 | static asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1867 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 79 */ |
| 1868 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b at 79 */ |
| 1869 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1870 | static asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1 = { |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1871 | sizeof(struct SimpleChoice), |
| 1872 | offsetof(struct SimpleChoice, _asn_ctx), |
| 1873 | offsetof(struct SimpleChoice, present), |
| 1874 | sizeof(((struct SimpleChoice *)0)->present), |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1875 | asn_MAP_SimpleChoice_tag2el_1, |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1876 | 2, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1877 | .canonical_order = 0, |
| 1878 | .ext_start = -1 /* Extensions start */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1879 | }; |
| 1880 | asn_TYPE_descriptor_t asn_DEF_SimpleChoice = { |
| 1881 | "SimpleChoice", |
| 1882 | "SimpleChoice", |
| 1883 | CHOICE_free, |
| 1884 | CHOICE_print, |
| 1885 | CHOICE_constraint, |
| 1886 | CHOICE_decode_ber, |
| 1887 | CHOICE_encode_der, |
| 1888 | CHOICE_decode_xer, |
| 1889 | CHOICE_encode_xer, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1890 | 0, /* No PER decoder, -gen-PER to enable */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1891 | CHOICE_outmost_tag, |
| 1892 | 0, /* No effective tags (pointer) */ |
| 1893 | 0, /* No effective tags (count) */ |
| 1894 | 0, /* No tags (pointer) */ |
| 1895 | 0, /* No tags (count) */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1896 | 0, /* No PER visible constraints */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1897 | asn_MBR_SimpleChoice_1, |
| 1898 | 2, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1899 | &asn_SPC_SimpleChoice_specs_1 /* Additional specs */ |
Lev Walkin | 5ab96cd | 2005-11-07 15:26:47 +0000 | [diff] [blame] | 1900 | }; |
| 1901 | |