Vanetza
 
Loading...
Searching...
No Matches
ServiceSpecificPermissions.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "IEEE1609dot2BaseTypes"
4 * found in "asn1/IEEE1609dot2BaseTypes.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "ServiceSpecificPermissions.h"
9
10static int
11memb_opaque_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
14
15 if(!sptr) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
19 return -1;
20 }
21
22
23 if(1 /* No applicable constraints whatsoever */) {
24 (void)st; /* Unused variable */
25 /* Nothing is here. See below */
26 }
27
28 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
29}
30
31#if !defined(ASN_DISABLE_OER_SUPPORT)
32static asn_oer_constraints_t asn_OER_memb_opaque_constr_2 CC_NOTUSED = {
33 { 0, 0 },
34 -1 /* (SIZE(0..MAX)) */};
35#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
36#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
37static asn_per_constraints_t asn_PER_memb_opaque_constr_2 CC_NOTUSED = {
38 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
39 { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 } /* (SIZE(0..MAX)) */,
40 0, 0 /* No PER value map */
41};
42#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
43#if !defined(ASN_DISABLE_OER_SUPPORT)
44static asn_oer_constraints_t asn_OER_type_ServiceSpecificPermissions_constr_1 CC_NOTUSED = {
45 { 0, 0 },
46 -1};
47#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
48#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
49asn_per_constraints_t asn_PER_type_ServiceSpecificPermissions_constr_1 CC_NOTUSED = {
50 { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
51 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
52 0, 0 /* No PER value map */
53};
54#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
55asn_TYPE_member_t asn_MBR_ServiceSpecificPermissions_1[] = {
56 { ATF_NOFLAGS, 0, offsetof(struct ServiceSpecificPermissions, choice.opaque),
57 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
58 -1, /* IMPLICIT tag at current level */
59 &asn_DEF_OCTET_STRING,
60 0,
61 {
62#if !defined(ASN_DISABLE_OER_SUPPORT)
63 &asn_OER_memb_opaque_constr_2,
64#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
65#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
66 &asn_PER_memb_opaque_constr_2,
67#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
68 memb_opaque_constraint_1
69 },
70 0, 0, /* No default value */
71 "opaque"
72 },
73 { ATF_NOFLAGS, 0, offsetof(struct ServiceSpecificPermissions, choice.bitmapSsp),
74 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
75 -1, /* IMPLICIT tag at current level */
76 &asn_DEF_BitmapSsp,
77 0,
78 {
79#if !defined(ASN_DISABLE_OER_SUPPORT)
80 0,
81#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
82#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
83 0,
84#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
85 0
86 },
87 0, 0, /* No default value */
88 "bitmapSsp"
89 },
90};
91static const asn_TYPE_tag2member_t asn_MAP_ServiceSpecificPermissions_tag2el_1[] = {
92 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* opaque */
93 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bitmapSsp */
94};
95asn_CHOICE_specifics_t asn_SPC_ServiceSpecificPermissions_specs_1 = {
96 sizeof(struct ServiceSpecificPermissions),
97 offsetof(struct ServiceSpecificPermissions, _asn_ctx),
98 offsetof(struct ServiceSpecificPermissions, present),
99 sizeof(((struct ServiceSpecificPermissions *)0)->present),
100 asn_MAP_ServiceSpecificPermissions_tag2el_1,
101 2, /* Count of tags in the map */
102 0, 0,
103 1 /* Extensions start */
104};
105asn_TYPE_descriptor_t asn_DEF_ServiceSpecificPermissions = {
106 "ServiceSpecificPermissions",
107 "ServiceSpecificPermissions",
108 &asn_OP_CHOICE,
109 0, /* No effective tags (pointer) */
110 0, /* No effective tags (count) */
111 0, /* No tags (pointer) */
112 0, /* No tags (count) */
113 {
114#if !defined(ASN_DISABLE_OER_SUPPORT)
115 &asn_OER_type_ServiceSpecificPermissions_constr_1,
116#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
117#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
118 &asn_PER_type_ServiceSpecificPermissions_constr_1,
119#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
120 CHOICE_constraint
121 },
122 asn_MBR_ServiceSpecificPermissions_1,
123 2, /* Elements count */
124 &asn_SPC_ServiceSpecificPermissions_specs_1 /* Additional specs */
125};
126