]> git.stg.codes - stg.git/blob - libs/smux/SimpleSyntax.c
Regen SMUX support library with more recent ASN1 compiler.
[stg.git] / libs / smux / SimpleSyntax.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1155-SMI"
4  *      found in "RFC1155-SMI.asn1"
5  *      `asn1c -S /home/faust/software/asn1c/skeletons/ -fcompound-names -fwide-types`
6  */
7
8 #include "SimpleSyntax.h"
9
10 static asn_oer_constraints_t asn_OER_type_SimpleSyntax_constr_1 CC_NOTUSED = {
11         { 0, 0 },
12         -1};
13 asn_per_constraints_t asn_PER_type_SimpleSyntax_constr_1 CC_NOTUSED = {
14         { APC_CONSTRAINED,       2,  2,  0,  3 }        /* (0..3) */,
15         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
16         0, 0    /* No PER value map */
17 };
18 asn_TYPE_member_t asn_MBR_SimpleSyntax_1[] = {
19         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.number),
20                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
21                 0,
22                 &asn_DEF_INTEGER,
23                 0,
24                 { 0, 0, 0 },
25                 0, 0, /* No default value */
26                 "number"
27                 },
28         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.string),
29                 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
30                 0,
31                 &asn_DEF_OCTET_STRING,
32                 0,
33                 { 0, 0, 0 },
34                 0, 0, /* No default value */
35                 "string"
36                 },
37         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.object),
38                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
39                 0,
40                 &asn_DEF_OBJECT_IDENTIFIER,
41                 0,
42                 { 0, 0, 0 },
43                 0, 0, /* No default value */
44                 "object"
45                 },
46         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.empty),
47                 (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
48                 0,
49                 &asn_DEF_NULL,
50                 0,
51                 { 0, 0, 0 },
52                 0, 0, /* No default value */
53                 "empty"
54                 },
55 };
56 static const unsigned asn_MAP_SimpleSyntax_to_canonical_1[] = { 0, 1, 3, 2 };
57 static const unsigned asn_MAP_SimpleSyntax_from_canonical_1[] = { 0, 1, 3, 2 };
58 static const asn_TYPE_tag2member_t asn_MAP_SimpleSyntax_tag2el_1[] = {
59     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* number */
60     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* string */
61     { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 3, 0, 0 }, /* empty */
62     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 2, 0, 0 } /* object */
63 };
64 asn_CHOICE_specifics_t asn_SPC_SimpleSyntax_specs_1 = {
65         sizeof(struct SimpleSyntax),
66         offsetof(struct SimpleSyntax, _asn_ctx),
67         offsetof(struct SimpleSyntax, present),
68         sizeof(((struct SimpleSyntax *)0)->present),
69         asn_MAP_SimpleSyntax_tag2el_1,
70         4,      /* Count of tags in the map */
71         asn_MAP_SimpleSyntax_to_canonical_1,
72         asn_MAP_SimpleSyntax_from_canonical_1,
73         -1      /* Extensions start */
74 };
75 asn_TYPE_descriptor_t asn_DEF_SimpleSyntax = {
76         "SimpleSyntax",
77         "SimpleSyntax",
78         &asn_OP_CHOICE,
79         0,      /* No effective tags (pointer) */
80         0,      /* No effective tags (count) */
81         0,      /* No tags (pointer) */
82         0,      /* No tags (count) */
83         { &asn_OER_type_SimpleSyntax_constr_1, &asn_PER_type_SimpleSyntax_constr_1, CHOICE_constraint },
84         asn_MBR_SimpleSyntax_1,
85         4,      /* Elements count */
86         &asn_SPC_SimpleSyntax_specs_1   /* Additional specs */
87 };
88