Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [A-noc] >>> ***/ |
| 3 | |
| 4 | #include <NativeInteger.h> |
| 5 | |
| 6 | /*** <<< TYPE-DECLS [A-noc] >>> ***/ |
| 7 | |
| 8 | typedef long A_noc_t; |
| 9 | |
| 10 | /*** <<< FUNC-DECLS [A-noc] >>> ***/ |
| 11 | |
| 12 | extern asn_TYPE_descriptor_t asn_DEF_A_noc; |
| 13 | asn_struct_free_f A_noc_free; |
| 14 | asn_struct_print_f A_noc_print; |
| 15 | asn_constr_check_f A_noc_constraint; |
| 16 | ber_type_decoder_f A_noc_decode_ber; |
| 17 | der_type_encoder_f A_noc_encode_der; |
| 18 | xer_type_decoder_f A_noc_decode_xer; |
| 19 | xer_type_encoder_f A_noc_encode_xer; |
| 20 | oer_type_decoder_f A_noc_decode_oer; |
| 21 | oer_type_encoder_f A_noc_encode_oer; |
| 22 | |
| 23 | /*** <<< CODE [A-noc] >>> ***/ |
| 24 | |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 25 | /* |
| 26 | * This type is implemented using NativeInteger, |
| 27 | * so here we adjust the DEF accordingly. |
| 28 | */ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 29 | |
| 30 | /*** <<< STAT-DEFS [A-noc] >>> ***/ |
| 31 | |
| 32 | static const ber_tlv_tag_t asn_DEF_A_noc_tags_1[] = { |
| 33 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 34 | }; |
| 35 | asn_TYPE_descriptor_t asn_DEF_A_noc = { |
| 36 | "A-noc", |
| 37 | "A-noc", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 38 | &asn_OP_NativeInteger, |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 39 | NativeInteger_constraint, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 40 | asn_DEF_A_noc_tags_1, |
| 41 | sizeof(asn_DEF_A_noc_tags_1) |
| 42 | /sizeof(asn_DEF_A_noc_tags_1[0]), /* 1 */ |
| 43 | asn_DEF_A_noc_tags_1, /* Same as above */ |
| 44 | sizeof(asn_DEF_A_noc_tags_1) |
| 45 | /sizeof(asn_DEF_A_noc_tags_1[0]), /* 1 */ |
| 46 | 0, /* No OER visible constraints */ |
| 47 | 0, /* No PER visible constraints */ |
| 48 | 0, 0, /* No members */ |
| 49 | 0 /* No specifics */ |
| 50 | }; |
| 51 | |
| 52 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 53 | /*** <<< INCLUDES [B-0-0] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 54 | |
| 55 | #include <NativeInteger.h> |
| 56 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 57 | /*** <<< TYPE-DECLS [B-0-0] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 58 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 59 | typedef long B_0_0_t; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 60 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 61 | /*** <<< FUNC-DECLS [B-0-0] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 62 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 63 | extern asn_TYPE_descriptor_t asn_DEF_B_0_0; |
| 64 | asn_struct_free_f B_0_0_free; |
| 65 | asn_struct_print_f B_0_0_print; |
| 66 | asn_constr_check_f B_0_0_constraint; |
| 67 | ber_type_decoder_f B_0_0_decode_ber; |
| 68 | der_type_encoder_f B_0_0_encode_der; |
| 69 | xer_type_decoder_f B_0_0_decode_xer; |
| 70 | xer_type_encoder_f B_0_0_encode_xer; |
| 71 | oer_type_decoder_f B_0_0_decode_oer; |
| 72 | oer_type_encoder_f B_0_0_encode_oer; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 73 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 74 | /*** <<< CODE [B-0-0] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 75 | |
| 76 | int |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 77 | B_0_0_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 78 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 79 | long value; |
| 80 | |
| 81 | if(!sptr) { |
| 82 | ASN__CTFAIL(app_key, td, sptr, |
| 83 | "%s: value not given (%s:%d)", |
| 84 | td->name, __FILE__, __LINE__); |
| 85 | return -1; |
| 86 | } |
| 87 | |
| 88 | value = *(const long *)sptr; |
| 89 | |
| 90 | if((value == 0)) { |
| 91 | /* Constraint check succeeded */ |
| 92 | return 0; |
| 93 | } else { |
| 94 | ASN__CTFAIL(app_key, td, sptr, |
| 95 | "%s: constraint failed (%s:%d)", |
| 96 | td->name, __FILE__, __LINE__); |
| 97 | return -1; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /* |
| 102 | * This type is implemented using NativeInteger, |
| 103 | * so here we adjust the DEF accordingly. |
| 104 | */ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 105 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 106 | /*** <<< CTDEFS [B-0-0] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 107 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 108 | static asn_oer_constraints_t asn_OER_type_B_0_0_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 109 | { 1, 1 } /* (0..0) */, |
| 110 | -1}; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 111 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 112 | /*** <<< STAT-DEFS [B-0-0] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 113 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 114 | static const ber_tlv_tag_t asn_DEF_B_0_0_tags_1[] = { |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 115 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 116 | }; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 117 | asn_TYPE_descriptor_t asn_DEF_B_0_0 = { |
| 118 | "B-0-0", |
| 119 | "B-0-0", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 120 | &asn_OP_NativeInteger, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 121 | B_0_0_constraint, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 122 | asn_DEF_B_0_0_tags_1, |
| 123 | sizeof(asn_DEF_B_0_0_tags_1) |
| 124 | /sizeof(asn_DEF_B_0_0_tags_1[0]), /* 1 */ |
| 125 | asn_DEF_B_0_0_tags_1, /* Same as above */ |
| 126 | sizeof(asn_DEF_B_0_0_tags_1) |
| 127 | /sizeof(asn_DEF_B_0_0_tags_1[0]), /* 1 */ |
| 128 | &asn_OER_type_B_0_0_constr_1, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 129 | 0, /* No PER visible constraints */ |
| 130 | 0, 0, /* No members */ |
| 131 | 0 /* No specifics */ |
| 132 | }; |
| 133 | |
| 134 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 135 | /*** <<< INCLUDES [C-1-2] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 136 | |
| 137 | #include <NativeInteger.h> |
| 138 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 139 | /*** <<< TYPE-DECLS [C-1-2] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 140 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 141 | typedef long C_1_2_t; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 142 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 143 | /*** <<< FUNC-DECLS [C-1-2] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 144 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 145 | extern asn_TYPE_descriptor_t asn_DEF_C_1_2; |
| 146 | asn_struct_free_f C_1_2_free; |
| 147 | asn_struct_print_f C_1_2_print; |
| 148 | asn_constr_check_f C_1_2_constraint; |
| 149 | ber_type_decoder_f C_1_2_decode_ber; |
| 150 | der_type_encoder_f C_1_2_encode_der; |
| 151 | xer_type_decoder_f C_1_2_decode_xer; |
| 152 | xer_type_encoder_f C_1_2_encode_xer; |
| 153 | oer_type_decoder_f C_1_2_decode_oer; |
| 154 | oer_type_encoder_f C_1_2_encode_oer; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 155 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 156 | /*** <<< CODE [C-1-2] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 157 | |
| 158 | int |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 159 | C_1_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 160 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 161 | long value; |
| 162 | |
| 163 | if(!sptr) { |
| 164 | ASN__CTFAIL(app_key, td, sptr, |
| 165 | "%s: value not given (%s:%d)", |
| 166 | td->name, __FILE__, __LINE__); |
| 167 | return -1; |
| 168 | } |
| 169 | |
| 170 | value = *(const long *)sptr; |
| 171 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 172 | if((value >= 1 && value <= 2)) { |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 173 | /* Constraint check succeeded */ |
| 174 | return 0; |
| 175 | } else { |
| 176 | ASN__CTFAIL(app_key, td, sptr, |
| 177 | "%s: constraint failed (%s:%d)", |
| 178 | td->name, __FILE__, __LINE__); |
| 179 | return -1; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | /* |
| 184 | * This type is implemented using NativeInteger, |
| 185 | * so here we adjust the DEF accordingly. |
| 186 | */ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 187 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 188 | /*** <<< CTDEFS [C-1-2] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 189 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 190 | static asn_oer_constraints_t asn_OER_type_C_1_2_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 191 | { 1, 1 } /* (1..2) */, |
| 192 | -1}; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 193 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 194 | /*** <<< STAT-DEFS [C-1-2] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 195 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 196 | static const ber_tlv_tag_t asn_DEF_C_1_2_tags_1[] = { |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 197 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 198 | }; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 199 | asn_TYPE_descriptor_t asn_DEF_C_1_2 = { |
| 200 | "C-1-2", |
| 201 | "C-1-2", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 202 | &asn_OP_NativeInteger, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 203 | C_1_2_constraint, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 204 | asn_DEF_C_1_2_tags_1, |
| 205 | sizeof(asn_DEF_C_1_2_tags_1) |
| 206 | /sizeof(asn_DEF_C_1_2_tags_1[0]), /* 1 */ |
| 207 | asn_DEF_C_1_2_tags_1, /* Same as above */ |
| 208 | sizeof(asn_DEF_C_1_2_tags_1) |
| 209 | /sizeof(asn_DEF_C_1_2_tags_1[0]), /* 1 */ |
| 210 | &asn_OER_type_C_1_2_constr_1, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 211 | 0, /* No PER visible constraints */ |
| 212 | 0, 0, /* No members */ |
| 213 | 0 /* No specifics */ |
| 214 | }; |
| 215 | |
| 216 | |
| 217 | /*** <<< INCLUDES [D-inv] >>> ***/ |
| 218 | |
| 219 | #include <NativeInteger.h> |
| 220 | |
| 221 | /*** <<< TYPE-DECLS [D-inv] >>> ***/ |
| 222 | |
| 223 | typedef long D_inv_t; |
| 224 | |
| 225 | /*** <<< FUNC-DECLS [D-inv] >>> ***/ |
| 226 | |
| 227 | extern asn_TYPE_descriptor_t asn_DEF_D_inv; |
| 228 | asn_struct_free_f D_inv_free; |
| 229 | asn_struct_print_f D_inv_print; |
| 230 | asn_constr_check_f D_inv_constraint; |
| 231 | ber_type_decoder_f D_inv_decode_ber; |
| 232 | der_type_encoder_f D_inv_encode_der; |
| 233 | xer_type_decoder_f D_inv_decode_xer; |
| 234 | xer_type_encoder_f D_inv_encode_xer; |
| 235 | oer_type_decoder_f D_inv_decode_oer; |
| 236 | oer_type_encoder_f D_inv_encode_oer; |
| 237 | |
| 238 | /*** <<< CODE [D-inv] >>> ***/ |
| 239 | |
| 240 | int |
| 241 | D_inv_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 242 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 243 | long value; |
| 244 | |
| 245 | if(!sptr) { |
| 246 | ASN__CTFAIL(app_key, td, sptr, |
| 247 | "%s: value not given (%s:%d)", |
| 248 | td->name, __FILE__, __LINE__); |
| 249 | return -1; |
| 250 | } |
| 251 | |
| 252 | value = *(const long *)sptr; |
| 253 | |
| 254 | if((value >= 0 && value <= 10)) { |
| 255 | /* Constraint check succeeded */ |
| 256 | return 0; |
| 257 | } else { |
| 258 | ASN__CTFAIL(app_key, td, sptr, |
| 259 | "%s: constraint failed (%s:%d)", |
| 260 | td->name, __FILE__, __LINE__); |
| 261 | return -1; |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | /* |
| 266 | * This type is implemented using NativeInteger, |
| 267 | * so here we adjust the DEF accordingly. |
| 268 | */ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 269 | |
| 270 | /*** <<< CTDEFS [D-inv] >>> ***/ |
| 271 | |
| 272 | static asn_oer_constraints_t asn_OER_type_D_inv_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 273 | { 0, 0 }, |
| 274 | -1}; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 275 | |
| 276 | /*** <<< STAT-DEFS [D-inv] >>> ***/ |
| 277 | |
| 278 | static const ber_tlv_tag_t asn_DEF_D_inv_tags_1[] = { |
| 279 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 280 | }; |
| 281 | asn_TYPE_descriptor_t asn_DEF_D_inv = { |
| 282 | "D-inv", |
| 283 | "D-inv", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 284 | &asn_OP_NativeInteger, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 285 | D_inv_constraint, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 286 | asn_DEF_D_inv_tags_1, |
| 287 | sizeof(asn_DEF_D_inv_tags_1) |
| 288 | /sizeof(asn_DEF_D_inv_tags_1[0]), /* 1 */ |
| 289 | asn_DEF_D_inv_tags_1, /* Same as above */ |
| 290 | sizeof(asn_DEF_D_inv_tags_1) |
| 291 | /sizeof(asn_DEF_D_inv_tags_1[0]), /* 1 */ |
| 292 | &asn_OER_type_D_inv_constr_1, |
| 293 | 0, /* No PER visible constraints */ |
| 294 | 0, 0, /* No members */ |
| 295 | 0 /* No specifics */ |
| 296 | }; |
| 297 | |
| 298 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 299 | /*** <<< INCLUDES [E-2-5] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 300 | |
| 301 | #include <NativeInteger.h> |
| 302 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 303 | /*** <<< TYPE-DECLS [E-2-5] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 304 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 305 | typedef long E_2_5_t; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 306 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 307 | /*** <<< FUNC-DECLS [E-2-5] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 308 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 309 | extern asn_TYPE_descriptor_t asn_DEF_E_2_5; |
| 310 | asn_struct_free_f E_2_5_free; |
| 311 | asn_struct_print_f E_2_5_print; |
| 312 | asn_constr_check_f E_2_5_constraint; |
| 313 | ber_type_decoder_f E_2_5_decode_ber; |
| 314 | der_type_encoder_f E_2_5_encode_der; |
| 315 | xer_type_decoder_f E_2_5_decode_xer; |
| 316 | xer_type_encoder_f E_2_5_encode_xer; |
| 317 | oer_type_decoder_f E_2_5_decode_oer; |
| 318 | oer_type_encoder_f E_2_5_encode_oer; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 319 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 320 | /*** <<< CODE [E-2-5] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 321 | |
| 322 | int |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 323 | E_2_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 324 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 325 | long value; |
| 326 | |
| 327 | if(!sptr) { |
| 328 | ASN__CTFAIL(app_key, td, sptr, |
| 329 | "%s: value not given (%s:%d)", |
| 330 | td->name, __FILE__, __LINE__); |
| 331 | return -1; |
| 332 | } |
| 333 | |
| 334 | value = *(const long *)sptr; |
| 335 | |
| 336 | if((value >= 2 && value <= 5)) { |
| 337 | /* Constraint check succeeded */ |
| 338 | return 0; |
| 339 | } else { |
| 340 | ASN__CTFAIL(app_key, td, sptr, |
| 341 | "%s: constraint failed (%s:%d)", |
| 342 | td->name, __FILE__, __LINE__); |
| 343 | return -1; |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | /* |
| 348 | * This type is implemented using NativeInteger, |
| 349 | * so here we adjust the DEF accordingly. |
| 350 | */ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 351 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 352 | /*** <<< CTDEFS [E-2-5] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 353 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 354 | static asn_oer_constraints_t asn_OER_type_E_2_5_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 355 | { 1, 1 } /* (2..5) */, |
| 356 | -1}; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 357 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 358 | /*** <<< STAT-DEFS [E-2-5] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 359 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 360 | static const ber_tlv_tag_t asn_DEF_E_2_5_tags_1[] = { |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 361 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 362 | }; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 363 | asn_TYPE_descriptor_t asn_DEF_E_2_5 = { |
| 364 | "E-2-5", |
| 365 | "E-2-5", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 366 | &asn_OP_NativeInteger, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 367 | E_2_5_constraint, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 368 | asn_DEF_E_2_5_tags_1, |
| 369 | sizeof(asn_DEF_E_2_5_tags_1) |
| 370 | /sizeof(asn_DEF_E_2_5_tags_1[0]), /* 1 */ |
| 371 | asn_DEF_E_2_5_tags_1, /* Same as above */ |
| 372 | sizeof(asn_DEF_E_2_5_tags_1) |
| 373 | /sizeof(asn_DEF_E_2_5_tags_1[0]), /* 1 */ |
| 374 | &asn_OER_type_E_2_5_constr_1, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 375 | 0, /* No PER visible constraints */ |
| 376 | 0, 0, /* No members */ |
| 377 | 0 /* No specifics */ |
| 378 | }; |
| 379 | |
| 380 | |
| 381 | /*** <<< INCLUDES [F-inv] >>> ***/ |
| 382 | |
| 383 | #include <NativeInteger.h> |
| 384 | |
| 385 | /*** <<< TYPE-DECLS [F-inv] >>> ***/ |
| 386 | |
| 387 | typedef long F_inv_t; |
| 388 | |
| 389 | /*** <<< FUNC-DECLS [F-inv] >>> ***/ |
| 390 | |
| 391 | extern asn_TYPE_descriptor_t asn_DEF_F_inv; |
| 392 | asn_struct_free_f F_inv_free; |
| 393 | asn_struct_print_f F_inv_print; |
| 394 | asn_constr_check_f F_inv_constraint; |
| 395 | ber_type_decoder_f F_inv_decode_ber; |
| 396 | der_type_encoder_f F_inv_encode_der; |
| 397 | xer_type_decoder_f F_inv_decode_xer; |
| 398 | xer_type_encoder_f F_inv_encode_xer; |
| 399 | oer_type_decoder_f F_inv_decode_oer; |
| 400 | oer_type_encoder_f F_inv_encode_oer; |
| 401 | |
| 402 | /*** <<< CODE [F-inv] >>> ***/ |
| 403 | |
| 404 | int |
| 405 | F_inv_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 406 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 407 | long value; |
| 408 | |
| 409 | if(!sptr) { |
| 410 | ASN__CTFAIL(app_key, td, sptr, |
| 411 | "%s: value not given (%s:%d)", |
| 412 | td->name, __FILE__, __LINE__); |
| 413 | return -1; |
| 414 | } |
| 415 | |
| 416 | value = *(const long *)sptr; |
| 417 | |
| 418 | if((value >= 2 && value <= 5)) { |
| 419 | /* Constraint check succeeded */ |
| 420 | return 0; |
| 421 | } else { |
| 422 | ASN__CTFAIL(app_key, td, sptr, |
| 423 | "%s: constraint failed (%s:%d)", |
| 424 | td->name, __FILE__, __LINE__); |
| 425 | return -1; |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | /* |
| 430 | * This type is implemented using NativeInteger, |
| 431 | * so here we adjust the DEF accordingly. |
| 432 | */ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 433 | |
| 434 | /*** <<< CTDEFS [F-inv] >>> ***/ |
| 435 | |
| 436 | static asn_oer_constraints_t asn_OER_type_F_inv_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 437 | { 1, 1 } /* (0..10) */, |
| 438 | -1}; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 439 | |
| 440 | /*** <<< STAT-DEFS [F-inv] >>> ***/ |
| 441 | |
| 442 | static const ber_tlv_tag_t asn_DEF_F_inv_tags_1[] = { |
| 443 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 444 | }; |
| 445 | asn_TYPE_descriptor_t asn_DEF_F_inv = { |
| 446 | "F-inv", |
| 447 | "F-inv", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 448 | &asn_OP_NativeInteger, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 449 | F_inv_constraint, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 450 | asn_DEF_F_inv_tags_1, |
| 451 | sizeof(asn_DEF_F_inv_tags_1) |
| 452 | /sizeof(asn_DEF_F_inv_tags_1[0]), /* 1 */ |
| 453 | asn_DEF_F_inv_tags_1, /* Same as above */ |
| 454 | sizeof(asn_DEF_F_inv_tags_1) |
| 455 | /sizeof(asn_DEF_F_inv_tags_1[0]), /* 1 */ |
| 456 | &asn_OER_type_F_inv_constr_1, |
| 457 | 0, /* No PER visible constraints */ |
| 458 | 0, 0, /* No members */ |
| 459 | 0 /* No specifics */ |
| 460 | }; |
| 461 | |
| 462 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 463 | /*** <<< INCLUDES [G-3-3] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 464 | |
| 465 | #include <NativeInteger.h> |
| 466 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 467 | /*** <<< TYPE-DECLS [G-3-3] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 468 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 469 | typedef long G_3_3_t; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 470 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 471 | /*** <<< FUNC-DECLS [G-3-3] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 472 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 473 | extern asn_TYPE_descriptor_t asn_DEF_G_3_3; |
| 474 | asn_struct_free_f G_3_3_free; |
| 475 | asn_struct_print_f G_3_3_print; |
| 476 | asn_constr_check_f G_3_3_constraint; |
| 477 | ber_type_decoder_f G_3_3_decode_ber; |
| 478 | der_type_encoder_f G_3_3_encode_der; |
| 479 | xer_type_decoder_f G_3_3_decode_xer; |
| 480 | xer_type_encoder_f G_3_3_encode_xer; |
| 481 | oer_type_decoder_f G_3_3_decode_oer; |
| 482 | oer_type_encoder_f G_3_3_encode_oer; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 483 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 484 | /*** <<< CODE [G-3-3] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 485 | |
| 486 | int |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 487 | G_3_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 488 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 489 | long value; |
| 490 | |
| 491 | if(!sptr) { |
| 492 | ASN__CTFAIL(app_key, td, sptr, |
| 493 | "%s: value not given (%s:%d)", |
| 494 | td->name, __FILE__, __LINE__); |
| 495 | return -1; |
| 496 | } |
| 497 | |
| 498 | value = *(const long *)sptr; |
| 499 | |
| 500 | if((value == 3)) { |
| 501 | /* Constraint check succeeded */ |
| 502 | return 0; |
| 503 | } else { |
| 504 | ASN__CTFAIL(app_key, td, sptr, |
| 505 | "%s: constraint failed (%s:%d)", |
| 506 | td->name, __FILE__, __LINE__); |
| 507 | return -1; |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | /* |
| 512 | * This type is implemented using NativeInteger, |
| 513 | * so here we adjust the DEF accordingly. |
| 514 | */ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 515 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 516 | /*** <<< CTDEFS [G-3-3] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 517 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 518 | static asn_oer_constraints_t asn_OER_type_G_3_3_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 519 | { 1, 1 } /* (3..3) */, |
| 520 | -1}; |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 521 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 522 | /*** <<< STAT-DEFS [G-3-3] >>> ***/ |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 523 | |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 524 | static const ber_tlv_tag_t asn_DEF_G_3_3_tags_1[] = { |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 525 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 526 | }; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 527 | asn_TYPE_descriptor_t asn_DEF_G_3_3 = { |
| 528 | "G-3-3", |
| 529 | "G-3-3", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 530 | &asn_OP_NativeInteger, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 531 | G_3_3_constraint, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 532 | asn_DEF_G_3_3_tags_1, |
| 533 | sizeof(asn_DEF_G_3_3_tags_1) |
| 534 | /sizeof(asn_DEF_G_3_3_tags_1[0]), /* 1 */ |
| 535 | asn_DEF_G_3_3_tags_1, /* Same as above */ |
| 536 | sizeof(asn_DEF_G_3_3_tags_1) |
| 537 | /sizeof(asn_DEF_G_3_3_tags_1[0]), /* 1 */ |
| 538 | &asn_OER_type_G_3_3_constr_1, |
| 539 | 0, /* No PER visible constraints */ |
| 540 | 0, 0, /* No members */ |
| 541 | 0 /* No specifics */ |
| 542 | }; |
| 543 | |
| 544 | |
| 545 | /*** <<< INCLUDES [H-4-5] >>> ***/ |
| 546 | |
| 547 | #include <NativeInteger.h> |
| 548 | |
| 549 | /*** <<< TYPE-DECLS [H-4-5] >>> ***/ |
| 550 | |
| 551 | typedef long H_4_5_t; |
| 552 | |
| 553 | /*** <<< FUNC-DECLS [H-4-5] >>> ***/ |
| 554 | |
| 555 | extern asn_TYPE_descriptor_t asn_DEF_H_4_5; |
| 556 | asn_struct_free_f H_4_5_free; |
| 557 | asn_struct_print_f H_4_5_print; |
| 558 | asn_constr_check_f H_4_5_constraint; |
| 559 | ber_type_decoder_f H_4_5_decode_ber; |
| 560 | der_type_encoder_f H_4_5_encode_der; |
| 561 | xer_type_decoder_f H_4_5_decode_xer; |
| 562 | xer_type_encoder_f H_4_5_encode_xer; |
| 563 | oer_type_decoder_f H_4_5_decode_oer; |
| 564 | oer_type_encoder_f H_4_5_encode_oer; |
| 565 | |
| 566 | /*** <<< CODE [H-4-5] >>> ***/ |
| 567 | |
| 568 | int |
| 569 | H_4_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 570 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 571 | long value; |
| 572 | |
| 573 | if(!sptr) { |
| 574 | ASN__CTFAIL(app_key, td, sptr, |
| 575 | "%s: value not given (%s:%d)", |
| 576 | td->name, __FILE__, __LINE__); |
| 577 | return -1; |
| 578 | } |
| 579 | |
| 580 | value = *(const long *)sptr; |
| 581 | |
| 582 | if((value >= 4 && value <= 5)) { |
| 583 | /* Constraint check succeeded */ |
| 584 | return 0; |
| 585 | } else { |
| 586 | ASN__CTFAIL(app_key, td, sptr, |
| 587 | "%s: constraint failed (%s:%d)", |
| 588 | td->name, __FILE__, __LINE__); |
| 589 | return -1; |
| 590 | } |
| 591 | } |
| 592 | |
| 593 | /* |
| 594 | * This type is implemented using NativeInteger, |
| 595 | * so here we adjust the DEF accordingly. |
| 596 | */ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 597 | |
| 598 | /*** <<< CTDEFS [H-4-5] >>> ***/ |
| 599 | |
| 600 | static asn_oer_constraints_t asn_OER_type_H_4_5_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 601 | { 1, 1 } /* (4..5) */, |
| 602 | -1}; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 603 | |
| 604 | /*** <<< STAT-DEFS [H-4-5] >>> ***/ |
| 605 | |
| 606 | static const ber_tlv_tag_t asn_DEF_H_4_5_tags_1[] = { |
| 607 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 608 | }; |
| 609 | asn_TYPE_descriptor_t asn_DEF_H_4_5 = { |
| 610 | "H-4-5", |
| 611 | "H-4-5", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 612 | &asn_OP_NativeInteger, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 613 | H_4_5_constraint, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 614 | asn_DEF_H_4_5_tags_1, |
| 615 | sizeof(asn_DEF_H_4_5_tags_1) |
| 616 | /sizeof(asn_DEF_H_4_5_tags_1[0]), /* 1 */ |
| 617 | asn_DEF_H_4_5_tags_1, /* Same as above */ |
| 618 | sizeof(asn_DEF_H_4_5_tags_1) |
| 619 | /sizeof(asn_DEF_H_4_5_tags_1[0]), /* 1 */ |
| 620 | &asn_OER_type_H_4_5_constr_1, |
| 621 | 0, /* No PER visible constraints */ |
| 622 | 0, 0, /* No members */ |
| 623 | 0 /* No specifics */ |
| 624 | }; |
| 625 | |
| 626 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 627 | /*** <<< INCLUDES [I-1-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 628 | |
| 629 | #include <NativeInteger.h> |
| 630 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 631 | /*** <<< TYPE-DECLS [I-1-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 632 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 633 | typedef long I_1_5_t; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 634 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 635 | /*** <<< FUNC-DECLS [I-1-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 636 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 637 | extern asn_TYPE_descriptor_t asn_DEF_I_1_5; |
| 638 | asn_struct_free_f I_1_5_free; |
| 639 | asn_struct_print_f I_1_5_print; |
| 640 | asn_constr_check_f I_1_5_constraint; |
| 641 | ber_type_decoder_f I_1_5_decode_ber; |
| 642 | der_type_encoder_f I_1_5_encode_der; |
| 643 | xer_type_decoder_f I_1_5_decode_xer; |
| 644 | xer_type_encoder_f I_1_5_encode_xer; |
| 645 | oer_type_decoder_f I_1_5_decode_oer; |
| 646 | oer_type_encoder_f I_1_5_encode_oer; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 647 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 648 | /*** <<< CODE [I-1-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 649 | |
| 650 | int |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 651 | I_1_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 652 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 653 | long value; |
| 654 | |
| 655 | if(!sptr) { |
| 656 | ASN__CTFAIL(app_key, td, sptr, |
| 657 | "%s: value not given (%s:%d)", |
| 658 | td->name, __FILE__, __LINE__); |
| 659 | return -1; |
| 660 | } |
| 661 | |
| 662 | value = *(const long *)sptr; |
| 663 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 664 | if((value >= 1 && value <= 5)) { |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 665 | /* Constraint check succeeded */ |
| 666 | return 0; |
| 667 | } else { |
| 668 | ASN__CTFAIL(app_key, td, sptr, |
| 669 | "%s: constraint failed (%s:%d)", |
| 670 | td->name, __FILE__, __LINE__); |
| 671 | return -1; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | /* |
| 676 | * This type is implemented using NativeInteger, |
| 677 | * so here we adjust the DEF accordingly. |
| 678 | */ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 679 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 680 | /*** <<< CTDEFS [I-1-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 681 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 682 | static asn_oer_constraints_t asn_OER_type_I_1_5_constr_1 GCC_NOTUSED = { |
| 683 | { 1, 1 } /* (1..5) */, |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 684 | -1}; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 685 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 686 | /*** <<< STAT-DEFS [I-1-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 687 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 688 | static const ber_tlv_tag_t asn_DEF_I_1_5_tags_1[] = { |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 689 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 690 | }; |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 691 | asn_TYPE_descriptor_t asn_DEF_I_1_5 = { |
| 692 | "I-1-5", |
| 693 | "I-1-5", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 694 | &asn_OP_NativeInteger, |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 695 | I_1_5_constraint, |
| 696 | asn_DEF_I_1_5_tags_1, |
| 697 | sizeof(asn_DEF_I_1_5_tags_1) |
| 698 | /sizeof(asn_DEF_I_1_5_tags_1[0]), /* 1 */ |
| 699 | asn_DEF_I_1_5_tags_1, /* Same as above */ |
| 700 | sizeof(asn_DEF_I_1_5_tags_1) |
| 701 | /sizeof(asn_DEF_I_1_5_tags_1[0]), /* 1 */ |
| 702 | &asn_OER_type_I_1_5_constr_1, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 703 | 0, /* No PER visible constraints */ |
| 704 | 0, 0, /* No members */ |
| 705 | 0 /* No specifics */ |
| 706 | }; |
| 707 | |
| 708 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 709 | /*** <<< INCLUDES [J-4-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 710 | |
| 711 | #include <NativeInteger.h> |
| 712 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 713 | /*** <<< TYPE-DECLS [J-4-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 714 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 715 | typedef long J_4_5_t; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 716 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 717 | /*** <<< FUNC-DECLS [J-4-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 718 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 719 | extern asn_TYPE_descriptor_t asn_DEF_J_4_5; |
| 720 | asn_struct_free_f J_4_5_free; |
| 721 | asn_struct_print_f J_4_5_print; |
| 722 | asn_constr_check_f J_4_5_constraint; |
| 723 | ber_type_decoder_f J_4_5_decode_ber; |
| 724 | der_type_encoder_f J_4_5_encode_der; |
| 725 | xer_type_decoder_f J_4_5_decode_xer; |
| 726 | xer_type_encoder_f J_4_5_encode_xer; |
| 727 | oer_type_decoder_f J_4_5_decode_oer; |
| 728 | oer_type_encoder_f J_4_5_encode_oer; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 729 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 730 | /*** <<< CODE [J-4-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 731 | |
| 732 | int |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 733 | J_4_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 734 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 735 | long value; |
| 736 | |
| 737 | if(!sptr) { |
| 738 | ASN__CTFAIL(app_key, td, sptr, |
| 739 | "%s: value not given (%s:%d)", |
| 740 | td->name, __FILE__, __LINE__); |
| 741 | return -1; |
| 742 | } |
| 743 | |
| 744 | value = *(const long *)sptr; |
| 745 | |
| 746 | if((value >= 4 && value <= 5)) { |
| 747 | /* Constraint check succeeded */ |
| 748 | return 0; |
| 749 | } else { |
| 750 | ASN__CTFAIL(app_key, td, sptr, |
| 751 | "%s: constraint failed (%s:%d)", |
| 752 | td->name, __FILE__, __LINE__); |
| 753 | return -1; |
| 754 | } |
| 755 | } |
| 756 | |
| 757 | /* |
| 758 | * This type is implemented using NativeInteger, |
| 759 | * so here we adjust the DEF accordingly. |
| 760 | */ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 761 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 762 | /*** <<< CTDEFS [J-4-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 763 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 764 | static asn_oer_constraints_t asn_OER_type_J_4_5_constr_1 GCC_NOTUSED = { |
| 765 | { 1, 1 } /* (4..5) */, |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 766 | -1}; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 767 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 768 | /*** <<< STAT-DEFS [J-4-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 769 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 770 | static const ber_tlv_tag_t asn_DEF_J_4_5_tags_1[] = { |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 771 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 772 | }; |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 773 | asn_TYPE_descriptor_t asn_DEF_J_4_5 = { |
| 774 | "J-4-5", |
| 775 | "J-4-5", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 776 | &asn_OP_NativeInteger, |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 777 | J_4_5_constraint, |
| 778 | asn_DEF_J_4_5_tags_1, |
| 779 | sizeof(asn_DEF_J_4_5_tags_1) |
| 780 | /sizeof(asn_DEF_J_4_5_tags_1[0]), /* 1 */ |
| 781 | asn_DEF_J_4_5_tags_1, /* Same as above */ |
| 782 | sizeof(asn_DEF_J_4_5_tags_1) |
| 783 | /sizeof(asn_DEF_J_4_5_tags_1[0]), /* 1 */ |
| 784 | &asn_OER_type_J_4_5_constr_1, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 785 | 0, /* No PER visible constraints */ |
| 786 | 0, 0, /* No members */ |
| 787 | 0 /* No specifics */ |
| 788 | }; |
| 789 | |
| 790 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 791 | /*** <<< INCLUDES [K-1-4] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 792 | |
| 793 | #include <NativeInteger.h> |
| 794 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 795 | /*** <<< TYPE-DECLS [K-1-4] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 796 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 797 | typedef long K_1_4_t; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 798 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 799 | /*** <<< FUNC-DECLS [K-1-4] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 800 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 801 | extern asn_TYPE_descriptor_t asn_DEF_K_1_4; |
| 802 | asn_struct_free_f K_1_4_free; |
| 803 | asn_struct_print_f K_1_4_print; |
| 804 | asn_constr_check_f K_1_4_constraint; |
| 805 | ber_type_decoder_f K_1_4_decode_ber; |
| 806 | der_type_encoder_f K_1_4_encode_der; |
| 807 | xer_type_decoder_f K_1_4_decode_xer; |
| 808 | xer_type_encoder_f K_1_4_encode_xer; |
| 809 | oer_type_decoder_f K_1_4_decode_oer; |
| 810 | oer_type_encoder_f K_1_4_encode_oer; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 811 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 812 | /*** <<< CODE [K-1-4] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 813 | |
| 814 | int |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 815 | K_1_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 816 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 817 | long value; |
| 818 | |
| 819 | if(!sptr) { |
| 820 | ASN__CTFAIL(app_key, td, sptr, |
| 821 | "%s: value not given (%s:%d)", |
| 822 | td->name, __FILE__, __LINE__); |
| 823 | return -1; |
| 824 | } |
| 825 | |
| 826 | value = *(const long *)sptr; |
| 827 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 828 | if((value >= 1 && value <= 4)) { |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 829 | /* Constraint check succeeded */ |
| 830 | return 0; |
| 831 | } else { |
| 832 | ASN__CTFAIL(app_key, td, sptr, |
| 833 | "%s: constraint failed (%s:%d)", |
| 834 | td->name, __FILE__, __LINE__); |
| 835 | return -1; |
| 836 | } |
| 837 | } |
| 838 | |
| 839 | /* |
| 840 | * This type is implemented using NativeInteger, |
| 841 | * so here we adjust the DEF accordingly. |
| 842 | */ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 843 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 844 | /*** <<< CTDEFS [K-1-4] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 845 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 846 | static asn_oer_constraints_t asn_OER_type_K_1_4_constr_1 GCC_NOTUSED = { |
| 847 | { 1, 1 } /* (1..4) */, |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 848 | -1}; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 849 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 850 | /*** <<< STAT-DEFS [K-1-4] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 851 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 852 | static const ber_tlv_tag_t asn_DEF_K_1_4_tags_1[] = { |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 853 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 854 | }; |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 855 | asn_TYPE_descriptor_t asn_DEF_K_1_4 = { |
| 856 | "K-1-4", |
| 857 | "K-1-4", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 858 | &asn_OP_NativeInteger, |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 859 | K_1_4_constraint, |
| 860 | asn_DEF_K_1_4_tags_1, |
| 861 | sizeof(asn_DEF_K_1_4_tags_1) |
| 862 | /sizeof(asn_DEF_K_1_4_tags_1[0]), /* 1 */ |
| 863 | asn_DEF_K_1_4_tags_1, /* Same as above */ |
| 864 | sizeof(asn_DEF_K_1_4_tags_1) |
| 865 | /sizeof(asn_DEF_K_1_4_tags_1[0]), /* 1 */ |
| 866 | &asn_OER_type_K_1_4_constr_1, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 867 | 0, /* No PER visible constraints */ |
| 868 | 0, 0, /* No members */ |
| 869 | 0 /* No specifics */ |
| 870 | }; |
| 871 | |
| 872 | |
| 873 | /*** <<< INCLUDES [L-0-5] >>> ***/ |
| 874 | |
| 875 | #include <NativeInteger.h> |
| 876 | |
| 877 | /*** <<< TYPE-DECLS [L-0-5] >>> ***/ |
| 878 | |
| 879 | typedef long L_0_5_t; |
| 880 | |
| 881 | /*** <<< FUNC-DECLS [L-0-5] >>> ***/ |
| 882 | |
| 883 | extern asn_TYPE_descriptor_t asn_DEF_L_0_5; |
| 884 | asn_struct_free_f L_0_5_free; |
| 885 | asn_struct_print_f L_0_5_print; |
| 886 | asn_constr_check_f L_0_5_constraint; |
| 887 | ber_type_decoder_f L_0_5_decode_ber; |
| 888 | der_type_encoder_f L_0_5_encode_der; |
| 889 | xer_type_decoder_f L_0_5_decode_xer; |
| 890 | xer_type_encoder_f L_0_5_encode_xer; |
| 891 | oer_type_decoder_f L_0_5_decode_oer; |
| 892 | oer_type_encoder_f L_0_5_encode_oer; |
| 893 | |
| 894 | /*** <<< CODE [L-0-5] >>> ***/ |
| 895 | |
| 896 | int |
| 897 | L_0_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 898 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 899 | long value; |
| 900 | |
| 901 | if(!sptr) { |
| 902 | ASN__CTFAIL(app_key, td, sptr, |
| 903 | "%s: value not given (%s:%d)", |
| 904 | td->name, __FILE__, __LINE__); |
| 905 | return -1; |
| 906 | } |
| 907 | |
| 908 | value = *(const long *)sptr; |
| 909 | |
| 910 | if(((value == 0) || (value == 5))) { |
| 911 | /* Constraint check succeeded */ |
| 912 | return 0; |
| 913 | } else { |
| 914 | ASN__CTFAIL(app_key, td, sptr, |
| 915 | "%s: constraint failed (%s:%d)", |
| 916 | td->name, __FILE__, __LINE__); |
| 917 | return -1; |
| 918 | } |
| 919 | } |
| 920 | |
| 921 | /* |
| 922 | * This type is implemented using NativeInteger, |
| 923 | * so here we adjust the DEF accordingly. |
| 924 | */ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 925 | |
| 926 | /*** <<< CTDEFS [L-0-5] >>> ***/ |
| 927 | |
| 928 | static asn_oer_constraints_t asn_OER_type_L_0_5_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 929 | { 1, 1 } /* (0..5) */, |
| 930 | -1}; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 931 | |
| 932 | /*** <<< STAT-DEFS [L-0-5] >>> ***/ |
| 933 | |
| 934 | static const ber_tlv_tag_t asn_DEF_L_0_5_tags_1[] = { |
| 935 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 936 | }; |
| 937 | asn_TYPE_descriptor_t asn_DEF_L_0_5 = { |
| 938 | "L-0-5", |
| 939 | "L-0-5", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 940 | &asn_OP_NativeInteger, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 941 | L_0_5_constraint, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 942 | asn_DEF_L_0_5_tags_1, |
| 943 | sizeof(asn_DEF_L_0_5_tags_1) |
| 944 | /sizeof(asn_DEF_L_0_5_tags_1[0]), /* 1 */ |
| 945 | asn_DEF_L_0_5_tags_1, /* Same as above */ |
| 946 | sizeof(asn_DEF_L_0_5_tags_1) |
| 947 | /sizeof(asn_DEF_L_0_5_tags_1[0]), /* 1 */ |
| 948 | &asn_OER_type_L_0_5_constr_1, |
| 949 | 0, /* No PER visible constraints */ |
| 950 | 0, 0, /* No members */ |
| 951 | 0 /* No specifics */ |
| 952 | }; |
| 953 | |
| 954 | |
| 955 | /*** <<< INCLUDES [M-inv] >>> ***/ |
| 956 | |
| 957 | #include <NativeInteger.h> |
| 958 | |
| 959 | /*** <<< TYPE-DECLS [M-inv] >>> ***/ |
| 960 | |
| 961 | typedef long M_inv_t; |
| 962 | |
| 963 | /*** <<< FUNC-DECLS [M-inv] >>> ***/ |
| 964 | |
| 965 | extern asn_TYPE_descriptor_t asn_DEF_M_inv; |
| 966 | asn_struct_free_f M_inv_free; |
| 967 | asn_struct_print_f M_inv_print; |
| 968 | asn_constr_check_f M_inv_constraint; |
| 969 | ber_type_decoder_f M_inv_decode_ber; |
| 970 | der_type_encoder_f M_inv_encode_der; |
| 971 | xer_type_decoder_f M_inv_decode_xer; |
| 972 | xer_type_encoder_f M_inv_encode_xer; |
| 973 | oer_type_decoder_f M_inv_decode_oer; |
| 974 | oer_type_encoder_f M_inv_encode_oer; |
| 975 | |
| 976 | /*** <<< CODE [M-inv] >>> ***/ |
| 977 | |
| 978 | int |
| 979 | M_inv_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 980 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 981 | long value; |
| 982 | |
| 983 | if(!sptr) { |
| 984 | ASN__CTFAIL(app_key, td, sptr, |
| 985 | "%s: value not given (%s:%d)", |
| 986 | td->name, __FILE__, __LINE__); |
| 987 | return -1; |
| 988 | } |
| 989 | |
| 990 | value = *(const long *)sptr; |
| 991 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 992 | if((value >= 0 && value <= 5)) { |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 993 | /* Constraint check succeeded */ |
| 994 | return 0; |
| 995 | } else { |
| 996 | ASN__CTFAIL(app_key, td, sptr, |
| 997 | "%s: constraint failed (%s:%d)", |
| 998 | td->name, __FILE__, __LINE__); |
| 999 | return -1; |
| 1000 | } |
| 1001 | } |
| 1002 | |
| 1003 | /* |
| 1004 | * This type is implemented using NativeInteger, |
| 1005 | * so here we adjust the DEF accordingly. |
| 1006 | */ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1007 | |
| 1008 | /*** <<< CTDEFS [M-inv] >>> ***/ |
| 1009 | |
| 1010 | static asn_oer_constraints_t asn_OER_type_M_inv_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 1011 | { 0, 0 }, |
| 1012 | -1}; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1013 | |
| 1014 | /*** <<< STAT-DEFS [M-inv] >>> ***/ |
| 1015 | |
| 1016 | static const ber_tlv_tag_t asn_DEF_M_inv_tags_1[] = { |
| 1017 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 1018 | }; |
| 1019 | asn_TYPE_descriptor_t asn_DEF_M_inv = { |
| 1020 | "M-inv", |
| 1021 | "M-inv", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 1022 | &asn_OP_NativeInteger, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1023 | M_inv_constraint, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1024 | asn_DEF_M_inv_tags_1, |
| 1025 | sizeof(asn_DEF_M_inv_tags_1) |
| 1026 | /sizeof(asn_DEF_M_inv_tags_1[0]), /* 1 */ |
| 1027 | asn_DEF_M_inv_tags_1, /* Same as above */ |
| 1028 | sizeof(asn_DEF_M_inv_tags_1) |
| 1029 | /sizeof(asn_DEF_M_inv_tags_1[0]), /* 1 */ |
| 1030 | &asn_OER_type_M_inv_constr_1, |
| 1031 | 0, /* No PER visible constraints */ |
| 1032 | 0, 0, /* No members */ |
| 1033 | 0 /* No specifics */ |
| 1034 | }; |
| 1035 | |
| 1036 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1037 | /*** <<< INCLUDES [N-0-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1038 | |
| 1039 | #include <NativeInteger.h> |
| 1040 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1041 | /*** <<< TYPE-DECLS [N-0-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1042 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1043 | typedef long N_0_5_t; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1044 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1045 | /*** <<< FUNC-DECLS [N-0-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1046 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1047 | extern asn_TYPE_descriptor_t asn_DEF_N_0_5; |
| 1048 | asn_struct_free_f N_0_5_free; |
| 1049 | asn_struct_print_f N_0_5_print; |
| 1050 | asn_constr_check_f N_0_5_constraint; |
| 1051 | ber_type_decoder_f N_0_5_decode_ber; |
| 1052 | der_type_encoder_f N_0_5_encode_der; |
| 1053 | xer_type_decoder_f N_0_5_decode_xer; |
| 1054 | xer_type_encoder_f N_0_5_encode_xer; |
| 1055 | oer_type_decoder_f N_0_5_decode_oer; |
| 1056 | oer_type_encoder_f N_0_5_encode_oer; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1057 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1058 | /*** <<< CODE [N-0-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1059 | |
| 1060 | int |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1061 | N_0_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1062 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 1063 | long value; |
| 1064 | |
| 1065 | if(!sptr) { |
| 1066 | ASN__CTFAIL(app_key, td, sptr, |
| 1067 | "%s: value not given (%s:%d)", |
| 1068 | td->name, __FILE__, __LINE__); |
| 1069 | return -1; |
| 1070 | } |
| 1071 | |
| 1072 | value = *(const long *)sptr; |
| 1073 | |
| 1074 | if((value >= 0 && value <= 5)) { |
| 1075 | /* Constraint check succeeded */ |
| 1076 | return 0; |
| 1077 | } else { |
| 1078 | ASN__CTFAIL(app_key, td, sptr, |
| 1079 | "%s: constraint failed (%s:%d)", |
| 1080 | td->name, __FILE__, __LINE__); |
| 1081 | return -1; |
| 1082 | } |
| 1083 | } |
| 1084 | |
| 1085 | /* |
| 1086 | * This type is implemented using NativeInteger, |
| 1087 | * so here we adjust the DEF accordingly. |
| 1088 | */ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1089 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1090 | /*** <<< CTDEFS [N-0-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1091 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1092 | static asn_oer_constraints_t asn_OER_type_N_0_5_constr_1 GCC_NOTUSED = { |
| 1093 | { 1, 1 } /* (0..5) */, |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 1094 | -1}; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1095 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1096 | /*** <<< STAT-DEFS [N-0-5] >>> ***/ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1097 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1098 | static const ber_tlv_tag_t asn_DEF_N_0_5_tags_1[] = { |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1099 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 1100 | }; |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1101 | asn_TYPE_descriptor_t asn_DEF_N_0_5 = { |
| 1102 | "N-0-5", |
| 1103 | "N-0-5", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 1104 | &asn_OP_NativeInteger, |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1105 | N_0_5_constraint, |
| 1106 | asn_DEF_N_0_5_tags_1, |
| 1107 | sizeof(asn_DEF_N_0_5_tags_1) |
| 1108 | /sizeof(asn_DEF_N_0_5_tags_1[0]), /* 1 */ |
| 1109 | asn_DEF_N_0_5_tags_1, /* Same as above */ |
| 1110 | sizeof(asn_DEF_N_0_5_tags_1) |
| 1111 | /sizeof(asn_DEF_N_0_5_tags_1[0]), /* 1 */ |
| 1112 | &asn_OER_type_N_0_5_constr_1, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1113 | 0, /* No PER visible constraints */ |
| 1114 | 0, 0, /* No members */ |
| 1115 | 0 /* No specifics */ |
| 1116 | }; |
| 1117 | |
| 1118 | |
| 1119 | /*** <<< INCLUDES [O-inv] >>> ***/ |
| 1120 | |
| 1121 | #include <NativeInteger.h> |
| 1122 | |
| 1123 | /*** <<< TYPE-DECLS [O-inv] >>> ***/ |
| 1124 | |
| 1125 | typedef long O_inv_t; |
| 1126 | |
| 1127 | /*** <<< FUNC-DECLS [O-inv] >>> ***/ |
| 1128 | |
| 1129 | extern asn_TYPE_descriptor_t asn_DEF_O_inv; |
| 1130 | asn_struct_free_f O_inv_free; |
| 1131 | asn_struct_print_f O_inv_print; |
| 1132 | asn_constr_check_f O_inv_constraint; |
| 1133 | ber_type_decoder_f O_inv_decode_ber; |
| 1134 | der_type_encoder_f O_inv_encode_der; |
| 1135 | xer_type_decoder_f O_inv_decode_xer; |
| 1136 | xer_type_encoder_f O_inv_encode_xer; |
| 1137 | oer_type_decoder_f O_inv_decode_oer; |
| 1138 | oer_type_encoder_f O_inv_encode_oer; |
| 1139 | |
| 1140 | /*** <<< CODE [O-inv] >>> ***/ |
| 1141 | |
| 1142 | int |
| 1143 | O_inv_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 1144 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 1145 | long value; |
| 1146 | |
| 1147 | if(!sptr) { |
| 1148 | ASN__CTFAIL(app_key, td, sptr, |
| 1149 | "%s: value not given (%s:%d)", |
| 1150 | td->name, __FILE__, __LINE__); |
| 1151 | return -1; |
| 1152 | } |
| 1153 | |
| 1154 | value = *(const long *)sptr; |
| 1155 | |
| 1156 | if((value >= 0 && value <= 5)) { |
| 1157 | /* Constraint check succeeded */ |
| 1158 | return 0; |
| 1159 | } else { |
| 1160 | ASN__CTFAIL(app_key, td, sptr, |
| 1161 | "%s: constraint failed (%s:%d)", |
| 1162 | td->name, __FILE__, __LINE__); |
| 1163 | return -1; |
| 1164 | } |
| 1165 | } |
| 1166 | |
| 1167 | /* |
| 1168 | * This type is implemented using NativeInteger, |
| 1169 | * so here we adjust the DEF accordingly. |
| 1170 | */ |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1171 | |
| 1172 | /*** <<< CTDEFS [O-inv] >>> ***/ |
| 1173 | |
| 1174 | static asn_oer_constraints_t asn_OER_type_O_inv_constr_1 GCC_NOTUSED = { |
Lev Walkin | 8041fe8 | 2017-08-02 10:39:01 -0700 | [diff] [blame] | 1175 | { 0, 0 }, |
| 1176 | -1}; |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1177 | |
| 1178 | /*** <<< STAT-DEFS [O-inv] >>> ***/ |
| 1179 | |
| 1180 | static const ber_tlv_tag_t asn_DEF_O_inv_tags_1[] = { |
| 1181 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 1182 | }; |
| 1183 | asn_TYPE_descriptor_t asn_DEF_O_inv = { |
| 1184 | "O-inv", |
| 1185 | "O-inv", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 1186 | &asn_OP_NativeInteger, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1187 | O_inv_constraint, |
Lev Walkin | 5861e8a | 2017-07-31 20:27:05 -0700 | [diff] [blame] | 1188 | asn_DEF_O_inv_tags_1, |
| 1189 | sizeof(asn_DEF_O_inv_tags_1) |
| 1190 | /sizeof(asn_DEF_O_inv_tags_1[0]), /* 1 */ |
| 1191 | asn_DEF_O_inv_tags_1, /* Same as above */ |
| 1192 | sizeof(asn_DEF_O_inv_tags_1) |
| 1193 | /sizeof(asn_DEF_O_inv_tags_1[0]), /* 1 */ |
| 1194 | &asn_OER_type_O_inv_constr_1, |
Lev Walkin | 8aed40c | 2017-07-26 18:50:04 -0700 | [diff] [blame] | 1195 | 0, /* No PER visible constraints */ |
| 1196 | 0, 0, /* No members */ |
| 1197 | 0 /* No specifics */ |
| 1198 | }; |
| 1199 | |
Lev Walkin | 0c68645 | 2017-09-07 22:59:36 -0700 | [diff] [blame] | 1200 | |
| 1201 | /*** <<< INCLUDES [EConstr] >>> ***/ |
| 1202 | |
| 1203 | #include <NativeInteger.h> |
| 1204 | |
| 1205 | /*** <<< TYPE-DECLS [EConstr] >>> ***/ |
| 1206 | |
| 1207 | typedef long EConstr_t; |
| 1208 | |
| 1209 | /*** <<< FUNC-DECLS [EConstr] >>> ***/ |
| 1210 | |
| 1211 | extern asn_TYPE_descriptor_t asn_DEF_EConstr; |
| 1212 | asn_struct_free_f EConstr_free; |
| 1213 | asn_struct_print_f EConstr_print; |
| 1214 | asn_constr_check_f EConstr_constraint; |
| 1215 | ber_type_decoder_f EConstr_decode_ber; |
| 1216 | der_type_encoder_f EConstr_encode_der; |
| 1217 | xer_type_decoder_f EConstr_decode_xer; |
| 1218 | xer_type_encoder_f EConstr_encode_xer; |
| 1219 | oer_type_decoder_f EConstr_decode_oer; |
| 1220 | oer_type_encoder_f EConstr_encode_oer; |
| 1221 | |
| 1222 | /*** <<< CODE [EConstr] >>> ***/ |
| 1223 | |
| 1224 | int |
| 1225 | EConstr_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 1226 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 1227 | long value; |
| 1228 | |
| 1229 | if(!sptr) { |
| 1230 | ASN__CTFAIL(app_key, td, sptr, |
| 1231 | "%s: value not given (%s:%d)", |
| 1232 | td->name, __FILE__, __LINE__); |
| 1233 | return -1; |
| 1234 | } |
| 1235 | |
| 1236 | value = *(const long *)sptr; |
| 1237 | |
| 1238 | if((value >= 1 && value <= 5)) { |
| 1239 | /* Constraint check succeeded */ |
| 1240 | return 0; |
| 1241 | } else { |
| 1242 | ASN__CTFAIL(app_key, td, sptr, |
| 1243 | "%s: constraint failed (%s:%d)", |
| 1244 | td->name, __FILE__, __LINE__); |
| 1245 | return -1; |
| 1246 | } |
| 1247 | } |
| 1248 | |
| 1249 | /* |
| 1250 | * This type is implemented using NativeInteger, |
| 1251 | * so here we adjust the DEF accordingly. |
| 1252 | */ |
| 1253 | |
| 1254 | /*** <<< CTDEFS [EConstr] >>> ***/ |
| 1255 | |
| 1256 | static asn_oer_constraints_t asn_OER_type_EConstr_constr_1 GCC_NOTUSED = { |
| 1257 | { 0, 0 }, |
| 1258 | -1}; |
| 1259 | |
| 1260 | /*** <<< STAT-DEFS [EConstr] >>> ***/ |
| 1261 | |
| 1262 | static const ber_tlv_tag_t asn_DEF_EConstr_tags_1[] = { |
| 1263 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 1264 | }; |
| 1265 | asn_TYPE_descriptor_t asn_DEF_EConstr = { |
| 1266 | "EConstr", |
| 1267 | "EConstr", |
| 1268 | &asn_OP_NativeInteger, |
| 1269 | EConstr_constraint, |
| 1270 | asn_DEF_EConstr_tags_1, |
| 1271 | sizeof(asn_DEF_EConstr_tags_1) |
| 1272 | /sizeof(asn_DEF_EConstr_tags_1[0]), /* 1 */ |
| 1273 | asn_DEF_EConstr_tags_1, /* Same as above */ |
| 1274 | sizeof(asn_DEF_EConstr_tags_1) |
| 1275 | /sizeof(asn_DEF_EConstr_tags_1[0]), /* 1 */ |
| 1276 | &asn_OER_type_EConstr_constr_1, |
| 1277 | 0, /* No PER visible constraints */ |
| 1278 | 0, 0, /* No members */ |
| 1279 | 0 /* No specifics */ |
| 1280 | }; |
| 1281 | |
| 1282 | |
| 1283 | /*** <<< INCLUDES [FConstr] >>> ***/ |
| 1284 | |
| 1285 | #include <NativeInteger.h> |
| 1286 | |
| 1287 | /*** <<< TYPE-DECLS [FConstr] >>> ***/ |
| 1288 | |
| 1289 | typedef long FConstr_t; |
| 1290 | |
| 1291 | /*** <<< FUNC-DECLS [FConstr] >>> ***/ |
| 1292 | |
| 1293 | extern asn_TYPE_descriptor_t asn_DEF_FConstr; |
| 1294 | asn_struct_free_f FConstr_free; |
| 1295 | asn_struct_print_f FConstr_print; |
| 1296 | asn_constr_check_f FConstr_constraint; |
| 1297 | ber_type_decoder_f FConstr_decode_ber; |
| 1298 | der_type_encoder_f FConstr_encode_der; |
| 1299 | xer_type_decoder_f FConstr_decode_xer; |
| 1300 | xer_type_encoder_f FConstr_encode_xer; |
| 1301 | oer_type_decoder_f FConstr_decode_oer; |
| 1302 | oer_type_encoder_f FConstr_encode_oer; |
| 1303 | |
| 1304 | /*** <<< CODE [FConstr] >>> ***/ |
| 1305 | |
| 1306 | int |
| 1307 | FConstr_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 1308 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 1309 | long value; |
| 1310 | |
| 1311 | if(!sptr) { |
| 1312 | ASN__CTFAIL(app_key, td, sptr, |
| 1313 | "%s: value not given (%s:%d)", |
| 1314 | td->name, __FILE__, __LINE__); |
| 1315 | return -1; |
| 1316 | } |
| 1317 | |
| 1318 | value = *(const long *)sptr; |
| 1319 | |
| 1320 | if((value >= 0 && value <= 4)) { |
| 1321 | /* Constraint check succeeded */ |
| 1322 | return 0; |
| 1323 | } else { |
| 1324 | ASN__CTFAIL(app_key, td, sptr, |
| 1325 | "%s: constraint failed (%s:%d)", |
| 1326 | td->name, __FILE__, __LINE__); |
| 1327 | return -1; |
| 1328 | } |
| 1329 | } |
| 1330 | |
| 1331 | /* |
| 1332 | * This type is implemented using NativeInteger, |
| 1333 | * so here we adjust the DEF accordingly. |
| 1334 | */ |
| 1335 | |
| 1336 | /*** <<< CTDEFS [FConstr] >>> ***/ |
| 1337 | |
| 1338 | static asn_oer_constraints_t asn_OER_type_FConstr_constr_1 GCC_NOTUSED = { |
| 1339 | { 1, 1 } /* (0..4) */, |
| 1340 | -1}; |
| 1341 | |
| 1342 | /*** <<< STAT-DEFS [FConstr] >>> ***/ |
| 1343 | |
| 1344 | static const ber_tlv_tag_t asn_DEF_FConstr_tags_1[] = { |
| 1345 | (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) |
| 1346 | }; |
| 1347 | asn_TYPE_descriptor_t asn_DEF_FConstr = { |
| 1348 | "FConstr", |
| 1349 | "FConstr", |
| 1350 | &asn_OP_NativeInteger, |
| 1351 | FConstr_constraint, |
| 1352 | asn_DEF_FConstr_tags_1, |
| 1353 | sizeof(asn_DEF_FConstr_tags_1) |
| 1354 | /sizeof(asn_DEF_FConstr_tags_1[0]), /* 1 */ |
| 1355 | asn_DEF_FConstr_tags_1, /* Same as above */ |
| 1356 | sizeof(asn_DEF_FConstr_tags_1) |
| 1357 | /sizeof(asn_DEF_FConstr_tags_1[0]), /* 1 */ |
| 1358 | &asn_OER_type_FConstr_constr_1, |
| 1359 | 0, /* No PER visible constraints */ |
| 1360 | 0, 0, /* No members */ |
| 1361 | 0 /* No specifics */ |
| 1362 | }; |
| 1363 | |