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