blob: 5fe0bd3c1b5ff72ebe09f4b73d1cbb1ece1909e9 [file] [log] [blame]
Lev Walkin4b553412005-08-14 14:45:44 +00001
2/*** <<< INCLUDES [OK-Integer1] >>> ***/
3
Lev Walkina02fb392005-08-14 15:01:10 +00004#include <NativeInteger.h>
Lev Walkin4b553412005-08-14 14:45:44 +00005
6/*** <<< TYPE-DECLS [OK-Integer1] >>> ***/
7
Lev Walkina02fb392005-08-14 15:01:10 +00008typedef long OK_Integer1_t;
Lev Walkin4b553412005-08-14 14:45:44 +00009
10/*** <<< FUNC-DECLS [OK-Integer1] >>> ***/
11
12extern asn_TYPE_descriptor_t asn_DEF_OK_Integer1;
13asn_struct_free_f OK_Integer1_free;
14asn_struct_print_f OK_Integer1_print;
15asn_constr_check_f OK_Integer1_constraint;
16ber_type_decoder_f OK_Integer1_decode_ber;
17der_type_encoder_f OK_Integer1_encode_der;
18xer_type_decoder_f OK_Integer1_decode_xer;
19xer_type_encoder_f OK_Integer1_encode_xer;
20
21/*** <<< CODE [OK-Integer1] >>> ***/
22
23int
24OK_Integer1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
25 asn_app_consume_bytes_f *app_errlog, void *app_key) {
Lev Walkin4b553412005-08-14 14:45:44 +000026
27 if(!sptr) {
28 _ASN_ERRLOG(app_errlog, app_key,
29 "%s: value not given (%s:%d)",
30 td->name, __FILE__, __LINE__);
31 return -1;
32 }
33
34
35 if(1 /* No applicable constraints whatsoever */) {
36 /* Nothing is here. See below */
37 }
38
39 /* Replace with underlying type checker */
Lev Walkina02fb392005-08-14 15:01:10 +000040 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin4b553412005-08-14 14:45:44 +000041 return td->check_constraints(td, sptr, app_errlog, app_key);
42}
43
44/*
Lev Walkina02fb392005-08-14 15:01:10 +000045 * This type is implemented using NativeInteger,
Lev Walkin4b553412005-08-14 14:45:44 +000046 * so here we adjust the DEF accordingly.
47 */
48static void
49OK_Integer1_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkina02fb392005-08-14 15:01:10 +000050 td->free_struct = asn_DEF_NativeInteger.free_struct;
51 td->print_struct = asn_DEF_NativeInteger.print_struct;
52 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
53 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
54 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
55 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
56 td->elements = asn_DEF_NativeInteger.elements;
57 td->elements_count = asn_DEF_NativeInteger.elements_count;
58 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin4b553412005-08-14 14:45:44 +000059}
60
61void
62OK_Integer1_free(asn_TYPE_descriptor_t *td,
63 void *struct_ptr, int contents_only) {
64 OK_Integer1_1_inherit_TYPE_descriptor(td);
65 td->free_struct(td, struct_ptr, contents_only);
66}
67
68int
69OK_Integer1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
70 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
71 OK_Integer1_1_inherit_TYPE_descriptor(td);
72 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
73}
74
75asn_dec_rval_t
76OK_Integer1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
77 void **structure, const void *bufptr, size_t size, int tag_mode) {
78 OK_Integer1_1_inherit_TYPE_descriptor(td);
79 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
80}
81
82asn_enc_rval_t
83OK_Integer1_encode_der(asn_TYPE_descriptor_t *td,
84 void *structure, int tag_mode, ber_tlv_tag_t tag,
85 asn_app_consume_bytes_f *cb, void *app_key) {
86 OK_Integer1_1_inherit_TYPE_descriptor(td);
87 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
88}
89
90asn_dec_rval_t
91OK_Integer1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
92 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
93 OK_Integer1_1_inherit_TYPE_descriptor(td);
94 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
95}
96
97asn_enc_rval_t
98OK_Integer1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
99 int ilevel, enum xer_encoder_flags_e flags,
100 asn_app_consume_bytes_f *cb, void *app_key) {
101 OK_Integer1_1_inherit_TYPE_descriptor(td);
102 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
103}
104
105
106/*** <<< STAT-DEFS [OK-Integer1] >>> ***/
107
108static ber_tlv_tag_t asn_DEF_OK_Integer1_1_tags[] = {
109 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
110};
111asn_TYPE_descriptor_t asn_DEF_OK_Integer1 = {
112 "OK-Integer1",
113 "OK-Integer1",
114 OK_Integer1_free,
115 OK_Integer1_print,
116 OK_Integer1_constraint,
117 OK_Integer1_decode_ber,
118 OK_Integer1_encode_der,
119 OK_Integer1_decode_xer,
120 OK_Integer1_encode_xer,
121 0, /* Use generic outmost tag fetcher */
122 asn_DEF_OK_Integer1_1_tags,
123 sizeof(asn_DEF_OK_Integer1_1_tags)
124 /sizeof(asn_DEF_OK_Integer1_1_tags[0]), /* 1 */
125 asn_DEF_OK_Integer1_1_tags, /* Same as above */
126 sizeof(asn_DEF_OK_Integer1_1_tags)
127 /sizeof(asn_DEF_OK_Integer1_1_tags[0]), /* 1 */
128 0, 0, /* No members */
129 0 /* No specifics */
130};
131
132
133/*** <<< INCLUDES [OK-Integer2] >>> ***/
134
Lev Walkina02fb392005-08-14 15:01:10 +0000135#include <NativeInteger.h>
Lev Walkin4b553412005-08-14 14:45:44 +0000136
137/*** <<< TYPE-DECLS [OK-Integer2] >>> ***/
138
Lev Walkina02fb392005-08-14 15:01:10 +0000139typedef long OK_Integer2_t;
Lev Walkin4b553412005-08-14 14:45:44 +0000140
141/*** <<< FUNC-DECLS [OK-Integer2] >>> ***/
142
143extern asn_TYPE_descriptor_t asn_DEF_OK_Integer2;
144asn_struct_free_f OK_Integer2_free;
145asn_struct_print_f OK_Integer2_print;
146asn_constr_check_f OK_Integer2_constraint;
147ber_type_decoder_f OK_Integer2_decode_ber;
148der_type_encoder_f OK_Integer2_encode_der;
149xer_type_decoder_f OK_Integer2_decode_xer;
150xer_type_encoder_f OK_Integer2_encode_xer;
151
152/*** <<< CODE [OK-Integer2] >>> ***/
153
154int
155OK_Integer2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
156 asn_app_consume_bytes_f *app_errlog, void *app_key) {
Lev Walkin4b553412005-08-14 14:45:44 +0000157
158 if(!sptr) {
159 _ASN_ERRLOG(app_errlog, app_key,
160 "%s: value not given (%s:%d)",
161 td->name, __FILE__, __LINE__);
162 return -1;
163 }
164
165
166 if(1 /* No applicable constraints whatsoever */) {
167 /* Nothing is here. See below */
168 }
169
170 /* Replace with underlying type checker */
Lev Walkina02fb392005-08-14 15:01:10 +0000171 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin4b553412005-08-14 14:45:44 +0000172 return td->check_constraints(td, sptr, app_errlog, app_key);
173}
174
175/*
Lev Walkina02fb392005-08-14 15:01:10 +0000176 * This type is implemented using NativeInteger,
Lev Walkin4b553412005-08-14 14:45:44 +0000177 * so here we adjust the DEF accordingly.
178 */
179static void
180OK_Integer2_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkina02fb392005-08-14 15:01:10 +0000181 td->free_struct = asn_DEF_NativeInteger.free_struct;
182 td->print_struct = asn_DEF_NativeInteger.print_struct;
183 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
184 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
185 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
186 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
187 td->elements = asn_DEF_NativeInteger.elements;
188 td->elements_count = asn_DEF_NativeInteger.elements_count;
189 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin4b553412005-08-14 14:45:44 +0000190}
191
192void
193OK_Integer2_free(asn_TYPE_descriptor_t *td,
194 void *struct_ptr, int contents_only) {
195 OK_Integer2_1_inherit_TYPE_descriptor(td);
196 td->free_struct(td, struct_ptr, contents_only);
197}
198
199int
200OK_Integer2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
201 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
202 OK_Integer2_1_inherit_TYPE_descriptor(td);
203 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
204}
205
206asn_dec_rval_t
207OK_Integer2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
208 void **structure, const void *bufptr, size_t size, int tag_mode) {
209 OK_Integer2_1_inherit_TYPE_descriptor(td);
210 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
211}
212
213asn_enc_rval_t
214OK_Integer2_encode_der(asn_TYPE_descriptor_t *td,
215 void *structure, int tag_mode, ber_tlv_tag_t tag,
216 asn_app_consume_bytes_f *cb, void *app_key) {
217 OK_Integer2_1_inherit_TYPE_descriptor(td);
218 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
219}
220
221asn_dec_rval_t
222OK_Integer2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
223 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
224 OK_Integer2_1_inherit_TYPE_descriptor(td);
225 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
226}
227
228asn_enc_rval_t
229OK_Integer2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
230 int ilevel, enum xer_encoder_flags_e flags,
231 asn_app_consume_bytes_f *cb, void *app_key) {
232 OK_Integer2_1_inherit_TYPE_descriptor(td);
233 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
234}
235
236
237/*** <<< STAT-DEFS [OK-Integer2] >>> ***/
238
239static ber_tlv_tag_t asn_DEF_OK_Integer2_1_tags[] = {
240 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
241};
242asn_TYPE_descriptor_t asn_DEF_OK_Integer2 = {
243 "OK-Integer2",
244 "OK-Integer2",
245 OK_Integer2_free,
246 OK_Integer2_print,
247 OK_Integer2_constraint,
248 OK_Integer2_decode_ber,
249 OK_Integer2_encode_der,
250 OK_Integer2_decode_xer,
251 OK_Integer2_encode_xer,
252 0, /* Use generic outmost tag fetcher */
253 asn_DEF_OK_Integer2_1_tags,
254 sizeof(asn_DEF_OK_Integer2_1_tags)
255 /sizeof(asn_DEF_OK_Integer2_1_tags[0]), /* 1 */
256 asn_DEF_OK_Integer2_1_tags, /* Same as above */
257 sizeof(asn_DEF_OK_Integer2_1_tags)
258 /sizeof(asn_DEF_OK_Integer2_1_tags[0]), /* 1 */
259 0, 0, /* No members */
260 0 /* No specifics */
261};
262
263
264/*** <<< INCLUDES [OK-Integer3] >>> ***/
265
Lev Walkina02fb392005-08-14 15:01:10 +0000266#include <NativeInteger.h>
Lev Walkin4b553412005-08-14 14:45:44 +0000267
268/*** <<< TYPE-DECLS [OK-Integer3] >>> ***/
269
Lev Walkina02fb392005-08-14 15:01:10 +0000270typedef long OK_Integer3_t;
Lev Walkin4b553412005-08-14 14:45:44 +0000271
272/*** <<< FUNC-DECLS [OK-Integer3] >>> ***/
273
274extern asn_TYPE_descriptor_t asn_DEF_OK_Integer3;
275asn_struct_free_f OK_Integer3_free;
276asn_struct_print_f OK_Integer3_print;
277asn_constr_check_f OK_Integer3_constraint;
278ber_type_decoder_f OK_Integer3_decode_ber;
279der_type_encoder_f OK_Integer3_encode_der;
280xer_type_decoder_f OK_Integer3_decode_xer;
281xer_type_encoder_f OK_Integer3_encode_xer;
282
283/*** <<< CODE [OK-Integer3] >>> ***/
284
285int
286OK_Integer3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
287 asn_app_consume_bytes_f *app_errlog, void *app_key) {
Lev Walkin4b553412005-08-14 14:45:44 +0000288
289 if(!sptr) {
290 _ASN_ERRLOG(app_errlog, app_key,
291 "%s: value not given (%s:%d)",
292 td->name, __FILE__, __LINE__);
293 return -1;
294 }
295
296
297 if(1 /* No applicable constraints whatsoever */) {
298 /* Nothing is here. See below */
299 }
300
301 /* Replace with underlying type checker */
Lev Walkina02fb392005-08-14 15:01:10 +0000302 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin4b553412005-08-14 14:45:44 +0000303 return td->check_constraints(td, sptr, app_errlog, app_key);
304}
305
306/*
Lev Walkina02fb392005-08-14 15:01:10 +0000307 * This type is implemented using NativeInteger,
Lev Walkin4b553412005-08-14 14:45:44 +0000308 * so here we adjust the DEF accordingly.
309 */
310static void
311OK_Integer3_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkina02fb392005-08-14 15:01:10 +0000312 td->free_struct = asn_DEF_NativeInteger.free_struct;
313 td->print_struct = asn_DEF_NativeInteger.print_struct;
314 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
315 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
316 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
317 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
318 td->elements = asn_DEF_NativeInteger.elements;
319 td->elements_count = asn_DEF_NativeInteger.elements_count;
320 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin4b553412005-08-14 14:45:44 +0000321}
322
323void
324OK_Integer3_free(asn_TYPE_descriptor_t *td,
325 void *struct_ptr, int contents_only) {
326 OK_Integer3_1_inherit_TYPE_descriptor(td);
327 td->free_struct(td, struct_ptr, contents_only);
328}
329
330int
331OK_Integer3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
332 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
333 OK_Integer3_1_inherit_TYPE_descriptor(td);
334 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
335}
336
337asn_dec_rval_t
338OK_Integer3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
339 void **structure, const void *bufptr, size_t size, int tag_mode) {
340 OK_Integer3_1_inherit_TYPE_descriptor(td);
341 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
342}
343
344asn_enc_rval_t
345OK_Integer3_encode_der(asn_TYPE_descriptor_t *td,
346 void *structure, int tag_mode, ber_tlv_tag_t tag,
347 asn_app_consume_bytes_f *cb, void *app_key) {
348 OK_Integer3_1_inherit_TYPE_descriptor(td);
349 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
350}
351
352asn_dec_rval_t
353OK_Integer3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
354 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
355 OK_Integer3_1_inherit_TYPE_descriptor(td);
356 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
357}
358
359asn_enc_rval_t
360OK_Integer3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
361 int ilevel, enum xer_encoder_flags_e flags,
362 asn_app_consume_bytes_f *cb, void *app_key) {
363 OK_Integer3_1_inherit_TYPE_descriptor(td);
364 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
365}
366
367
368/*** <<< STAT-DEFS [OK-Integer3] >>> ***/
369
370static ber_tlv_tag_t asn_DEF_OK_Integer3_1_tags[] = {
371 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
372};
373asn_TYPE_descriptor_t asn_DEF_OK_Integer3 = {
374 "OK-Integer3",
375 "OK-Integer3",
376 OK_Integer3_free,
377 OK_Integer3_print,
378 OK_Integer3_constraint,
379 OK_Integer3_decode_ber,
380 OK_Integer3_encode_der,
381 OK_Integer3_decode_xer,
382 OK_Integer3_encode_xer,
383 0, /* Use generic outmost tag fetcher */
384 asn_DEF_OK_Integer3_1_tags,
385 sizeof(asn_DEF_OK_Integer3_1_tags)
386 /sizeof(asn_DEF_OK_Integer3_1_tags[0]), /* 1 */
387 asn_DEF_OK_Integer3_1_tags, /* Same as above */
388 sizeof(asn_DEF_OK_Integer3_1_tags)
389 /sizeof(asn_DEF_OK_Integer3_1_tags[0]), /* 1 */
390 0, 0, /* No members */
391 0 /* No specifics */
392};
393
394
395/*** <<< INCLUDES [OK-Integer4] >>> ***/
396
Lev Walkina02fb392005-08-14 15:01:10 +0000397#include <NativeInteger.h>
Lev Walkin4b553412005-08-14 14:45:44 +0000398
399/*** <<< TYPE-DECLS [OK-Integer4] >>> ***/
400
Lev Walkina02fb392005-08-14 15:01:10 +0000401typedef long OK_Integer4_t;
Lev Walkin4b553412005-08-14 14:45:44 +0000402
403/*** <<< FUNC-DECLS [OK-Integer4] >>> ***/
404
405extern asn_TYPE_descriptor_t asn_DEF_OK_Integer4;
406asn_struct_free_f OK_Integer4_free;
407asn_struct_print_f OK_Integer4_print;
408asn_constr_check_f OK_Integer4_constraint;
409ber_type_decoder_f OK_Integer4_decode_ber;
410der_type_encoder_f OK_Integer4_encode_der;
411xer_type_decoder_f OK_Integer4_decode_xer;
412xer_type_encoder_f OK_Integer4_encode_xer;
413
414/*** <<< CODE [OK-Integer4] >>> ***/
415
416int
417OK_Integer4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
418 asn_app_consume_bytes_f *app_errlog, void *app_key) {
Lev Walkin4b553412005-08-14 14:45:44 +0000419
420 if(!sptr) {
421 _ASN_ERRLOG(app_errlog, app_key,
422 "%s: value not given (%s:%d)",
423 td->name, __FILE__, __LINE__);
424 return -1;
425 }
426
427
428 if(1 /* No applicable constraints whatsoever */) {
429 /* Nothing is here. See below */
430 }
431
432 /* Replace with underlying type checker */
Lev Walkina02fb392005-08-14 15:01:10 +0000433 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin4b553412005-08-14 14:45:44 +0000434 return td->check_constraints(td, sptr, app_errlog, app_key);
435}
436
437/*
Lev Walkina02fb392005-08-14 15:01:10 +0000438 * This type is implemented using NativeInteger,
Lev Walkin4b553412005-08-14 14:45:44 +0000439 * so here we adjust the DEF accordingly.
440 */
441static void
442OK_Integer4_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkina02fb392005-08-14 15:01:10 +0000443 td->free_struct = asn_DEF_NativeInteger.free_struct;
444 td->print_struct = asn_DEF_NativeInteger.print_struct;
445 td->ber_decoder = asn_DEF_NativeInteger.ber_decoder;
446 td->der_encoder = asn_DEF_NativeInteger.der_encoder;
447 td->xer_decoder = asn_DEF_NativeInteger.xer_decoder;
448 td->xer_encoder = asn_DEF_NativeInteger.xer_encoder;
449 td->elements = asn_DEF_NativeInteger.elements;
450 td->elements_count = asn_DEF_NativeInteger.elements_count;
451 td->specifics = asn_DEF_NativeInteger.specifics;
Lev Walkin4b553412005-08-14 14:45:44 +0000452}
453
454void
455OK_Integer4_free(asn_TYPE_descriptor_t *td,
456 void *struct_ptr, int contents_only) {
457 OK_Integer4_1_inherit_TYPE_descriptor(td);
458 td->free_struct(td, struct_ptr, contents_only);
459}
460
461int
462OK_Integer4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
463 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
464 OK_Integer4_1_inherit_TYPE_descriptor(td);
465 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
466}
467
468asn_dec_rval_t
469OK_Integer4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
470 void **structure, const void *bufptr, size_t size, int tag_mode) {
471 OK_Integer4_1_inherit_TYPE_descriptor(td);
472 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
473}
474
475asn_enc_rval_t
476OK_Integer4_encode_der(asn_TYPE_descriptor_t *td,
477 void *structure, int tag_mode, ber_tlv_tag_t tag,
478 asn_app_consume_bytes_f *cb, void *app_key) {
479 OK_Integer4_1_inherit_TYPE_descriptor(td);
480 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
481}
482
483asn_dec_rval_t
484OK_Integer4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
485 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
486 OK_Integer4_1_inherit_TYPE_descriptor(td);
487 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
488}
489
490asn_enc_rval_t
491OK_Integer4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
492 int ilevel, enum xer_encoder_flags_e flags,
493 asn_app_consume_bytes_f *cb, void *app_key) {
494 OK_Integer4_1_inherit_TYPE_descriptor(td);
495 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
496}
497
498
499/*** <<< STAT-DEFS [OK-Integer4] >>> ***/
500
501static ber_tlv_tag_t asn_DEF_OK_Integer4_1_tags[] = {
502 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
503};
504asn_TYPE_descriptor_t asn_DEF_OK_Integer4 = {
505 "OK-Integer4",
506 "OK-Integer4",
507 OK_Integer4_free,
508 OK_Integer4_print,
509 OK_Integer4_constraint,
510 OK_Integer4_decode_ber,
511 OK_Integer4_encode_der,
512 OK_Integer4_decode_xer,
513 OK_Integer4_encode_xer,
514 0, /* Use generic outmost tag fetcher */
515 asn_DEF_OK_Integer4_1_tags,
516 sizeof(asn_DEF_OK_Integer4_1_tags)
517 /sizeof(asn_DEF_OK_Integer4_1_tags[0]), /* 1 */
518 asn_DEF_OK_Integer4_1_tags, /* Same as above */
519 sizeof(asn_DEF_OK_Integer4_1_tags)
520 /sizeof(asn_DEF_OK_Integer4_1_tags[0]), /* 1 */
521 0, 0, /* No members */
522 0 /* No specifics */
523};
524
525
526/*** <<< INCLUDES [NO-Integer5] >>> ***/
527
528#include <INTEGER.h>
529
530/*** <<< TYPE-DECLS [NO-Integer5] >>> ***/
531
532typedef INTEGER_t NO_Integer5_t;
533
534/*** <<< FUNC-DECLS [NO-Integer5] >>> ***/
535
536extern asn_TYPE_descriptor_t asn_DEF_NO_Integer5;
537asn_struct_free_f NO_Integer5_free;
538asn_struct_print_f NO_Integer5_print;
539asn_constr_check_f NO_Integer5_constraint;
540ber_type_decoder_f NO_Integer5_decode_ber;
541der_type_encoder_f NO_Integer5_encode_der;
542xer_type_decoder_f NO_Integer5_decode_xer;
543xer_type_encoder_f NO_Integer5_encode_xer;
544
545/*** <<< CODE [NO-Integer5] >>> ***/
546
547int
548NO_Integer5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
549 asn_app_consume_bytes_f *app_errlog, void *app_key) {
550 const INTEGER_t *st = (const INTEGER_t *)sptr;
551
552 if(!sptr) {
553 _ASN_ERRLOG(app_errlog, app_key,
554 "%s: value not given (%s:%d)",
555 td->name, __FILE__, __LINE__);
556 return -1;
557 }
558
559
560 if(1 /* No applicable constraints whatsoever */) {
561 /* Nothing is here. See below */
562 }
563
564 /* Replace with underlying type checker */
565 td->check_constraints = asn_DEF_INTEGER.check_constraints;
566 return td->check_constraints(td, sptr, app_errlog, app_key);
567}
568
569/*
570 * This type is implemented using INTEGER,
571 * so here we adjust the DEF accordingly.
572 */
573static void
574NO_Integer5_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
575 td->free_struct = asn_DEF_INTEGER.free_struct;
576 td->print_struct = asn_DEF_INTEGER.print_struct;
577 td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
578 td->der_encoder = asn_DEF_INTEGER.der_encoder;
579 td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
580 td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
581 td->elements = asn_DEF_INTEGER.elements;
582 td->elements_count = asn_DEF_INTEGER.elements_count;
583 td->specifics = asn_DEF_INTEGER.specifics;
584}
585
586void
587NO_Integer5_free(asn_TYPE_descriptor_t *td,
588 void *struct_ptr, int contents_only) {
589 NO_Integer5_1_inherit_TYPE_descriptor(td);
590 td->free_struct(td, struct_ptr, contents_only);
591}
592
593int
594NO_Integer5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
595 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
596 NO_Integer5_1_inherit_TYPE_descriptor(td);
597 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
598}
599
600asn_dec_rval_t
601NO_Integer5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
602 void **structure, const void *bufptr, size_t size, int tag_mode) {
603 NO_Integer5_1_inherit_TYPE_descriptor(td);
604 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
605}
606
607asn_enc_rval_t
608NO_Integer5_encode_der(asn_TYPE_descriptor_t *td,
609 void *structure, int tag_mode, ber_tlv_tag_t tag,
610 asn_app_consume_bytes_f *cb, void *app_key) {
611 NO_Integer5_1_inherit_TYPE_descriptor(td);
612 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
613}
614
615asn_dec_rval_t
616NO_Integer5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
617 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
618 NO_Integer5_1_inherit_TYPE_descriptor(td);
619 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
620}
621
622asn_enc_rval_t
623NO_Integer5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
624 int ilevel, enum xer_encoder_flags_e flags,
625 asn_app_consume_bytes_f *cb, void *app_key) {
626 NO_Integer5_1_inherit_TYPE_descriptor(td);
627 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
628}
629
630
631/*** <<< STAT-DEFS [NO-Integer5] >>> ***/
632
633static ber_tlv_tag_t asn_DEF_NO_Integer5_1_tags[] = {
634 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
635};
636asn_TYPE_descriptor_t asn_DEF_NO_Integer5 = {
637 "NO-Integer5",
638 "NO-Integer5",
639 NO_Integer5_free,
640 NO_Integer5_print,
641 NO_Integer5_constraint,
642 NO_Integer5_decode_ber,
643 NO_Integer5_encode_der,
644 NO_Integer5_decode_xer,
645 NO_Integer5_encode_xer,
646 0, /* Use generic outmost tag fetcher */
647 asn_DEF_NO_Integer5_1_tags,
648 sizeof(asn_DEF_NO_Integer5_1_tags)
649 /sizeof(asn_DEF_NO_Integer5_1_tags[0]), /* 1 */
650 asn_DEF_NO_Integer5_1_tags, /* Same as above */
651 sizeof(asn_DEF_NO_Integer5_1_tags)
652 /sizeof(asn_DEF_NO_Integer5_1_tags[0]), /* 1 */
653 0, 0, /* No members */
654 0 /* No specifics */
655};
656