Updated documentation for mock a1 tool
[ric-app/admin.git] / asn1c_defs / X2N_UEAppLayerMeasConfig.c
1 /*
2  * Generated by asn1c-0.9.29 n1 (http://lionet.info/asn1c)
3  * From ASN.1 module "X2AP-IEs"
4  *      found in "../../asn_defs/asn1/x2ap-15-04.asn"
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
6  */
7
8 #include "X2N_UEAppLayerMeasConfig.h"
9
10 #include "X2N_ProtocolExtensionContainer.h"
11 static int
12 memb_X2N_containerForAppLayerMeasConfig_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
13                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14         const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
15         size_t size;
16         
17         if(!sptr) {
18                 ASN__CTFAIL(app_key, td, sptr,
19                         "%s: value not given (%s:%d)",
20                         td->name, __FILE__, __LINE__);
21                 return -1;
22         }
23         
24         size = st->size;
25         
26         if((size >= 1 && size <= 1000)) {
27                 /* Constraint check succeeded */
28                 return 0;
29         } else {
30                 ASN__CTFAIL(app_key, td, sptr,
31                         "%s: constraint failed (%s:%d)",
32                         td->name, __FILE__, __LINE__);
33                 return -1;
34         }
35 }
36
37 static asn_per_constraints_t asn_PER_memb_X2N_containerForAppLayerMeasConfig_constr_2 CC_NOTUSED = {
38         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
39         { APC_CONSTRAINED,       10,  10,  1,  1000 }   /* (SIZE(1..1000)) */,
40         0, 0    /* No PER value map */
41 };
42 static asn_TYPE_member_t asn_MBR_X2N_UEAppLayerMeasConfig_1[] = {
43         { ATF_NOFLAGS, 0, offsetof(struct X2N_UEAppLayerMeasConfig, containerForAppLayerMeasConfig),
44                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
45                 -1,     /* IMPLICIT tag at current level */
46                 &asn_DEF_OCTET_STRING,
47                 0,
48                 { 0, &asn_PER_memb_X2N_containerForAppLayerMeasConfig_constr_2,  memb_X2N_containerForAppLayerMeasConfig_constraint_1 },
49                 0, 0, /* No default value */
50                 "containerForAppLayerMeasConfig"
51                 },
52         { ATF_NOFLAGS, 0, offsetof(struct X2N_UEAppLayerMeasConfig, areaScopeOfQMC),
53                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
54                 +1,     /* EXPLICIT tag at current level */
55                 &asn_DEF_X2N_AreaScopeOfQMC,
56                 0,
57                 { 0, 0, 0 },
58                 0, 0, /* No default value */
59                 "areaScopeOfQMC"
60                 },
61         { ATF_POINTER, 1, offsetof(struct X2N_UEAppLayerMeasConfig, iE_Extensions),
62                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
63                 -1,     /* IMPLICIT tag at current level */
64                 &asn_DEF_X2N_ProtocolExtensionContainer_8231P210,
65                 0,
66                 { 0, 0, 0 },
67                 0, 0, /* No default value */
68                 "iE-Extensions"
69                 },
70 };
71 static const int asn_MAP_X2N_UEAppLayerMeasConfig_oms_1[] = { 2 };
72 static const ber_tlv_tag_t asn_DEF_X2N_UEAppLayerMeasConfig_tags_1[] = {
73         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
74 };
75 static const asn_TYPE_tag2member_t asn_MAP_X2N_UEAppLayerMeasConfig_tag2el_1[] = {
76     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* containerForAppLayerMeasConfig */
77     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* areaScopeOfQMC */
78     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
79 };
80 static asn_SEQUENCE_specifics_t asn_SPC_X2N_UEAppLayerMeasConfig_specs_1 = {
81         sizeof(struct X2N_UEAppLayerMeasConfig),
82         offsetof(struct X2N_UEAppLayerMeasConfig, _asn_ctx),
83         asn_MAP_X2N_UEAppLayerMeasConfig_tag2el_1,
84         3,      /* Count of tags in the map */
85         asn_MAP_X2N_UEAppLayerMeasConfig_oms_1, /* Optional members */
86         1, 0,   /* Root/Additions */
87         3,      /* First extension addition */
88 };
89 asn_TYPE_descriptor_t asn_DEF_X2N_UEAppLayerMeasConfig = {
90         "UEAppLayerMeasConfig",
91         "UEAppLayerMeasConfig",
92         &asn_OP_SEQUENCE,
93         asn_DEF_X2N_UEAppLayerMeasConfig_tags_1,
94         sizeof(asn_DEF_X2N_UEAppLayerMeasConfig_tags_1)
95                 /sizeof(asn_DEF_X2N_UEAppLayerMeasConfig_tags_1[0]), /* 1 */
96         asn_DEF_X2N_UEAppLayerMeasConfig_tags_1,        /* Same as above */
97         sizeof(asn_DEF_X2N_UEAppLayerMeasConfig_tags_1)
98                 /sizeof(asn_DEF_X2N_UEAppLayerMeasConfig_tags_1[0]), /* 1 */
99         { 0, 0, SEQUENCE_constraint },
100         asn_MBR_X2N_UEAppLayerMeasConfig_1,
101         3,      /* Elements count */
102         &asn_SPC_X2N_UEAppLayerMeasConfig_specs_1       /* Additional specs */
103 };
104