]> git.stg.codes - stg.git/blob - libs/smux/VarBind.c
Regen SMUX support library with more recent ASN1 compiler.
[stg.git] / libs / smux / VarBind.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1157-SNMP"
4  *      found in "RFC1157-SNMP.asn1"
5  *      `asn1c -S /home/faust/software/asn1c/skeletons/ -fcompound-names -fwide-types`
6  */
7
8 #include "VarBind.h"
9
10 asn_TYPE_member_t asn_MBR_VarBind_1[] = {
11         { ATF_NOFLAGS, 0, offsetof(struct VarBind, name),
12                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
13                 0,
14                 &asn_DEF_ObjectName,
15                 0,
16                 { 0, 0, 0 },
17                 0, 0, /* No default value */
18                 "name"
19                 },
20         { ATF_NOFLAGS, 0, offsetof(struct VarBind, value),
21                 -1 /* Ambiguous tag (CHOICE?) */,
22                 0,
23                 &asn_DEF_ObjectSyntax,
24                 0,
25                 { 0, 0, 0 },
26                 0, 0, /* No default value */
27                 "value"
28                 },
29 };
30 static const ber_tlv_tag_t asn_DEF_VarBind_tags_1[] = {
31         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
32 };
33 static const asn_TYPE_tag2member_t asn_MAP_VarBind_tag2el_1[] = {
34     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* number */
35     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* string */
36     { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 1, 0, 0 }, /* empty */
37     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 1 }, /* name */
38     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, -1, 0 }, /* object */
39     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 1, 0, 0 }, /* internet */
40     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* counter */
41     { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 1, 0, 0 }, /* gauge */
42     { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 1, 0, 0 }, /* ticks */
43     { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 1, 0, 0 } /* arbitrary */
44 };
45 asn_SEQUENCE_specifics_t asn_SPC_VarBind_specs_1 = {
46         sizeof(struct VarBind),
47         offsetof(struct VarBind, _asn_ctx),
48         asn_MAP_VarBind_tag2el_1,
49         10,     /* Count of tags in the map */
50         0, 0, 0,        /* Optional elements (not needed) */
51         -1,     /* First extension addition */
52 };
53 asn_TYPE_descriptor_t asn_DEF_VarBind = {
54         "VarBind",
55         "VarBind",
56         &asn_OP_SEQUENCE,
57         asn_DEF_VarBind_tags_1,
58         sizeof(asn_DEF_VarBind_tags_1)
59                 /sizeof(asn_DEF_VarBind_tags_1[0]), /* 1 */
60         asn_DEF_VarBind_tags_1, /* Same as above */
61         sizeof(asn_DEF_VarBind_tags_1)
62                 /sizeof(asn_DEF_VarBind_tags_1[0]), /* 1 */
63         { 0, 0, SEQUENCE_constraint },
64         asn_MBR_VarBind_1,
65         2,      /* Elements count */
66         &asn_SPC_VarBind_specs_1        /* Additional specs */
67 };
68