]> git.stg.codes - stg.git/blob - libs/smux/SMUX-PDUs.c
Regen SMUX support library with more recent ASN1 compiler.
[stg.git] / libs / smux / SMUX-PDUs.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "SMUX"
4  *      found in "SMUX.asn1"
5  *      `asn1c -S /home/faust/software/asn1c/skeletons/ -fcompound-names -fwide-types`
6  */
7
8 #include "SMUX-PDUs.h"
9
10 static asn_oer_constraints_t asn_OER_type_SMUX_PDUs_constr_1 CC_NOTUSED = {
11         { 0, 0 },
12         -1};
13 static asn_per_constraints_t asn_PER_type_SMUX_PDUs_constr_1 CC_NOTUSED = {
14         { APC_CONSTRAINED,       3,  3,  0,  5 }        /* (0..5) */,
15         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
16         0, 0    /* No PER value map */
17 };
18 static asn_TYPE_member_t asn_MBR_SMUX_PDUs_1[] = {
19         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.open),
20                 -1 /* Ambiguous tag (CHOICE?) */,
21                 0,
22                 &asn_DEF_OpenPDU,
23                 0,
24                 { 0, 0, 0 },
25                 0, 0, /* No default value */
26                 "open"
27                 },
28         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.close),
29                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
30                 0,
31                 &asn_DEF_ClosePDU,
32                 0,
33                 { 0, 0, 0 },
34                 0, 0, /* No default value */
35                 "close"
36                 },
37         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.registerRequest),
38                 (ASN_TAG_CLASS_APPLICATION | (2 << 2)),
39                 0,
40                 &asn_DEF_RReqPDU,
41                 0,
42                 { 0, 0, 0 },
43                 0, 0, /* No default value */
44                 "registerRequest"
45                 },
46         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.registerResponse),
47                 (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
48                 0,
49                 &asn_DEF_RRspPDU,
50                 0,
51                 { 0, 0, 0 },
52                 0, 0, /* No default value */
53                 "registerResponse"
54                 },
55         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.pdus),
56                 -1 /* Ambiguous tag (CHOICE?) */,
57                 0,
58                 &asn_DEF_PDUs,
59                 0,
60                 { 0, 0, 0 },
61                 0, 0, /* No default value */
62                 "pdus"
63                 },
64         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.commitOrRollback),
65                 (ASN_TAG_CLASS_APPLICATION | (4 << 2)),
66                 0,
67                 &asn_DEF_SOutPDU,
68                 0,
69                 { 0, 0, 0 },
70                 0, 0, /* No default value */
71                 "commitOrRollback"
72                 },
73 };
74 static const unsigned asn_MAP_SMUX_PDUs_to_canonical_1[] = { 0, 1, 2, 3, 5, 4 };
75 static const unsigned asn_MAP_SMUX_PDUs_from_canonical_1[] = { 0, 1, 2, 3, 5, 4 };
76 static const asn_TYPE_tag2member_t asn_MAP_SMUX_PDUs_tag2el_1[] = {
77     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 }, /* simple */
78     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* close */
79     { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 2, 0, 0 }, /* registerRequest */
80     { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 3, 0, 0 }, /* registerResponse */
81     { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 5, 0, 0 }, /* commitOrRollback */
82     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 4, 0, 0 }, /* get-request */
83     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 4, 0, 0 }, /* get-next-request */
84     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 4, 0, 0 }, /* get-response */
85     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 4, 0, 0 }, /* set-request */
86     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* trap */
87 };
88 static asn_CHOICE_specifics_t asn_SPC_SMUX_PDUs_specs_1 = {
89         sizeof(struct SMUX_PDUs),
90         offsetof(struct SMUX_PDUs, _asn_ctx),
91         offsetof(struct SMUX_PDUs, present),
92         sizeof(((struct SMUX_PDUs *)0)->present),
93         asn_MAP_SMUX_PDUs_tag2el_1,
94         10,     /* Count of tags in the map */
95         asn_MAP_SMUX_PDUs_to_canonical_1,
96         asn_MAP_SMUX_PDUs_from_canonical_1,
97         -1      /* Extensions start */
98 };
99 asn_TYPE_descriptor_t asn_DEF_SMUX_PDUs = {
100         "SMUX-PDUs",
101         "SMUX-PDUs",
102         &asn_OP_CHOICE,
103         0,      /* No effective tags (pointer) */
104         0,      /* No effective tags (count) */
105         0,      /* No tags (pointer) */
106         0,      /* No tags (count) */
107         { &asn_OER_type_SMUX_PDUs_constr_1, &asn_PER_type_SMUX_PDUs_constr_1, CHOICE_constraint },
108         asn_MBR_SMUX_PDUs_1,
109         6,      /* Elements count */
110         &asn_SPC_SMUX_PDUs_specs_1      /* Additional specs */
111 };
112