]> git.stg.codes - stg.git/blob - libs/smux/SMUX-PDUs.c
Port to CMake, get rid of os_int.h.
[stg.git] / libs / smux / SMUX-PDUs.c
1 /*
2  * Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
3  * From ASN.1 module "SMUX"
4  *      found in "SMUX.asn1"
5  *      `asn1c -fskeletons-copy`
6  */
7
8 #include <asn_internal.h>
9
10 #include "SMUX-PDUs.h"
11
12 static asn_TYPE_member_t asn_MBR_SMUX_PDUs_1[] = {
13         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.open),
14                 -1 /* Ambiguous tag (CHOICE?) */,
15                 0,
16                 &asn_DEF_OpenPDU,
17                 0,      /* Defer constraints checking to the member type */
18                 0,      /* PER is not compiled, use -gen-PER */
19                 0,
20                 "open"
21                 },
22         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.close),
23                 (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
24                 0,
25                 &asn_DEF_ClosePDU,
26                 0,      /* Defer constraints checking to the member type */
27                 0,      /* PER is not compiled, use -gen-PER */
28                 0,
29                 "close"
30                 },
31         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.registerRequest),
32                 (ASN_TAG_CLASS_APPLICATION | (2 << 2)),
33                 0,
34                 &asn_DEF_RReqPDU,
35                 0,      /* Defer constraints checking to the member type */
36                 0,      /* PER is not compiled, use -gen-PER */
37                 0,
38                 "registerRequest"
39                 },
40         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.registerResponse),
41                 (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
42                 0,
43                 &asn_DEF_RRspPDU,
44                 0,      /* Defer constraints checking to the member type */
45                 0,      /* PER is not compiled, use -gen-PER */
46                 0,
47                 "registerResponse"
48                 },
49         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.pdus),
50                 -1 /* Ambiguous tag (CHOICE?) */,
51                 0,
52                 &asn_DEF_PDUs,
53                 0,      /* Defer constraints checking to the member type */
54                 0,      /* PER is not compiled, use -gen-PER */
55                 0,
56                 "pdus"
57                 },
58         { ATF_NOFLAGS, 0, offsetof(struct SMUX_PDUs, choice.commitOrRollback),
59                 (ASN_TAG_CLASS_APPLICATION | (4 << 2)),
60                 0,
61                 &asn_DEF_SOutPDU,
62                 0,      /* Defer constraints checking to the member type */
63                 0,      /* PER is not compiled, use -gen-PER */
64                 0,
65                 "commitOrRollback"
66                 },
67 };
68 static asn_TYPE_tag2member_t asn_MAP_SMUX_PDUs_tag2el_1[] = {
69     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 }, /* simple at 52 */
70     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* close at 27 */
71     { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 2, 0, 0 }, /* registerRequest at 30 */
72     { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 3, 0, 0 }, /* registerResponse at 33 */
73     { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 5, 0, 0 }, /* commitOrRollback at 41 */
74     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 4, 0, 0 }, /* get-request at 34 */
75     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 4, 0, 0 }, /* get-next-request at 37 */
76     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 4, 0, 0 }, /* get-response at 40 */
77     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 4, 0, 0 }, /* set-request at 43 */
78     { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* trap at 47 */
79 };
80 static asn_CHOICE_specifics_t asn_SPC_SMUX_PDUs_specs_1 = {
81         sizeof(struct SMUX_PDUs),
82         offsetof(struct SMUX_PDUs, _asn_ctx),
83         offsetof(struct SMUX_PDUs, present),
84         sizeof(((struct SMUX_PDUs *)0)->present),
85         asn_MAP_SMUX_PDUs_tag2el_1,
86         10,     /* Count of tags in the map */
87         0,
88         -1      /* Extensions start */
89 };
90 asn_TYPE_descriptor_t asn_DEF_SMUX_PDUs = {
91         "SMUX-PDUs",
92         "SMUX-PDUs",
93         CHOICE_free,
94         CHOICE_print,
95         CHOICE_constraint,
96         CHOICE_decode_ber,
97         CHOICE_encode_der,
98         CHOICE_decode_xer,
99         CHOICE_encode_xer,
100         0, 0,   /* No PER support, use "-gen-PER" to enable */
101         CHOICE_outmost_tag,
102         0,      /* No effective tags (pointer) */
103         0,      /* No effective tags (count) */
104         0,      /* No tags (pointer) */
105         0,      /* No tags (count) */
106         0,      /* No PER visible constraints */
107         asn_MBR_SMUX_PDUs_1,
108         6,      /* Elements count */
109         &asn_SPC_SMUX_PDUs_specs_1      /* Additional specs */
110 };
111