]> git.stg.codes - stg.git/blob - libs/smux/SimpleSyntax.c
Build and test in both Debug and Release mode.
[stg.git] / libs / smux / SimpleSyntax.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 "SimpleSyntax.h"
9
10 static asn_TYPE_member_t asn_MBR_SimpleSyntax_1[] = {
11         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.number),
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                 "number"
19                 },
20         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.string),
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                 "string"
28                 },
29         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.object),
30                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
31                 0,
32                 &asn_DEF_OBJECT_IDENTIFIER,
33                 0,      /* Defer constraints checking to the member type */
34                 0,      /* PER is not compiled, use -gen-PER */
35                 0,
36                 "object"
37                 },
38         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.empty),
39                 (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
40                 0,
41                 &asn_DEF_NULL,
42                 0,      /* Defer constraints checking to the member type */
43                 0,      /* PER is not compiled, use -gen-PER */
44                 0,
45                 "empty"
46                 },
47 };
48 static const asn_TYPE_tag2member_t asn_MAP_SimpleSyntax_tag2el_1[] = {
49     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* number */
50     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* string */
51     { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 3, 0, 0 }, /* empty */
52     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 2, 0, 0 } /* object */
53 };
54 static asn_CHOICE_specifics_t asn_SPC_SimpleSyntax_specs_1 = {
55         sizeof(struct SimpleSyntax),
56         offsetof(struct SimpleSyntax, _asn_ctx),
57         offsetof(struct SimpleSyntax, present),
58         sizeof(((struct SimpleSyntax *)0)->present),
59         asn_MAP_SimpleSyntax_tag2el_1,
60         4,      /* Count of tags in the map */
61         0,
62         -1      /* Extensions start */
63 };
64 asn_TYPE_descriptor_t asn_DEF_SimpleSyntax = {
65         "SimpleSyntax",
66         "SimpleSyntax",
67         CHOICE_free,
68         CHOICE_print,
69         CHOICE_constraint,
70         CHOICE_decode_ber,
71         CHOICE_encode_der,
72         CHOICE_decode_xer,
73         CHOICE_encode_xer,
74         0, 0,   /* No PER support, use "-gen-PER" to enable */
75         CHOICE_outmost_tag,
76         0,      /* No effective tags (pointer) */
77         0,      /* No effective tags (count) */
78         0,      /* No tags (pointer) */
79         0,      /* No tags (count) */
80         0,      /* No PER visible constraints */
81         asn_MBR_SimpleSyntax_1,
82         4,      /* Elements count */
83         &asn_SPC_SimpleSyntax_specs_1   /* Additional specs */
84 };
85