blob: 8517c0235042ddaa8418c3763eb1dbf94078a90e [file] [log] [blame]
vlm1a9a7332007-06-23 20:06:04 +00001
2/*** <<< INCLUDES [PDU] >>> ***/
3
4#include <IA5String.h>
5#include <constr_SEQUENCE.h>
6
7/*** <<< TYPE-DECLS [PDU] >>> ***/
8
9typedef struct PDU {
10 /*
11 * This type is extensible,
12 * possible extensions are below.
13 */
14 IA5String_t *str_o /* OPTIONAL */;
15 IA5String_t *str_m;
16
17 /* Context for parsing across buffer boundaries */
18 asn_struct_ctx_t _asn_ctx;
19} PDU_t;
20
21/*** <<< FUNC-DECLS [PDU] >>> ***/
22
23extern asn_TYPE_descriptor_t asn_DEF_PDU;
24
25/*** <<< STAT-DEFS [PDU] >>> ***/
26
27static asn_TYPE_member_t asn_MBR_PDU_1[] = {
28 { ATF_POINTER, 2, offsetof(struct PDU, str_o),
29 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
30 .tag_mode = -1, /* IMPLICIT tag at current level */
31 .type = &asn_DEF_IA5String,
32 .memb_constraints = 0, /* Defer constraints checking to the member type */
33 .per_constraints = 0, /* No PER visible constraints */
34 .default_value = 0,
35 .name = "str-o"
36 },
37 { ATF_POINTER, 1, offsetof(struct PDU, str_m),
38 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
39 .tag_mode = -1, /* IMPLICIT tag at current level */
40 .type = &asn_DEF_IA5String,
41 .memb_constraints = 0, /* Defer constraints checking to the member type */
42 .per_constraints = 0, /* No PER visible constraints */
43 .default_value = 0,
44 .name = "str-m"
45 },
46};
47static int asn_MAP_PDU_oms_1[] = { 0, 1 };
48static ber_tlv_tag_t asn_DEF_PDU_tags_1[] = {
49 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
50};
51static asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
52 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* str-o at 16 */
53 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* str-m at 17 */
54};
55static asn_SEQUENCE_specifics_t asn_SPC_PDU_specs_1 = {
56 sizeof(struct PDU),
57 offsetof(struct PDU, _asn_ctx),
58 asn_MAP_PDU_tag2el_1,
59 2, /* Count of tags in the map */
60 asn_MAP_PDU_oms_1, /* Optional members */
61 0, 2, /* Root/Additions */
62 -1, /* Start extensions */
63 3 /* Stop extensions */
64};
65asn_TYPE_descriptor_t asn_DEF_PDU = {
66 "PDU",
67 "PDU",
68 SEQUENCE_free,
69 SEQUENCE_print,
70 SEQUENCE_constraint,
71 SEQUENCE_decode_ber,
72 SEQUENCE_encode_der,
73 SEQUENCE_decode_xer,
74 SEQUENCE_encode_xer,
75 SEQUENCE_decode_uper,
76 SEQUENCE_encode_uper,
77 0, /* Use generic outmost tag fetcher */
78 asn_DEF_PDU_tags_1,
79 sizeof(asn_DEF_PDU_tags_1)
80 /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
81 asn_DEF_PDU_tags_1, /* Same as above */
82 sizeof(asn_DEF_PDU_tags_1)
83 /sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
84 0, /* No PER visible constraints */
85 asn_MBR_PDU_1,
86 2, /* Elements count */
87 &asn_SPC_PDU_specs_1 /* Additional specs */
88};
89