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