]> git.stg.codes - stg.git/blob - stglibs/smux.lib/SimpleSyntax.c
Merge branch 'stg-2.409-radius'
[stg.git] / stglibs / smux.lib / SimpleSyntax.c
1 /*
2  * Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
3  * From ASN.1 module "RFC1155-SMI"
4  *      found in "RFC1155-SMI.asn1"
5  *      `asn1c -fskeletons-copy`
6  */
7
8 #include <asn_internal.h>
9
10 #include "SimpleSyntax.h"
11
12 static asn_TYPE_member_t asn_MBR_SimpleSyntax_1[] = {
13         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.number),
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                 "number"
21                 },
22         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.string),
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                 "string"
30                 },
31         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.object),
32                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
33                 0,
34                 &asn_DEF_OBJECT_IDENTIFIER,
35                 0,      /* Defer constraints checking to the member type */
36                 0,      /* PER is not compiled, use -gen-PER */
37                 0,
38                 "object"
39                 },
40         { ATF_NOFLAGS, 0, offsetof(struct SimpleSyntax, choice.empty),
41                 (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
42                 0,
43                 &asn_DEF_NULL,
44                 0,      /* Defer constraints checking to the member type */
45                 0,      /* PER is not compiled, use -gen-PER */
46                 0,
47                 "empty"
48                 },
49 };
50 static asn_TYPE_tag2member_t asn_MAP_SimpleSyntax_tag2el_1[] = {
51     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* number at 73 */
52     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* string at 76 */
53     { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 3, 0, 0 }, /* empty at 82 */
54     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 2, 0, 0 } /* object at 79 */
55 };
56 static asn_CHOICE_specifics_t asn_SPC_SimpleSyntax_specs_1 = {
57         sizeof(struct SimpleSyntax),
58         offsetof(struct SimpleSyntax, _asn_ctx),
59         offsetof(struct SimpleSyntax, present),
60         sizeof(((struct SimpleSyntax *)0)->present),
61         asn_MAP_SimpleSyntax_tag2el_1,
62         4,      /* Count of tags in the map */
63         0,
64         -1      /* Extensions start */
65 };
66 asn_TYPE_descriptor_t asn_DEF_SimpleSyntax = {
67         "SimpleSyntax",
68         "SimpleSyntax",
69         CHOICE_free,
70         CHOICE_print,
71         CHOICE_constraint,
72         CHOICE_decode_ber,
73         CHOICE_encode_der,
74         CHOICE_decode_xer,
75         CHOICE_encode_xer,
76         0, 0,   /* No PER support, use "-gen-PER" to enable */
77         CHOICE_outmost_tag,
78         0,      /* No effective tags (pointer) */
79         0,      /* No effective tags (count) */
80         0,      /* No tags (pointer) */
81         0,      /* No tags (count) */
82         0,      /* No PER visible constraints */
83         asn_MBR_SimpleSyntax_1,
84         4,      /* Elements count */
85         &asn_SPC_SimpleSyntax_specs_1   /* Additional specs */
86 };
87