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