Harald Welte | 1989913 | 2015-12-16 13:04:16 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) |
| 3 | * From ASN.1 module "RANAP-PDU" |
| 4 | * found in "../../asn1/ranap/RANAP-PDU.asn" |
| 5 | */ |
| 6 | #include <constr_CHOICE.h> |
| 7 | |
Neels Hofmeyr | f1f2d7c | 2016-01-05 12:00:06 +0100 | [diff] [blame] | 8 | #include <osmocom/ranap/RANAP_RAB-ReleaseFailedList.h> |
Harald Welte | 1989913 | 2015-12-16 13:04:16 +0100 | [diff] [blame] | 9 | |
| 10 | int |
| 11 | RANAP_RAB_ReleaseFailedList_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 12 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 13 | /* Replace with underlying type checker */ |
| 14 | td->check_constraints = asn_DEF_RANAP_RAB_FailedList.check_constraints; |
| 15 | return td->check_constraints(td, sptr, ctfailcb, app_key); |
| 16 | } |
| 17 | |
| 18 | /* |
| 19 | * This type is implemented using RANAP_RAB_FailedList, |
| 20 | * so here we adjust the DEF accordingly. |
| 21 | */ |
| 22 | static void |
| 23 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 24 | td->free_struct = asn_DEF_RANAP_RAB_FailedList.free_struct; |
| 25 | td->print_struct = asn_DEF_RANAP_RAB_FailedList.print_struct; |
| 26 | td->check_constraints = asn_DEF_RANAP_RAB_FailedList.check_constraints; |
| 27 | td->ber_decoder = asn_DEF_RANAP_RAB_FailedList.ber_decoder; |
| 28 | td->der_encoder = asn_DEF_RANAP_RAB_FailedList.der_encoder; |
| 29 | td->xer_decoder = asn_DEF_RANAP_RAB_FailedList.xer_decoder; |
| 30 | td->xer_encoder = asn_DEF_RANAP_RAB_FailedList.xer_encoder; |
| 31 | td->uper_decoder = asn_DEF_RANAP_RAB_FailedList.uper_decoder; |
| 32 | td->uper_encoder = asn_DEF_RANAP_RAB_FailedList.uper_encoder; |
| 33 | td->aper_decoder = asn_DEF_RANAP_RAB_FailedList.aper_decoder; |
| 34 | td->aper_encoder = asn_DEF_RANAP_RAB_FailedList.aper_encoder; |
| 35 | /* The next four lines are here because of -fknown-extern-type */ |
| 36 | td->tags = asn_DEF_RANAP_RAB_FailedList.tags; |
| 37 | td->tags_count = asn_DEF_RANAP_RAB_FailedList.tags_count; |
| 38 | td->all_tags = asn_DEF_RANAP_RAB_FailedList.all_tags; |
| 39 | td->all_tags_count = asn_DEF_RANAP_RAB_FailedList.all_tags_count; |
| 40 | /* End of these lines */ |
| 41 | if(!td->per_constraints) |
| 42 | td->per_constraints = asn_DEF_RANAP_RAB_FailedList.per_constraints; |
| 43 | td->elements = asn_DEF_RANAP_RAB_FailedList.elements; |
| 44 | td->elements_count = asn_DEF_RANAP_RAB_FailedList.elements_count; |
| 45 | td->specifics = asn_DEF_RANAP_RAB_FailedList.specifics; |
| 46 | } |
| 47 | |
| 48 | void |
| 49 | RANAP_RAB_ReleaseFailedList_free(asn_TYPE_descriptor_t *td, |
| 50 | void *struct_ptr, int contents_only) { |
| 51 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 52 | td->free_struct(td, struct_ptr, contents_only); |
| 53 | } |
| 54 | |
| 55 | int |
| 56 | RANAP_RAB_ReleaseFailedList_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
| 57 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 58 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 59 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 60 | } |
| 61 | |
| 62 | asn_dec_rval_t |
| 63 | RANAP_RAB_ReleaseFailedList_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 64 | void **structure, const void *bufptr, size_t size, int tag_mode) { |
| 65 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 66 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
| 67 | } |
| 68 | |
| 69 | asn_enc_rval_t |
| 70 | RANAP_RAB_ReleaseFailedList_encode_der(asn_TYPE_descriptor_t *td, |
| 71 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 72 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 73 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 74 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 75 | } |
| 76 | |
| 77 | asn_dec_rval_t |
| 78 | RANAP_RAB_ReleaseFailedList_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 79 | void **structure, const char *opt_mname, const void *bufptr, size_t size) { |
| 80 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 81 | return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); |
| 82 | } |
| 83 | |
| 84 | asn_enc_rval_t |
| 85 | RANAP_RAB_ReleaseFailedList_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
| 86 | int ilevel, enum xer_encoder_flags_e flags, |
| 87 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 88 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 89 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
| 90 | } |
| 91 | |
| 92 | asn_dec_rval_t |
| 93 | RANAP_RAB_ReleaseFailedList_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 94 | asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { |
| 95 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 96 | return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); |
| 97 | } |
| 98 | |
| 99 | asn_enc_rval_t |
| 100 | RANAP_RAB_ReleaseFailedList_encode_uper(asn_TYPE_descriptor_t *td, |
| 101 | asn_per_constraints_t *constraints, |
| 102 | void *structure, asn_per_outp_t *per_out) { |
| 103 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 104 | return td->uper_encoder(td, constraints, structure, per_out); |
| 105 | } |
| 106 | |
| 107 | asn_enc_rval_t |
| 108 | RANAP_RAB_ReleaseFailedList_encode_aper(asn_TYPE_descriptor_t *td, |
| 109 | asn_per_constraints_t *constraints, |
| 110 | void *structure, asn_per_outp_t *per_out) { |
| 111 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 112 | return td->aper_encoder(td, constraints, structure, per_out); |
| 113 | } |
| 114 | |
| 115 | asn_dec_rval_t |
| 116 | RANAP_RAB_ReleaseFailedList_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 117 | asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { |
| 118 | RANAP_RAB_ReleaseFailedList_1_inherit_TYPE_descriptor(td); |
| 119 | return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); |
| 120 | } |
| 121 | |
| 122 | asn_TYPE_descriptor_t asn_DEF_RANAP_RAB_ReleaseFailedList = { |
| 123 | "RANAP_RAB-ReleaseFailedList", |
| 124 | "RANAP_RAB-ReleaseFailedList", |
| 125 | RANAP_RAB_ReleaseFailedList_free, |
| 126 | RANAP_RAB_ReleaseFailedList_print, |
| 127 | RANAP_RAB_ReleaseFailedList_constraint, |
| 128 | RANAP_RAB_ReleaseFailedList_decode_ber, |
| 129 | RANAP_RAB_ReleaseFailedList_encode_der, |
| 130 | RANAP_RAB_ReleaseFailedList_decode_xer, |
| 131 | RANAP_RAB_ReleaseFailedList_encode_xer, |
| 132 | RANAP_RAB_ReleaseFailedList_decode_uper, |
| 133 | RANAP_RAB_ReleaseFailedList_encode_uper, |
| 134 | RANAP_RAB_ReleaseFailedList_decode_aper, |
| 135 | RANAP_RAB_ReleaseFailedList_encode_aper, |
| 136 | CHOICE_outmost_tag, |
| 137 | 0, /* No effective tags (pointer) */ |
| 138 | 0, /* No effective tags (count) */ |
| 139 | 0, /* No tags (pointer) */ |
| 140 | 0, /* No tags (count) */ |
| 141 | 0, /* No PER visible constraints */ |
| 142 | 0, 0, /* No members */ |
| 143 | 0 /* No specifics */ |
| 144 | }; |
| 145 | |