2 * Copyright (c) 2003, 2004, 2005 Lev Walkin <vlm@lionet.info>.
4 * Redistribution and modifications are permitted subject to BSD license.
6 #ifndef _CONSTR_CHOICE_H_
7 #define _CONSTR_CHOICE_H_
9 #include <asn_application.h>
15 typedef struct asn_CHOICE_specifics_s {
17 * Target structure description.
19 int struct_size; /* Size of the target structure. */
20 int ctx_offset; /* Offset of the asn_codec_ctx_t member */
21 int pres_offset; /* Identifier of the present member */
22 int pres_size; /* Size of the identifier (enum) */
25 * Tags to members mapping table.
27 asn_TYPE_tag2member_t *tag2el;
30 /* Canonical ordering of CHOICE elements, for PER */
34 * Extensions-related stuff.
36 int ext_start; /* First member of extensions, or -1 */
37 } asn_CHOICE_specifics_t;
40 * A set specialized functions dealing with the CHOICE type.
42 asn_struct_free_f CHOICE_free;
43 asn_struct_print_f CHOICE_print;
44 asn_constr_check_f CHOICE_constraint;
45 ber_type_decoder_f CHOICE_decode_ber;
46 der_type_encoder_f CHOICE_encode_der;
47 xer_type_decoder_f CHOICE_decode_xer;
48 xer_type_encoder_f CHOICE_encode_xer;
49 per_type_decoder_f CHOICE_decode_uper;
50 per_type_encoder_f CHOICE_encode_uper;
51 asn_outmost_tag_f CHOICE_outmost_tag;
57 #endif /* _CONSTR_CHOICE_H_ */