]> git.stg.codes - stg.git/blob - libs/smux/Message.c
Fight Optional
[stg.git] / libs / smux / Message.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 "Message.h"
9
10 static asn_TYPE_member_t asn_MBR_Message_1[] = {
11         { ATF_NOFLAGS, 0, offsetof(struct Message, version),
12                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
13                 0,
14                 &asn_DEF_INTEGER,
15                 0,      /* Defer constraints checking to the member type */
16                 0,      /* PER is not compiled, use -gen-PER */
17                 0,
18                 "version"
19                 },
20         { ATF_NOFLAGS, 0, offsetof(struct Message, community),
21                 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
22                 0,
23                 &asn_DEF_OCTET_STRING,
24                 0,      /* Defer constraints checking to the member type */
25                 0,      /* PER is not compiled, use -gen-PER */
26                 0,
27                 "community"
28                 },
29         { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct Message, data),
30                 -1 /* Ambiguous tag (ANY?) */,
31                 0,
32                 &asn_DEF_ANY,
33                 0,      /* Defer constraints checking to the member type */
34                 0,      /* PER is not compiled, use -gen-PER */
35                 0,
36                 "data"
37                 },
38 };
39 static const ber_tlv_tag_t asn_DEF_Message_tags_1[] = {
40         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
41 };
42 static const asn_TYPE_tag2member_t asn_MAP_Message_tag2el_1[] = {
43     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* version */
44     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 } /* community */
45 };
46 static asn_SEQUENCE_specifics_t asn_SPC_Message_specs_1 = {
47         sizeof(struct Message),
48         offsetof(struct Message, _asn_ctx),
49         asn_MAP_Message_tag2el_1,
50         2,      /* Count of tags in the map */
51         0, 0, 0,        /* Optional elements (not needed) */
52         -1,     /* Start extensions */
53         -1      /* Stop extensions */
54 };
55 asn_TYPE_descriptor_t asn_DEF_Message = {
56         "Message",
57         "Message",
58         SEQUENCE_free,
59         SEQUENCE_print,
60         SEQUENCE_constraint,
61         SEQUENCE_decode_ber,
62         SEQUENCE_encode_der,
63         SEQUENCE_decode_xer,
64         SEQUENCE_encode_xer,
65         0, 0,   /* No PER support, use "-gen-PER" to enable */
66         0,      /* Use generic outmost tag fetcher */
67         asn_DEF_Message_tags_1,
68         sizeof(asn_DEF_Message_tags_1)
69                 /sizeof(asn_DEF_Message_tags_1[0]), /* 1 */
70         asn_DEF_Message_tags_1, /* Same as above */
71         sizeof(asn_DEF_Message_tags_1)
72                 /sizeof(asn_DEF_Message_tags_1[0]), /* 1 */
73         0,      /* No PER visible constraints */
74         asn_MBR_Message_1,
75         3,      /* Elements count */
76         &asn_SPC_Message_specs_1        /* Additional specs */
77 };
78