asn1c/skeletons/constr_CHOICE.h

58 lines
1.4 KiB
C
Raw Normal View History

2004-06-03 03:38:44 +00:00
/*-
2005-11-26 11:25:14 +00:00
* Copyright (c) 2003, 2004, 2005 Lev Walkin <vlm@lionet.info>.
* All rights reserved.
2004-06-03 03:38:44 +00:00
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _CONSTR_CHOICE_H_
#define _CONSTR_CHOICE_H_
2004-09-24 21:00:50 +00:00
#include <asn_application.h>
2004-06-03 03:38:44 +00:00
2005-07-24 09:03:44 +00:00
#ifdef __cplusplus
extern "C" {
#endif
typedef const struct asn_CHOICE_specifics_s {
2004-06-03 03:38:44 +00:00
/*
* Target structure description.
*/
int struct_size; /* Size of the target structure. */
2004-10-20 15:50:55 +00:00
int ctx_offset; /* Offset of the asn_codec_ctx_t member */
2004-06-03 03:38:44 +00:00
int pres_offset; /* Identifier of the present member */
int pres_size; /* Size of the identifier (enum) */
/*
* Tags to members mapping table.
*/
const asn_TYPE_tag2member_t *tag2el;
2004-06-03 03:38:44 +00:00
int tag2el_count;
2005-11-26 11:25:14 +00:00
/* Canonical ordering of CHOICE elements, for PER */
int *canonical_order;
2004-06-03 03:38:44 +00:00
/*
* Extensions-related stuff.
*/
2005-11-26 11:25:14 +00:00
int ext_start; /* First member of extensions, or -1 */
2004-09-29 13:26:15 +00:00
} asn_CHOICE_specifics_t;
2004-06-03 03:38:44 +00:00
/*
* A set specialized functions dealing with the CHOICE type.
*/
2004-09-22 16:06:28 +00:00
asn_struct_free_f CHOICE_free;
asn_struct_print_f CHOICE_print;
2004-06-03 03:38:44 +00:00
asn_constr_check_f CHOICE_constraint;
ber_type_decoder_f CHOICE_decode_ber;
der_type_encoder_f CHOICE_encode_der;
2004-10-23 14:57:50 +00:00
xer_type_decoder_f CHOICE_decode_xer;
2004-09-22 16:06:28 +00:00
xer_type_encoder_f CHOICE_encode_xer;
2005-11-26 11:25:14 +00:00
per_type_decoder_f CHOICE_decode_uper;
2006-08-18 01:34:18 +00:00
per_type_encoder_f CHOICE_encode_uper;
2004-06-03 03:38:44 +00:00
asn_outmost_tag_f CHOICE_outmost_tag;
2005-07-24 09:03:44 +00:00
#ifdef __cplusplus
}
#endif
2004-06-03 03:38:44 +00:00
#endif /* _CONSTR_CHOICE_H_ */