| 1 |
|
| 2 |
/*** <<< INCLUDES [PDU] >>> ***/ |
| 3 |
|
| 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" |
| 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, |
| 27 |
PDU_PR_sequenceOf, |
| 28 |
PDU_PR_extensibleSet, |
| 29 |
PDU_PR_extensibleSequence, |
| 30 |
PDU_PR_extensibleSequence2, |
| 31 |
PDU_PR_setOfNULL, |
| 32 |
PDU_PR_setOfREAL, |
| 33 |
PDU_PR_setOfEnums, |
| 34 |
PDU_PR_namedSetOfNULL, |
| 35 |
PDU_PR_namedSetOfREAL, |
| 36 |
PDU_PR_namedSetOfEnums, |
| 37 |
PDU_PR_seqOfZuka, |
| 38 |
PDU_PR_setOfChoice, |
| 39 |
PDU_PR_namedSetOfChoice, |
| 40 |
/* Extensions may appear below */ |
| 41 |
|
| 42 |
} PDU_PR; |
| 43 |
|
| 44 |
/*** <<< TYPE-DECLS [PDU] >>> ***/ |
| 45 |
|
| 46 |
typedef struct PDU { |
| 47 |
PDU_PR present; |
| 48 |
union PDU_u { |
| 49 |
Sequence_t sequence; |
| 50 |
Set_t set; |
| 51 |
SequenceOf_t sequenceOf; |
| 52 |
ExtensibleSet_t extensibleSet; |
| 53 |
ExtensibleSequence_t extensibleSequence; |
| 54 |
ExtensibleSequence2_t extensibleSequence2; |
| 55 |
SetOfNULL_t setOfNULL; |
| 56 |
SetOfREAL_t setOfREAL; |
| 57 |
SetOfEnums_t setOfEnums; |
| 58 |
NamedSetOfNULL_t namedSetOfNULL; |
| 59 |
NamedSetOfREAL_t namedSetOfREAL; |
| 60 |
NamedSetOfEnums_t namedSetOfEnums; |
| 61 |
SeqOfZuka_t seqOfZuka; |
| 62 |
SetOfChoice_t setOfChoice; |
| 63 |
NamedSetOfChoice_t namedSetOfChoice; |
| 64 |
/* |
| 65 |
* This type is extensible, |
| 66 |
* possible extensions are below. |
| 67 |
*/ |
| 68 |
} choice; |
| 69 |
|
| 70 |
/* Context for parsing across buffer boundaries */ |
| 71 |
asn_struct_ctx_t _asn_ctx; |
| 72 |
} PDU_t; |
| 73 |
|
| 74 |
/*** <<< FUNC-DECLS [PDU] >>> ***/ |
| 75 |
|
| 76 |
extern asn_TYPE_descriptor_t asn_DEF_PDU; |
| 77 |
|
| 78 |
/*** <<< STAT-DEFS [PDU] >>> ***/ |
| 79 |
|
| 80 |
static asn_TYPE_member_t asn_MBR_PDU_1[] = { |
| 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 */ |
| 84 |
.type = &asn_DEF_Sequence, |
| 85 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 86 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 87 |
.default_value = 0, |
| 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 */ |
| 93 |
.type = &asn_DEF_Set, |
| 94 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 95 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 96 |
.default_value = 0, |
| 97 |
.name = "set" |
| 98 |
}, |
| 99 |
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf), |
| 100 |
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 101 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 102 |
.type = &asn_DEF_SequenceOf, |
| 103 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 104 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 105 |
.default_value = 0, |
| 106 |
.name = "sequenceOf" |
| 107 |
}, |
| 108 |
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet), |
| 109 |
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 110 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 111 |
.type = &asn_DEF_ExtensibleSet, |
| 112 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 113 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 114 |
.default_value = 0, |
| 115 |
.name = "extensibleSet" |
| 116 |
}, |
| 117 |
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence), |
| 118 |
.tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 119 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 120 |
.type = &asn_DEF_ExtensibleSequence, |
| 121 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 122 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 123 |
.default_value = 0, |
| 124 |
.name = "extensibleSequence" |
| 125 |
}, |
| 126 |
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence2), |
| 127 |
.tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
| 128 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 129 |
.type = &asn_DEF_ExtensibleSequence2, |
| 130 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 131 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 132 |
.default_value = 0, |
| 133 |
.name = "extensibleSequence2" |
| 134 |
}, |
| 135 |
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL), |
| 136 |
.tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
| 137 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 138 |
.type = &asn_DEF_SetOfNULL, |
| 139 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 140 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 141 |
.default_value = 0, |
| 142 |
.name = "setOfNULL" |
| 143 |
}, |
| 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 */ |
| 149 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 150 |
.default_value = 0, |
| 151 |
.name = "setOfREAL" |
| 152 |
}, |
| 153 |
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums), |
| 154 |
.tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)), |
| 155 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 156 |
.type = &asn_DEF_SetOfEnums, |
| 157 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 158 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 159 |
.default_value = 0, |
| 160 |
.name = "setOfEnums" |
| 161 |
}, |
| 162 |
{ ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfNULL), |
| 163 |
.tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)), |
| 164 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 165 |
.type = &asn_DEF_NamedSetOfNULL, |
| 166 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 167 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 168 |
.default_value = 0, |
| 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 */ |
| 176 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 177 |
.default_value = 0, |
| 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 */ |
| 185 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 186 |
.default_value = 0, |
| 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 */ |
| 192 |
.type = &asn_DEF_SeqOfZuka, |
| 193 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 194 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 195 |
.default_value = 0, |
| 196 |
.name = "seqOfZuka" |
| 197 |
}, |
| 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 */ |
| 203 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 204 |
.default_value = 0, |
| 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 */ |
| 212 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 213 |
.default_value = 0, |
| 214 |
.name = "namedSetOfChoice" |
| 215 |
}, |
| 216 |
}; |
| 217 |
static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = { |
| 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 */ |
| 233 |
}; |
| 234 |
static asn_CHOICE_specifics_t asn_SPC_PDU_specs_1 = { |
| 235 |
sizeof(struct PDU), |
| 236 |
offsetof(struct PDU, _asn_ctx), |
| 237 |
offsetof(struct PDU, present), |
| 238 |
sizeof(((struct PDU *)0)->present), |
| 239 |
asn_MAP_PDU_tag2el_1, |
| 240 |
15, /* Count of tags in the map */ |
| 241 |
.canonical_order = 0, |
| 242 |
.ext_start = 15 /* Extensions start */ |
| 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, |
| 254 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 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) */ |
| 260 |
0, /* No PER visible constraints */ |
| 261 |
asn_MBR_PDU_1, |
| 262 |
15, /* Elements count */ |
| 263 |
&asn_SPC_PDU_specs_1 /* Additional specs */ |
| 264 |
}; |
| 265 |
|
| 266 |
|
| 267 |
/*** <<< INCLUDES [Sequence] >>> ***/ |
| 268 |
|
| 269 |
#include <INTEGER.h> |
| 270 |
#include <BIT_STRING.h> |
| 271 |
#include <UTF8String.h> |
| 272 |
#include <constr_SEQUENCE.h> |
| 273 |
|
| 274 |
/*** <<< FWD-DECLS [Sequence] >>> ***/ |
| 275 |
|
| 276 |
struct Sequence; |
| 277 |
|
| 278 |
/*** <<< TYPE-DECLS [Sequence] >>> ***/ |
| 279 |
|
| 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 |
|
| 290 |
/*** <<< FUNC-DECLS [Sequence] >>> ***/ |
| 291 |
|
| 292 |
extern asn_TYPE_descriptor_t asn_DEF_Sequence; |
| 293 |
|
| 294 |
/*** <<< POST-INCLUDE [Sequence] >>> ***/ |
| 295 |
|
| 296 |
#include "Sequence.h" |
| 297 |
|
| 298 |
/*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 299 |
|
| 300 |
static asn_TYPE_member_t asn_MBR_Sequence_1[] = { |
| 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 */ |
| 304 |
.type = &asn_DEF_INTEGER, |
| 305 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 306 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 307 |
.default_value = 0, |
| 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 */ |
| 313 |
.type = &asn_DEF_Sequence, |
| 314 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 315 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 316 |
.default_value = 0, |
| 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 */ |
| 322 |
.type = &asn_DEF_BIT_STRING, |
| 323 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 324 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 325 |
.default_value = 0, |
| 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 */ |
| 331 |
.type = &asn_DEF_UTF8String, |
| 332 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 333 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 334 |
.default_value = 0, |
| 335 |
.name = "string" |
| 336 |
}, |
| 337 |
}; |
| 338 |
static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = { |
| 339 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 340 |
}; |
| 341 |
static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = { |
| 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 */ |
| 346 |
}; |
| 347 |
static asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = { |
| 348 |
sizeof(struct Sequence), |
| 349 |
offsetof(struct Sequence, _asn_ctx), |
| 350 |
asn_MAP_Sequence_tag2el_1, |
| 351 |
4, /* Count of tags in the map */ |
| 352 |
0, 0, 0, /* Optional elements (not needed) */ |
| 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, |
| 366 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 367 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 375 |
asn_MBR_Sequence_1, |
| 376 |
4, /* Elements count */ |
| 377 |
&asn_SPC_Sequence_specs_1 /* Additional specs */ |
| 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; |
| 397 |
|
| 398 |
/*** <<< TYPE-DECLS [Set] >>> ***/ |
| 399 |
|
| 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 |
|
| 412 |
/*** <<< FUNC-DECLS [Set] >>> ***/ |
| 413 |
|
| 414 |
extern asn_TYPE_descriptor_t asn_DEF_Set; |
| 415 |
|
| 416 |
/*** <<< STAT-DEFS [Set] >>> ***/ |
| 417 |
|
| 418 |
static asn_TYPE_member_t asn_MBR_Set_1[] = { |
| 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 */ |
| 422 |
.type = &asn_DEF_RELATIVE_OID, |
| 423 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 424 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 425 |
.default_value = 0, |
| 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 */ |
| 431 |
.type = &asn_DEF_OCTET_STRING, |
| 432 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 433 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 434 |
.default_value = 0, |
| 435 |
.name = "opaque" |
| 436 |
}, |
| 437 |
}; |
| 438 |
static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = { |
| 439 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 440 |
}; |
| 441 |
static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = { |
| 442 |
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid */ |
| 443 |
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque */ |
| 444 |
}; |
| 445 |
static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 446 |
(1 << 7) | (0 << 6) |
| 447 |
}; |
| 448 |
static asn_SET_specifics_t asn_SPC_Set_specs_1 = { |
| 449 |
sizeof(struct Set), |
| 450 |
offsetof(struct Set, _asn_ctx), |
| 451 |
offsetof(struct Set, _presence_map), |
| 452 |
asn_MAP_Set_tag2el_1, |
| 453 |
2, /* Count of tags in the map */ |
| 454 |
asn_MAP_Set_tag2el_1, /* Same as above */ |
| 455 |
2, /* Count of tags in the CXER map */ |
| 456 |
0, /* Whether extensible */ |
| 457 |
(unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */ |
| 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, |
| 469 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 470 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 478 |
asn_MBR_Set_1, |
| 479 |
2, /* Elements count */ |
| 480 |
&asn_SPC_Set_specs_1 /* Additional specs */ |
| 481 |
}; |
| 482 |
|
| 483 |
|
| 484 |
/*** <<< INCLUDES [ExtensibleSet] >>> ***/ |
| 485 |
|
| 486 |
#include <UTF8String.h> |
| 487 |
#include <ENUMERATED.h> |
| 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 */ |
| 498 |
ExtensibleSet_PR_enum, /* Member enum is present */ |
| 499 |
} ExtensibleSet_PR; |
| 500 |
typedef enum Enum { |
| 501 |
enum_b = 0, |
| 502 |
enum_a = 1 |
| 503 |
} e_enum; |
| 504 |
|
| 505 |
/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/ |
| 506 |
|
| 507 |
typedef struct ExtensibleSet { |
| 508 |
UTF8String_t *string /* OPTIONAL */; |
| 509 |
/* |
| 510 |
* This type is extensible, |
| 511 |
* possible extensions are below. |
| 512 |
*/ |
| 513 |
ENUMERATED_t *Enum; |
| 514 |
|
| 515 |
/* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */ |
| 516 |
unsigned int _presence_map |
| 517 |
[((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 518 |
|
| 519 |
/* Context for parsing across buffer boundaries */ |
| 520 |
asn_struct_ctx_t _asn_ctx; |
| 521 |
} ExtensibleSet_t; |
| 522 |
|
| 523 |
/*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/ |
| 524 |
|
| 525 |
/* extern asn_TYPE_descriptor_t asn_DEF_enum_4; // (Use -fall-defs-global to expose) */ |
| 526 |
extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet; |
| 527 |
|
| 528 |
/*** <<< CODE [ExtensibleSet] >>> ***/ |
| 529 |
|
| 530 |
static int |
| 531 |
enum_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 532 |
asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 533 |
/* Replace with underlying type checker */ |
| 534 |
td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
| 535 |
return td->check_constraints(td, sptr, ctfailcb, app_key); |
| 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; |
| 546 |
td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
| 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; |
| 551 |
td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder; |
| 552 |
td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder; |
| 553 |
if(!td->per_constraints) |
| 554 |
td->per_constraints = asn_DEF_ENUMERATED.per_constraints; |
| 555 |
td->elements = asn_DEF_ENUMERATED.elements; |
| 556 |
td->elements_count = asn_DEF_ENUMERATED.elements_count; |
| 557 |
/* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */ |
| 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, |
| 576 |
void **structure, const void *bufptr, size_t size, int tag_mode) { |
| 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, |
| 591 |
void **structure, const char *opt_mname, const void *bufptr, size_t size) { |
| 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 |
|
| 605 |
/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/ |
| 606 |
|
| 607 |
static const asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = { |
| 608 |
{ 0, 1, "b" }, |
| 609 |
{ 1, 1, "a" } |
| 610 |
}; |
| 611 |
static const unsigned int asn_MAP_enum_enum2value_4[] = { |
| 612 |
1, /* a(1) */ |
| 613 |
0 /* b(0) */ |
| 614 |
}; |
| 615 |
static const asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = { |
| 616 |
asn_MAP_enum_value2enum_4, /* "tag" => N; sorted by tag */ |
| 617 |
asn_MAP_enum_enum2value_4, /* N => "tag"; sorted by N */ |
| 618 |
2, /* Number of elements in the maps */ |
| 619 |
0, /* Enumeration is not extensible */ |
| 620 |
1, /* Strict enumeration */ |
| 621 |
0, /* Native long size */ |
| 622 |
0 |
| 623 |
}; |
| 624 |
static const ber_tlv_tag_t asn_DEF_enum_tags_4[] = { |
| 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, |
| 639 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 640 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 648 |
0, 0, /* Defined elsewhere */ |
| 649 |
&asn_SPC_enum_specs_4 /* Additional specs */ |
| 650 |
}; |
| 651 |
|
| 652 |
static asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = { |
| 653 |
{ ATF_POINTER, 2, offsetof(struct ExtensibleSet, string), |
| 654 |
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 655 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 656 |
.type = &asn_DEF_UTF8String, |
| 657 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 658 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 659 |
.default_value = 0, |
| 660 |
.name = "string" |
| 661 |
}, |
| 662 |
{ ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum), |
| 663 |
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 664 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 665 |
.type = &asn_DEF_enum_4, |
| 666 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 667 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 668 |
.default_value = 0, |
| 669 |
.name = "enum" |
| 670 |
}, |
| 671 |
}; |
| 672 |
static const ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = { |
| 673 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 674 |
}; |
| 675 |
static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = { |
| 676 |
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */ |
| 677 |
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* enum */ |
| 678 |
}; |
| 679 |
static const uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 680 |
(0 << 7) | (0 << 6) |
| 681 |
}; |
| 682 |
static asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = { |
| 683 |
sizeof(struct ExtensibleSet), |
| 684 |
offsetof(struct ExtensibleSet, _asn_ctx), |
| 685 |
offsetof(struct ExtensibleSet, _presence_map), |
| 686 |
asn_MAP_ExtensibleSet_tag2el_1, |
| 687 |
2, /* Count of tags in the map */ |
| 688 |
asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */ |
| 689 |
2, /* Count of tags in the CXER map */ |
| 690 |
1, /* Whether extensible */ |
| 691 |
(unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */ |
| 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, |
| 703 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 704 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 712 |
asn_MBR_ExtensibleSet_1, |
| 713 |
2, /* Elements count */ |
| 714 |
&asn_SPC_ExtensibleSet_specs_1 /* Additional specs */ |
| 715 |
}; |
| 716 |
|
| 717 |
|
| 718 |
/*** <<< INCLUDES [ExtensibleSequence] >>> ***/ |
| 719 |
|
| 720 |
#include <UTF8String.h> |
| 721 |
#include <INTEGER.h> |
| 722 |
#include <GeneralizedTime.h> |
| 723 |
#include <constr_SEQUENCE.h> |
| 724 |
|
| 725 |
/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/ |
| 726 |
|
| 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 */; |
| 734 |
GeneralizedTime_t *gtime; |
| 735 |
|
| 736 |
/* Context for parsing across buffer boundaries */ |
| 737 |
asn_struct_ctx_t _asn_ctx; |
| 738 |
} ExtensibleSequence_t; |
| 739 |
|
| 740 |
/*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/ |
| 741 |
|
| 742 |
extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence; |
| 743 |
|
| 744 |
/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/ |
| 745 |
|
| 746 |
static asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = { |
| 747 |
{ ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string), |
| 748 |
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 749 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 750 |
.type = &asn_DEF_UTF8String, |
| 751 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 752 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 753 |
.default_value = 0, |
| 754 |
.name = "string" |
| 755 |
}, |
| 756 |
{ ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer), |
| 757 |
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 758 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 759 |
.type = &asn_DEF_INTEGER, |
| 760 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 761 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 762 |
.default_value = 0, |
| 763 |
.name = "integer" |
| 764 |
}, |
| 765 |
{ ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime), |
| 766 |
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 767 |
.tag_mode = -1, /* IMPLICIT tag at current level */ |
| 768 |
.type = &asn_DEF_GeneralizedTime, |
| 769 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 770 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 771 |
.default_value = 0, |
| 772 |
.name = "gtime" |
| 773 |
}, |
| 774 |
}; |
| 775 |
static const ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = { |
| 776 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 777 |
}; |
| 778 |
static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = { |
| 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 */ |
| 782 |
}; |
| 783 |
static asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1 = { |
| 784 |
sizeof(struct ExtensibleSequence), |
| 785 |
offsetof(struct ExtensibleSequence, _asn_ctx), |
| 786 |
asn_MAP_ExtensibleSequence_tag2el_1, |
| 787 |
3, /* Count of tags in the map */ |
| 788 |
0, 0, 0, /* Optional elements (not needed) */ |
| 789 |
0, /* Start extensions */ |
| 790 |
4 /* Stop extensions */ |
| 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, |
| 802 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 803 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 811 |
asn_MBR_ExtensibleSequence_1, |
| 812 |
3, /* Elements count */ |
| 813 |
&asn_SPC_ExtensibleSequence_specs_1 /* Additional specs */ |
| 814 |
}; |
| 815 |
|
| 816 |
|
| 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 */ |
| 847 |
.type = &asn_DEF_UTF8String, |
| 848 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 849 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 850 |
.default_value = 0, |
| 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 */ |
| 856 |
.type = &asn_DEF_INTEGER, |
| 857 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 858 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 859 |
.default_value = 0, |
| 860 |
.name = "integer" |
| 861 |
}, |
| 862 |
}; |
| 863 |
static const ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = { |
| 864 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 865 |
}; |
| 866 |
static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = { |
| 867 |
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */ |
| 868 |
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer */ |
| 869 |
}; |
| 870 |
static asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1 = { |
| 871 |
sizeof(struct ExtensibleSequence2), |
| 872 |
offsetof(struct ExtensibleSequence2, _asn_ctx), |
| 873 |
asn_MAP_ExtensibleSequence2_tag2el_1, |
| 874 |
2, /* Count of tags in the map */ |
| 875 |
0, 0, 0, /* Optional elements (not needed) */ |
| 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, |
| 889 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 890 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 898 |
asn_MBR_ExtensibleSequence2_1, |
| 899 |
2, /* Elements count */ |
| 900 |
&asn_SPC_ExtensibleSequence2_specs_1 /* Additional specs */ |
| 901 |
}; |
| 902 |
|
| 903 |
|
| 904 |
/*** <<< INCLUDES [SetOfNULL] >>> ***/ |
| 905 |
|
| 906 |
#include <NULL.h> |
| 907 |
#include <asn_SET_OF.h> |
| 908 |
#include <constr_SET_OF.h> |
| 909 |
|
| 910 |
/*** <<< TYPE-DECLS [SetOfNULL] >>> ***/ |
| 911 |
|
| 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 |
|
| 919 |
/*** <<< FUNC-DECLS [SetOfNULL] >>> ***/ |
| 920 |
|
| 921 |
extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL; |
| 922 |
|
| 923 |
/*** <<< STAT-DEFS [SetOfNULL] >>> ***/ |
| 924 |
|
| 925 |
static asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = { |
| 926 |
{ ATF_POINTER, 0, 0, |
| 927 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 928 |
.tag_mode = 0, |
| 929 |
.type = &asn_DEF_NULL, |
| 930 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 931 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 932 |
.default_value = 0, |
| 933 |
.name = "" |
| 934 |
}, |
| 935 |
}; |
| 936 |
static const ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = { |
| 937 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 938 |
}; |
| 939 |
static asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1 = { |
| 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, |
| 954 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 955 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 963 |
asn_MBR_SetOfNULL_1, |
| 964 |
1, /* Single element */ |
| 965 |
&asn_SPC_SetOfNULL_specs_1 /* Additional specs */ |
| 966 |
}; |
| 967 |
|
| 968 |
|
| 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 */ |
| 996 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 997 |
.default_value = 0, |
| 998 |
.name = "" |
| 999 |
}, |
| 1000 |
}; |
| 1001 |
static const ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = { |
| 1002 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1003 |
}; |
| 1004 |
static asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1 = { |
| 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, |
| 1019 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1020 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1028 |
asn_MBR_SetOfREAL_1, |
| 1029 |
1, /* Single element */ |
| 1030 |
&asn_SPC_SetOfREAL_specs_1 /* Additional specs */ |
| 1031 |
}; |
| 1032 |
|
| 1033 |
|
| 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 |
|
| 1042 |
typedef enum Member { |
| 1043 |
Member_one = 0, |
| 1044 |
Member_oneMore = 1 |
| 1045 |
} e_Member; |
| 1046 |
|
| 1047 |
/*** <<< TYPE-DECLS [SetOfEnums] >>> ***/ |
| 1048 |
|
| 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 |
|
| 1056 |
/*** <<< FUNC-DECLS [SetOfEnums] >>> ***/ |
| 1057 |
|
| 1058 |
/* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */ |
| 1059 |
extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums; |
| 1060 |
|
| 1061 |
/*** <<< CODE [SetOfEnums] >>> ***/ |
| 1062 |
|
| 1063 |
static int |
| 1064 |
Member_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 1065 |
asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 1066 |
/* Replace with underlying type checker */ |
| 1067 |
td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
| 1068 |
return td->check_constraints(td, sptr, ctfailcb, app_key); |
| 1069 |
} |
| 1070 |
|
| 1071 |
/* |
| 1072 |
* This type is implemented using ENUMERATED, |
| 1073 |
* so here we adjust the DEF accordingly. |
| 1074 |
*/ |
| 1075 |
static void |
| 1076 |
Member_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 1077 |
td->free_struct = asn_DEF_ENUMERATED.free_struct; |
| 1078 |
td->print_struct = asn_DEF_ENUMERATED.print_struct; |
| 1079 |
td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
| 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; |
| 1084 |
td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder; |
| 1085 |
td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder; |
| 1086 |
if(!td->per_constraints) |
| 1087 |
td->per_constraints = asn_DEF_ENUMERATED.per_constraints; |
| 1088 |
td->elements = asn_DEF_ENUMERATED.elements; |
| 1089 |
td->elements_count = asn_DEF_ENUMERATED.elements_count; |
| 1090 |
/* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */ |
| 1091 |
} |
| 1092 |
|
| 1093 |
static void |
| 1094 |
Member_2_free(asn_TYPE_descriptor_t *td, |
| 1095 |
void *struct_ptr, int contents_only) { |
| 1096 |
Member_2_inherit_TYPE_descriptor(td); |
| 1097 |
td->free_struct(td, struct_ptr, contents_only); |
| 1098 |
} |
| 1099 |
|
| 1100 |
static int |
| 1101 |
Member_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
| 1102 |
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 1103 |
Member_2_inherit_TYPE_descriptor(td); |
| 1104 |
return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 1105 |
} |
| 1106 |
|
| 1107 |
static asn_dec_rval_t |
| 1108 |
Member_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 1109 |
void **structure, const void *bufptr, size_t size, int tag_mode) { |
| 1110 |
Member_2_inherit_TYPE_descriptor(td); |
| 1111 |
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
| 1112 |
} |
| 1113 |
|
| 1114 |
static asn_enc_rval_t |
| 1115 |
Member_2_encode_der(asn_TYPE_descriptor_t *td, |
| 1116 |
void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 1117 |
asn_app_consume_bytes_f *cb, void *app_key) { |
| 1118 |
Member_2_inherit_TYPE_descriptor(td); |
| 1119 |
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 1120 |
} |
| 1121 |
|
| 1122 |
static asn_dec_rval_t |
| 1123 |
Member_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 1124 |
void **structure, const char *opt_mname, const void *bufptr, size_t size) { |
| 1125 |
Member_2_inherit_TYPE_descriptor(td); |
| 1126 |
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); |
| 1127 |
} |
| 1128 |
|
| 1129 |
static asn_enc_rval_t |
| 1130 |
Member_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
| 1131 |
int ilevel, enum xer_encoder_flags_e flags, |
| 1132 |
asn_app_consume_bytes_f *cb, void *app_key) { |
| 1133 |
Member_2_inherit_TYPE_descriptor(td); |
| 1134 |
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
| 1135 |
} |
| 1136 |
|
| 1137 |
|
| 1138 |
/*** <<< STAT-DEFS [SetOfEnums] >>> ***/ |
| 1139 |
|
| 1140 |
static const asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = { |
| 1141 |
{ 0, 3, "one" }, |
| 1142 |
{ 1, 7, "oneMore" } |
| 1143 |
}; |
| 1144 |
static const unsigned int asn_MAP_Member_enum2value_2[] = { |
| 1145 |
0, /* one(0) */ |
| 1146 |
1 /* oneMore(1) */ |
| 1147 |
}; |
| 1148 |
static const asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = { |
| 1149 |
asn_MAP_Member_value2enum_2, /* "tag" => N; sorted by tag */ |
| 1150 |
asn_MAP_Member_enum2value_2, /* N => "tag"; sorted by N */ |
| 1151 |
2, /* Number of elements in the maps */ |
| 1152 |
0, /* Enumeration is not extensible */ |
| 1153 |
1, /* Strict enumeration */ |
| 1154 |
0, /* Native long size */ |
| 1155 |
0 |
| 1156 |
}; |
| 1157 |
static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { |
| 1158 |
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 1159 |
}; |
| 1160 |
static /* Use -fall-defs-global to expose */ |
| 1161 |
asn_TYPE_descriptor_t asn_DEF_Member_2 = { |
| 1162 |
"ENUMERATED", |
| 1163 |
"ENUMERATED", |
| 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, |
| 1171 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1172 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1180 |
0, 0, /* Defined elsewhere */ |
| 1181 |
&asn_SPC_Member_specs_2 /* Additional specs */ |
| 1182 |
}; |
| 1183 |
|
| 1184 |
static asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = { |
| 1185 |
{ ATF_POINTER, 0, 0, |
| 1186 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), |
| 1187 |
.tag_mode = 0, |
| 1188 |
.type = &asn_DEF_Member_2, |
| 1189 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 1190 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1191 |
.default_value = 0, |
| 1192 |
.name = "" |
| 1193 |
}, |
| 1194 |
}; |
| 1195 |
static const ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = { |
| 1196 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1197 |
}; |
| 1198 |
static asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1 = { |
| 1199 |
sizeof(struct SetOfEnums), |
| 1200 |
offsetof(struct SetOfEnums, _asn_ctx), |
| 1201 |
1, /* XER encoding is XMLValueList */ |
| 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, |
| 1213 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1214 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1222 |
asn_MBR_SetOfEnums_1, |
| 1223 |
1, /* Single element */ |
| 1224 |
&asn_SPC_SetOfEnums_specs_1 /* Additional specs */ |
| 1225 |
}; |
| 1226 |
|
| 1227 |
|
| 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 */ |
| 1255 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1256 |
.default_value = 0, |
| 1257 |
.name = "y" |
| 1258 |
}, |
| 1259 |
}; |
| 1260 |
static const ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = { |
| 1261 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1262 |
}; |
| 1263 |
static asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1 = { |
| 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, |
| 1278 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1279 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1287 |
asn_MBR_NamedSetOfNULL_1, |
| 1288 |
1, /* Single element */ |
| 1289 |
&asn_SPC_NamedSetOfNULL_specs_1 /* Additional specs */ |
| 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 */ |
| 1320 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1321 |
.default_value = 0, |
| 1322 |
.name = "name" |
| 1323 |
}, |
| 1324 |
}; |
| 1325 |
static const ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = { |
| 1326 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1327 |
}; |
| 1328 |
static asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1 = { |
| 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, |
| 1343 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1344 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1352 |
asn_MBR_NamedSetOfREAL_1, |
| 1353 |
1, /* Single element */ |
| 1354 |
&asn_SPC_NamedSetOfREAL_specs_1 /* Additional specs */ |
| 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 |
| 1369 |
} e_name; |
| 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, |
| 1389 |
asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 1390 |
/* Replace with underlying type checker */ |
| 1391 |
td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
| 1392 |
return td->check_constraints(td, sptr, ctfailcb, app_key); |
| 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; |
| 1403 |
td->check_constraints = asn_DEF_ENUMERATED.check_constraints; |
| 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; |
| 1408 |
td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder; |
| 1409 |
td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder; |
| 1410 |
if(!td->per_constraints) |
| 1411 |
td->per_constraints = asn_DEF_ENUMERATED.per_constraints; |
| 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 |
|
| 1464 |
static const asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = { |
| 1465 |
{ 0, 3, "one" }, |
| 1466 |
{ 1, 7, "oneMore" } |
| 1467 |
}; |
| 1468 |
static const unsigned int asn_MAP_name_enum2value_2[] = { |
| 1469 |
0, /* one(0) */ |
| 1470 |
1 /* oneMore(1) */ |
| 1471 |
}; |
| 1472 |
static const asn_INTEGER_specifics_t asn_SPC_name_specs_2 = { |
| 1473 |
asn_MAP_name_value2enum_2, /* "tag" => N; sorted by tag */ |
| 1474 |
asn_MAP_name_enum2value_2, /* N => "tag"; sorted by N */ |
| 1475 |
2, /* Number of elements in the maps */ |
| 1476 |
0, /* Enumeration is not extensible */ |
| 1477 |
1, /* Strict enumeration */ |
| 1478 |
0, /* Native long size */ |
| 1479 |
0 |
| 1480 |
}; |
| 1481 |
static const ber_tlv_tag_t asn_DEF_name_tags_2[] = { |
| 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 = { |
| 1486 |
"ENUMERATED", |
| 1487 |
"ENUMERATED", |
| 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, |
| 1495 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1496 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1504 |
0, 0, /* Defined elsewhere */ |
| 1505 |
&asn_SPC_name_specs_2 /* Additional specs */ |
| 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 */ |
| 1514 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1515 |
.default_value = 0, |
| 1516 |
.name = "name" |
| 1517 |
}, |
| 1518 |
}; |
| 1519 |
static const ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = { |
| 1520 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1521 |
}; |
| 1522 |
static asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1 = { |
| 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, |
| 1537 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1538 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1546 |
asn_MBR_NamedSetOfEnums_1, |
| 1547 |
1, /* Single element */ |
| 1548 |
&asn_SPC_NamedSetOfEnums_specs_1 /* Additional specs */ |
| 1549 |
}; |
| 1550 |
|
| 1551 |
|
| 1552 |
/*** <<< INCLUDES [SequenceOf] >>> ***/ |
| 1553 |
|
| 1554 |
#include <INTEGER.h> |
| 1555 |
#include <asn_SEQUENCE_OF.h> |
| 1556 |
#include <constr_SEQUENCE_OF.h> |
| 1557 |
|
| 1558 |
/*** <<< TYPE-DECLS [SequenceOf] >>> ***/ |
| 1559 |
|
| 1560 |
typedef struct SequenceOf { |
| 1561 |
A_SEQUENCE_OF(INTEGER_t) list; |
| 1562 |
|
| 1563 |
/* Context for parsing across buffer boundaries */ |
| 1564 |
asn_struct_ctx_t _asn_ctx; |
| 1565 |
} SequenceOf_t; |
| 1566 |
|
| 1567 |
/*** <<< FUNC-DECLS [SequenceOf] >>> ***/ |
| 1568 |
|
| 1569 |
extern asn_TYPE_descriptor_t asn_DEF_SequenceOf; |
| 1570 |
|
| 1571 |
/*** <<< STAT-DEFS [SequenceOf] >>> ***/ |
| 1572 |
|
| 1573 |
static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = { |
| 1574 |
{ ATF_POINTER, 0, 0, |
| 1575 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 1576 |
.tag_mode = 0, |
| 1577 |
.type = &asn_DEF_INTEGER, |
| 1578 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 1579 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1580 |
.default_value = 0, |
| 1581 |
.name = "id" |
| 1582 |
}, |
| 1583 |
}; |
| 1584 |
static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = { |
| 1585 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1586 |
}; |
| 1587 |
static asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = { |
| 1588 |
sizeof(struct SequenceOf), |
| 1589 |
offsetof(struct SequenceOf, _asn_ctx), |
| 1590 |
0, /* XER encoding is XMLDelimitedItemList */ |
| 1591 |
}; |
| 1592 |
asn_TYPE_descriptor_t asn_DEF_SequenceOf = { |
| 1593 |
"SequenceOf", |
| 1594 |
"SequenceOf", |
| 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, |
| 1602 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1603 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1611 |
asn_MBR_SequenceOf_1, |
| 1612 |
1, /* Single element */ |
| 1613 |
&asn_SPC_SequenceOf_specs_1 /* Additional specs */ |
| 1614 |
}; |
| 1615 |
|
| 1616 |
|
| 1617 |
/*** <<< INCLUDES [SeqOfZuka] >>> ***/ |
| 1618 |
|
| 1619 |
#include <NULL.h> |
| 1620 |
#include <asn_SEQUENCE_OF.h> |
| 1621 |
#include <constr_SEQUENCE_OF.h> |
| 1622 |
|
| 1623 |
/*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/ |
| 1624 |
|
| 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 |
|
| 1632 |
/*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/ |
| 1633 |
|
| 1634 |
extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka; |
| 1635 |
|
| 1636 |
/*** <<< STAT-DEFS [SeqOfZuka] >>> ***/ |
| 1637 |
|
| 1638 |
static asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = { |
| 1639 |
{ ATF_POINTER, 0, 0, |
| 1640 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), |
| 1641 |
.tag_mode = 0, |
| 1642 |
.type = &asn_DEF_NULL, |
| 1643 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 1644 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1645 |
.default_value = 0, |
| 1646 |
.name = "zuka" |
| 1647 |
}, |
| 1648 |
}; |
| 1649 |
static const ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = { |
| 1650 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1651 |
}; |
| 1652 |
static asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1 = { |
| 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, |
| 1667 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1668 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1676 |
asn_MBR_SeqOfZuka_1, |
| 1677 |
1, /* Single element */ |
| 1678 |
&asn_SPC_SeqOfZuka_specs_1 /* Additional specs */ |
| 1679 |
}; |
| 1680 |
|
| 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 |
|
| 1706 |
#include "SimpleChoice.h" |
| 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 */ |
| 1716 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1717 |
.default_value = 0, |
| 1718 |
.name = "" |
| 1719 |
}, |
| 1720 |
}; |
| 1721 |
static const ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = { |
| 1722 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1723 |
}; |
| 1724 |
static asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1 = { |
| 1725 |
sizeof(struct SetOfChoice), |
| 1726 |
offsetof(struct SetOfChoice, _asn_ctx), |
| 1727 |
2, /* XER encoding is XMLValueList */ |
| 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, |
| 1739 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1740 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1748 |
asn_MBR_SetOfChoice_1, |
| 1749 |
1, /* Single element */ |
| 1750 |
&asn_SPC_SetOfChoice_specs_1 /* Additional specs */ |
| 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 |
|
| 1778 |
#include "SimpleChoice.h" |
| 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 */ |
| 1788 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1789 |
.default_value = 0, |
| 1790 |
.name = "whatever" |
| 1791 |
}, |
| 1792 |
}; |
| 1793 |
static const ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = { |
| 1794 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1795 |
}; |
| 1796 |
static asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1 = { |
| 1797 |
sizeof(struct NamedSetOfChoice), |
| 1798 |
offsetof(struct NamedSetOfChoice, _asn_ctx), |
| 1799 |
2, /* XER encoding is XMLValueList */ |
| 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, |
| 1811 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 1812 |
0, /* Use generic outmost tag fetcher */ |
| 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 */ |
| 1820 |
asn_MBR_NamedSetOfChoice_1, |
| 1821 |
1, /* Single element */ |
| 1822 |
&asn_SPC_NamedSetOfChoice_specs_1 /* Additional specs */ |
| 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, |
| 1837 |
SimpleChoice_PR_b |
| 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 */ |
| 1865 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1866 |
.default_value = 0, |
| 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 */ |
| 1874 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1875 |
.default_value = 0, |
| 1876 |
.name = "b" |
| 1877 |
}, |
| 1878 |
}; |
| 1879 |
static const asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = { |
| 1880 |
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */ |
| 1881 |
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */ |
| 1882 |
}; |
| 1883 |
static asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1 = { |
| 1884 |
sizeof(struct SimpleChoice), |
| 1885 |
offsetof(struct SimpleChoice, _asn_ctx), |
| 1886 |
offsetof(struct SimpleChoice, present), |
| 1887 |
sizeof(((struct SimpleChoice *)0)->present), |
| 1888 |
asn_MAP_SimpleChoice_tag2el_1, |
| 1889 |
2, /* Count of tags in the map */ |
| 1890 |
.canonical_order = 0, |
| 1891 |
.ext_start = -1 /* Extensions start */ |
| 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, |
| 1903 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 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) */ |
| 1909 |
0, /* No PER visible constraints */ |
| 1910 |
asn_MBR_SimpleChoice_1, |
| 1911 |
2, /* Elements count */ |
| 1912 |
&asn_SPC_SimpleChoice_specs_1 /* Additional specs */ |
| 1913 |
}; |
| 1914 |
|