ISSUE ID:- RICAPP-216
[ric-app/bouncer.git] / Bouncer / e2sm_kpm / lib / Interface-MessageID.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "E2SM-COMMON-IEs"
4  *      found in "E2SM-COMMON-IEs.asn"
5  *      `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -gen-PER -no-gen-OER -no-gen-example`
6  */
7
8 #include "Interface-MessageID.h"
9
10 /*
11  * This type is implemented using NativeEnumerated,
12  * so here we adjust the DEF accordingly.
13  */
14 static asn_per_constraints_t asn_PER_type_messageType_constr_3 CC_NOTUSED = {
15         { APC_CONSTRAINED | APC_EXTENSIBLE,  2,  2,  0,  2 }    /* (0..2,...) */,
16         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
17         0, 0    /* No PER value map */
18 };
19 static const asn_INTEGER_enum_map_t asn_MAP_messageType_value2enum_3[] = {
20         { 0,    17,     "initiatingMessage" },
21         { 1,    17,     "successfulOutcome" },
22         { 2,    19,     "unsuccessfulOutcome" }
23         /* This list is extensible */
24 };
25 static const unsigned int asn_MAP_messageType_enum2value_3[] = {
26         0,      /* initiatingMessage(0) */
27         1,      /* successfulOutcome(1) */
28         2       /* unsuccessfulOutcome(2) */
29         /* This list is extensible */
30 };
31 static const asn_INTEGER_specifics_t asn_SPC_messageType_specs_3 = {
32         asn_MAP_messageType_value2enum_3,       /* "tag" => N; sorted by tag */
33         asn_MAP_messageType_enum2value_3,       /* N => "tag"; sorted by N */
34         3,      /* Number of elements in the maps */
35         4,      /* Extensions before this member */
36         1,      /* Strict enumeration */
37         0,      /* Native long size */
38         0
39 };
40 static const ber_tlv_tag_t asn_DEF_messageType_tags_3[] = {
41         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
43 };
44 static /* Use -fall-defs-global to expose */
45 asn_TYPE_descriptor_t asn_DEF_messageType_3 = {
46         "messageType",
47         "messageType",
48         &asn_OP_NativeEnumerated,
49         asn_DEF_messageType_tags_3,
50         sizeof(asn_DEF_messageType_tags_3)
51                 /sizeof(asn_DEF_messageType_tags_3[0]) - 1, /* 1 */
52         asn_DEF_messageType_tags_3,     /* Same as above */
53         sizeof(asn_DEF_messageType_tags_3)
54                 /sizeof(asn_DEF_messageType_tags_3[0]), /* 2 */
55         { 0, &asn_PER_type_messageType_constr_3, NativeEnumerated_constraint },
56         0, 0,   /* Defined elsewhere */
57         &asn_SPC_messageType_specs_3    /* Additional specs */
58 };
59
60 static asn_TYPE_member_t asn_MBR_Interface_MessageID_1[] = {
61         { ATF_NOFLAGS, 0, offsetof(struct Interface_MessageID, interfaceProcedureID),
62                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
63                 -1,     /* IMPLICIT tag at current level */
64                 &asn_DEF_NativeInteger,
65                 0,
66                 { 0, 0, 0 },
67                 0, 0, /* No default value */
68                 "interfaceProcedureID"
69                 },
70         { ATF_NOFLAGS, 0, offsetof(struct Interface_MessageID, messageType),
71                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
72                 -1,     /* IMPLICIT tag at current level */
73                 &asn_DEF_messageType_3,
74                 0,
75                 { 0, 0, 0 },
76                 0, 0, /* No default value */
77                 "messageType"
78                 },
79 };
80 static const ber_tlv_tag_t asn_DEF_Interface_MessageID_tags_1[] = {
81         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
82 };
83 static const asn_TYPE_tag2member_t asn_MAP_Interface_MessageID_tag2el_1[] = {
84     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* interfaceProcedureID */
85     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* messageType */
86 };
87 static asn_SEQUENCE_specifics_t asn_SPC_Interface_MessageID_specs_1 = {
88         sizeof(struct Interface_MessageID),
89         offsetof(struct Interface_MessageID, _asn_ctx),
90         asn_MAP_Interface_MessageID_tag2el_1,
91         2,      /* Count of tags in the map */
92         0, 0, 0,        /* Optional elements (not needed) */
93         2,      /* First extension addition */
94 };
95 asn_TYPE_descriptor_t asn_DEF_Interface_MessageID = {
96         "Interface-MessageID",
97         "Interface-MessageID",
98         &asn_OP_SEQUENCE,
99         asn_DEF_Interface_MessageID_tags_1,
100         sizeof(asn_DEF_Interface_MessageID_tags_1)
101                 /sizeof(asn_DEF_Interface_MessageID_tags_1[0]), /* 1 */
102         asn_DEF_Interface_MessageID_tags_1,     /* Same as above */
103         sizeof(asn_DEF_Interface_MessageID_tags_1)
104                 /sizeof(asn_DEF_Interface_MessageID_tags_1[0]), /* 1 */
105         { 0, 0, SEQUENCE_constraint },
106         asn_MBR_Interface_MessageID_1,
107         2,      /* Elements count */
108         &asn_SPC_Interface_MessageID_specs_1    /* Additional specs */
109 };
110