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