3 * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
4 * Redistribution and modifications are permitted subject to BSD license.
6 #ifndef _CONSTR_SEQUENCE_H_
7 #define _CONSTR_SEQUENCE_H_
9 #include <asn_application.h>
15 typedef struct asn_SEQUENCE_specifics_s {
17 * Target structure description.
19 unsigned struct_size; /* Size of the target structure. */
20 unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */
23 * Tags to members mapping table (sorted).
25 const asn_TYPE_tag2member_t *tag2el;
26 unsigned tag2el_count;
29 * Optional members of the extensions root (roms) or additions (aoms).
32 const int *oms; /* Optional MemberS */
33 unsigned roms_count; /* Root optional members count */
34 unsigned aoms_count; /* Additions optional members count */
37 * Description of an extensions group.
38 * Root components are clustered at the beginning of the structure,
39 * whereas extensions are clustered at the end. -1 means not extensible.
41 signed first_extension; /* First extension addition */
42 } asn_SEQUENCE_specifics_t;
46 * A set specialized functions dealing with the SEQUENCE type.
48 asn_struct_free_f SEQUENCE_free;
49 asn_struct_print_f SEQUENCE_print;
50 asn_struct_compare_f SEQUENCE_compare;
51 asn_constr_check_f SEQUENCE_constraint;
52 ber_type_decoder_f SEQUENCE_decode_ber;
53 der_type_encoder_f SEQUENCE_encode_der;
54 xer_type_decoder_f SEQUENCE_decode_xer;
55 xer_type_encoder_f SEQUENCE_encode_xer;
56 oer_type_decoder_f SEQUENCE_decode_oer;
57 oer_type_encoder_f SEQUENCE_encode_oer;
58 per_type_decoder_f SEQUENCE_decode_uper;
59 per_type_encoder_f SEQUENCE_encode_uper;
60 per_type_decoder_f SEQUENCE_decode_aper;
61 per_type_encoder_f SEQUENCE_encode_aper;
62 asn_random_fill_f SEQUENCE_random_fill;
63 extern asn_TYPE_operation_t asn_OP_SEQUENCE;
69 #endif /* _CONSTR_SEQUENCE_H_ */