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