remark release date
[Net-Radio-Location-SUPL-Test.git] / asn1 / PrivateExtension.c
blob7c6124a5a04f36846db53f00e69966ef21dc6d0c
1 /*
2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "MAP-ExtensionDataTypes"
4 * found in "../asn1src/MAP-ExtensionDataTypes.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
6 */
8 #include "PrivateExtension.h"
10 static int
11 memb_extId_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
14 if(!sptr) {
15 _ASN_CTFAIL(app_key, td, sptr,
16 "%s: value not given (%s:%d)",
17 td->name, __FILE__, __LINE__);
18 return -1;
22 if(1 /* No applicable constraints whatsoever */) {
23 /* Nothing is here. See below */
26 return td->check_constraints(td, sptr, ctfailcb, app_key);
29 static int
30 memb_extType_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
31 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
33 if(!sptr) {
34 _ASN_CTFAIL(app_key, td, sptr,
35 "%s: value not given (%s:%d)",
36 td->name, __FILE__, __LINE__);
37 return -1;
41 if(1 /* No applicable constraints whatsoever */) {
42 /* Nothing is here. See below */
45 return td->check_constraints(td, sptr, ctfailcb, app_key);
48 static asn_per_constraints_t asn_PER_memb_extId_constr_2 = {
49 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
50 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
51 0, 0 /* No PER value map */
53 static asn_per_constraints_t asn_PER_memb_extType_constr_3 = {
54 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
55 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
56 0, 0 /* No PER value map */
58 static asn_TYPE_member_t asn_MBR_PrivateExtension_1[] = {
59 { ATF_NOFLAGS, 0, offsetof(struct PrivateExtension, extId),
60 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
62 &asn_DEF_OBJECT_IDENTIFIER,
63 memb_extId_constraint_1,
64 &asn_PER_memb_extId_constr_2,
66 "extId"
68 { ATF_OPEN_TYPE | ATF_POINTER, 1, offsetof(struct PrivateExtension, extType),
69 -1 /* Ambiguous tag (ANY?) */,
71 &asn_DEF_ANY,
72 memb_extType_constraint_1,
73 &asn_PER_memb_extType_constr_3,
75 "extType"
78 static int asn_MAP_PrivateExtension_oms_1[] = { 1 };
79 static ber_tlv_tag_t asn_DEF_PrivateExtension_tags_1[] = {
80 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
82 static asn_TYPE_tag2member_t asn_MAP_PrivateExtension_tag2el_1[] = {
83 { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 } /* extId at 46 */
85 static asn_SEQUENCE_specifics_t asn_SPC_PrivateExtension_specs_1 = {
86 sizeof(struct PrivateExtension),
87 offsetof(struct PrivateExtension, _asn_ctx),
88 asn_MAP_PrivateExtension_tag2el_1,
89 1, /* Count of tags in the map */
90 asn_MAP_PrivateExtension_oms_1, /* Optional members */
91 1, 0, /* Root/Additions */
92 -1, /* Start extensions */
93 -1 /* Stop extensions */
95 asn_TYPE_descriptor_t asn_DEF_PrivateExtension = {
96 "PrivateExtension",
97 "PrivateExtension",
98 SEQUENCE_free,
99 SEQUENCE_print,
100 SEQUENCE_constraint,
101 SEQUENCE_decode_ber,
102 SEQUENCE_encode_der,
103 SEQUENCE_decode_xer,
104 SEQUENCE_encode_xer,
105 SEQUENCE_decode_uper,
106 SEQUENCE_encode_uper,
107 0, /* Use generic outmost tag fetcher */
108 asn_DEF_PrivateExtension_tags_1,
109 sizeof(asn_DEF_PrivateExtension_tags_1)
110 /sizeof(asn_DEF_PrivateExtension_tags_1[0]), /* 1 */
111 asn_DEF_PrivateExtension_tags_1, /* Same as above */
112 sizeof(asn_DEF_PrivateExtension_tags_1)
113 /sizeof(asn_DEF_PrivateExtension_tags_1[0]), /* 1 */
114 0, /* No PER visible constraints */
115 asn_MBR_PrivateExtension_1,
116 2, /* Elements count */
117 &asn_SPC_PrivateExtension_specs_1 /* Additional specs */