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