blob: ea32467c1eeab1610f6d2a1a903ccd488c5e243b [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001/*-
2 * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
5#ifndef _CONSTR_CHOICE_H_
6#define _CONSTR_CHOICE_H_
7
vlmd1579582004-09-24 21:00:50 +00008#include <asn_application.h>
vlmfa67ddc2004-06-03 03:38:44 +00009
vlmef6355b2004-09-29 13:26:15 +000010typedef struct asn_CHOICE_specifics_s {
vlmfa67ddc2004-06-03 03:38:44 +000011 /*
12 * Target structure description.
13 */
14 int struct_size; /* Size of the target structure. */
vlm9de248e2004-10-20 15:50:55 +000015 int ctx_offset; /* Offset of the asn_codec_ctx_t member */
vlmfa67ddc2004-06-03 03:38:44 +000016 int pres_offset; /* Identifier of the present member */
17 int pres_size; /* Size of the identifier (enum) */
18
19 /*
vlmfa67ddc2004-06-03 03:38:44 +000020 * Tags to members mapping table.
21 */
vlmef6355b2004-09-29 13:26:15 +000022 asn_TYPE_tag2member_t *tag2el;
vlmfa67ddc2004-06-03 03:38:44 +000023 int tag2el_count;
24
25 /*
26 * Extensions-related stuff.
27 */
28 int extensible; /* Whether CHOICE is extensible */
vlmef6355b2004-09-29 13:26:15 +000029} asn_CHOICE_specifics_t;
vlmfa67ddc2004-06-03 03:38:44 +000030
31/*
32 * A set specialized functions dealing with the CHOICE type.
33 */
vlm39ba4c42004-09-22 16:06:28 +000034asn_struct_free_f CHOICE_free;
35asn_struct_print_f CHOICE_print;
vlmfa67ddc2004-06-03 03:38:44 +000036asn_constr_check_f CHOICE_constraint;
37ber_type_decoder_f CHOICE_decode_ber;
38der_type_encoder_f CHOICE_encode_der;
vlm6fbdf972004-10-23 14:57:50 +000039xer_type_decoder_f CHOICE_decode_xer;
vlm39ba4c42004-09-22 16:06:28 +000040xer_type_encoder_f CHOICE_encode_xer;
vlmfa67ddc2004-06-03 03:38:44 +000041asn_outmost_tag_f CHOICE_outmost_tag;
vlmfa67ddc2004-06-03 03:38:44 +000042
43#endif /* _CONSTR_CHOICE_H_ */