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