blob: d1818484c488402a23c98147f026510b76530cfe [file] [log] [blame]
Harald Welte92c45f32010-06-12 18:59:38 +02001/*-
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_SEQUENCE_H_
6#define _CONSTR_SEQUENCE_H_
7
8#include <asn_application.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
Harald Welte41b85d52015-08-31 08:56:53 +020014typedef const struct asn_SEQUENCE_specifics_s {
Harald Welte92c45f32010-06-12 18:59:38 +020015 /*
16 * Target structure description.
17 */
18 int struct_size; /* Size of the target structure. */
19 int ctx_offset; /* Offset of the asn_struct_ctx_t member */
20
21 /*
22 * Tags to members mapping table (sorted).
23 */
Harald Welte41b85d52015-08-31 08:56:53 +020024 const asn_TYPE_tag2member_t *tag2el;
Harald Welte92c45f32010-06-12 18:59:38 +020025 int tag2el_count;
26
27 /*
28 * Optional members of the extensions root (roms) or additions (aoms).
29 * Meaningful for PER.
30 */
Harald Welte41b85d52015-08-31 08:56:53 +020031 const int *oms; /* Optional MemberS */
Harald Welte92c45f32010-06-12 18:59:38 +020032 int roms_count; /* Root optional members count */
33 int aoms_count; /* Additions optional members count */
34
35 /*
36 * Description of an extensions group.
37 */
38 int ext_after; /* Extensions start after this member */
39 int ext_before; /* Extensions stop before this member */
40} asn_SEQUENCE_specifics_t;
41
42
43/*
44 * A set specialized functions dealing with the SEQUENCE type.
45 */
46asn_struct_free_f SEQUENCE_free;
47asn_struct_print_f SEQUENCE_print;
48asn_constr_check_f SEQUENCE_constraint;
49ber_type_decoder_f SEQUENCE_decode_ber;
50der_type_encoder_f SEQUENCE_encode_der;
51xer_type_decoder_f SEQUENCE_decode_xer;
52xer_type_encoder_f SEQUENCE_encode_xer;
53per_type_decoder_f SEQUENCE_decode_uper;
54per_type_encoder_f SEQUENCE_encode_uper;
Harald Welte41b85d52015-08-31 08:56:53 +020055per_type_decoder_f SEQUENCE_decode_aper;
56per_type_encoder_f SEQUENCE_encode_aper;
Harald Welte92c45f32010-06-12 18:59:38 +020057
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* _CONSTR_SEQUENCE_H_ */