blob: 5f589d5c1c0d1ae1d6e970742fc6467153bea79c [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_SEQUENCE_H_
6#define _CONSTR_SEQUENCE_H_
7
vlmd1579582004-09-24 21:00:50 +00008#include <asn_application.h>
vlmfa67ddc2004-06-03 03:38:44 +00009
vlm3a417582005-07-24 09:03:44 +000010#ifdef __cplusplus
11extern "C" {
12#endif
13
vlmef6355b2004-09-29 13:26:15 +000014typedef struct asn_SEQUENCE_specifics_s {
vlmfa67ddc2004-06-03 03:38:44 +000015 /*
16 * Target structure description.
17 */
18 int struct_size; /* Size of the target structure. */
vlmef6355b2004-09-29 13:26:15 +000019 int ctx_offset; /* Offset of the asn_struct_ctx_t member */
vlmfa67ddc2004-06-03 03:38:44 +000020
21 /*
vlm31473082004-06-06 07:20:02 +000022 * Tags to members mapping table (sorted).
23 */
vlmef6355b2004-09-29 13:26:15 +000024 asn_TYPE_tag2member_t *tag2el;
vlm31473082004-06-06 07:20:02 +000025 int tag2el_count;
26
27 /*
vlm337167e2005-11-26 11:25:14 +000028 * Optional members of the extensions root (roms) or additions (aoms).
29 * Meaningful for PER.
30 */
31 int *oms; /* Optional MemberS */
32 int roms_count; /* Root optional members count */
33 int aoms_count; /* Additions optional members count */
34
35 /*
vlmfa67ddc2004-06-03 03:38:44 +000036 * Description of an extensions group.
37 */
vlm337167e2005-11-26 11:25:14 +000038 int ext_after; /* Extensions start after this member */
39 int ext_before; /* Extensions stop before this member */
vlmef6355b2004-09-29 13:26:15 +000040} asn_SEQUENCE_specifics_t;
vlmfa67ddc2004-06-03 03:38:44 +000041
42
43/*
44 * A set specialized functions dealing with the SEQUENCE type.
45 */
vlm39ba4c42004-09-22 16:06:28 +000046asn_struct_free_f SEQUENCE_free;
47asn_struct_print_f SEQUENCE_print;
vlmfa67ddc2004-06-03 03:38:44 +000048asn_constr_check_f SEQUENCE_constraint;
49ber_type_decoder_f SEQUENCE_decode_ber;
50der_type_encoder_f SEQUENCE_encode_der;
vlme1adad52004-10-23 13:27:30 +000051xer_type_decoder_f SEQUENCE_decode_xer;
vlm39ba4c42004-09-22 16:06:28 +000052xer_type_encoder_f SEQUENCE_encode_xer;
vlm337167e2005-11-26 11:25:14 +000053per_type_decoder_f SEQUENCE_decode_uper;
vlm18dd82c2006-08-18 01:34:18 +000054per_type_encoder_f SEQUENCE_encode_uper;
vlmfa67ddc2004-06-03 03:38:44 +000055
vlm3a417582005-07-24 09:03:44 +000056#ifdef __cplusplus
57}
58#endif
59
vlmfa67ddc2004-06-03 03:38:44 +000060#endif /* _CONSTR_SEQUENCE_H_ */