]> git.stg.codes - stg.git/blob - libs/smux/ObjectSyntax.c
Update SMUX library.
[stg.git] / libs / smux / ObjectSyntax.c
1 /*
2  * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1155-SMI"
4  *      found in "RFC1155-SMI.asn1"
5  *      `asn1c -S/mnt/data/software/asn1c/skeletons -fcompound-names -fwide-types`
6  */
7
8 #include "ObjectSyntax.h"
9
10 static asn_TYPE_member_t asn_MBR_ObjectSyntax_1[] = {
11         { ATF_NOFLAGS, 0, offsetof(struct ObjectSyntax, choice.simple),
12                 -1 /* Ambiguous tag (CHOICE?) */,
13                 0,
14                 &asn_DEF_SimpleSyntax,
15                 0,      /* Defer constraints checking to the member type */
16                 0,      /* PER is not compiled, use -gen-PER */
17                 0,
18                 "simple"
19                 },
20         { ATF_NOFLAGS, 0, offsetof(struct ObjectSyntax, choice.application_wide),
21                 -1 /* Ambiguous tag (CHOICE?) */,
22                 0,
23                 &asn_DEF_ApplicationSyntax,
24                 0,      /* Defer constraints checking to the member type */
25                 0,      /* PER is not compiled, use -gen-PER */
26                 0,
27                 "application-wide"
28                 },
29 };
30 static const asn_TYPE_tag2member_t asn_MAP_ObjectSyntax_tag2el_1[] = {
31     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* number */
32     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 }, /* string */
33     { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 0, 0, 0 }, /* empty */
34     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }, /* object */
35     { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 1, 0, 0 }, /* internet */
36     { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* counter */
37     { (ASN_TAG_CLASS_APPLICATION | (2 << 2)), 1, 0, 0 }, /* gauge */
38     { (ASN_TAG_CLASS_APPLICATION | (3 << 2)), 1, 0, 0 }, /* ticks */
39     { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 1, 0, 0 } /* arbitrary */
40 };
41 static asn_CHOICE_specifics_t asn_SPC_ObjectSyntax_specs_1 = {
42         sizeof(struct ObjectSyntax),
43         offsetof(struct ObjectSyntax, _asn_ctx),
44         offsetof(struct ObjectSyntax, present),
45         sizeof(((struct ObjectSyntax *)0)->present),
46         asn_MAP_ObjectSyntax_tag2el_1,
47         9,      /* Count of tags in the map */
48         0,
49         -1      /* Extensions start */
50 };
51 asn_TYPE_descriptor_t asn_DEF_ObjectSyntax = {
52         "ObjectSyntax",
53         "ObjectSyntax",
54         CHOICE_free,
55         CHOICE_print,
56         CHOICE_constraint,
57         CHOICE_decode_ber,
58         CHOICE_encode_der,
59         CHOICE_decode_xer,
60         CHOICE_encode_xer,
61         0, 0,   /* No PER support, use "-gen-PER" to enable */
62         CHOICE_outmost_tag,
63         0,      /* No effective tags (pointer) */
64         0,      /* No effective tags (count) */
65         0,      /* No tags (pointer) */
66         0,      /* No tags (count) */
67         0,      /* No PER visible constraints */
68         asn_MBR_ObjectSyntax_1,
69         2,      /* Elements count */
70         &asn_SPC_ObjectSyntax_specs_1   /* Additional specs */
71 };
72