vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /*- |
| 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 | |
vlm | d157958 | 2004-09-24 21:00:50 +0000 | [diff] [blame] | 8 | #include <asn_application.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 9 | |
vlm | 3a41758 | 2005-07-24 09:03:44 +0000 | [diff] [blame] | 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
vlm | ef6355b | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 14 | typedef struct asn_SEQUENCE_specifics_s { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15 | /* |
| 16 | * Target structure description. |
| 17 | */ |
| 18 | int struct_size; /* Size of the target structure. */ |
vlm | ef6355b | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 19 | int ctx_offset; /* Offset of the asn_struct_ctx_t member */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20 | |
| 21 | /* |
vlm | 3147308 | 2004-06-06 07:20:02 +0000 | [diff] [blame] | 22 | * Tags to members mapping table (sorted). |
| 23 | */ |
vlm | ef6355b | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 24 | asn_TYPE_tag2member_t *tag2el; |
vlm | 3147308 | 2004-06-06 07:20:02 +0000 | [diff] [blame] | 25 | int tag2el_count; |
| 26 | |
| 27 | /* |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 28 | * 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 | /* |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 36 | * Description of an extensions group. |
| 37 | */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 38 | int ext_after; /* Extensions start after this member */ |
| 39 | int ext_before; /* Extensions stop before this member */ |
vlm | ef6355b | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 40 | } asn_SEQUENCE_specifics_t; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 41 | |
| 42 | |
| 43 | /* |
| 44 | * A set specialized functions dealing with the SEQUENCE type. |
| 45 | */ |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 46 | asn_struct_free_f SEQUENCE_free; |
| 47 | asn_struct_print_f SEQUENCE_print; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 48 | asn_constr_check_f SEQUENCE_constraint; |
| 49 | ber_type_decoder_f SEQUENCE_decode_ber; |
| 50 | der_type_encoder_f SEQUENCE_encode_der; |
vlm | e1adad5 | 2004-10-23 13:27:30 +0000 | [diff] [blame] | 51 | xer_type_decoder_f SEQUENCE_decode_xer; |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 52 | xer_type_encoder_f SEQUENCE_encode_xer; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 53 | per_type_decoder_f SEQUENCE_decode_uper; |
vlm | 18dd82c | 2006-08-18 01:34:18 +0000 | [diff] [blame] | 54 | per_type_encoder_f SEQUENCE_encode_uper; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 55 | |
vlm | 3a41758 | 2005-07-24 09:03:44 +0000 | [diff] [blame] | 56 | #ifdef __cplusplus |
| 57 | } |
| 58 | #endif |
| 59 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 60 | #endif /* _CONSTR_SEQUENCE_H_ */ |