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 | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 10 | typedef struct asn1_SEQUENCE_specifics_s { |
| 11 | /* |
| 12 | * Target structure description. |
| 13 | */ |
| 14 | int struct_size; /* Size of the target structure. */ |
| 15 | int ctx_offset; /* Offset of the ber_dec_ctx_t member */ |
| 16 | |
| 17 | /* |
vlm | 3147308 | 2004-06-06 07:20:02 +0000 | [diff] [blame] | 18 | * Tags to members mapping table (sorted). |
| 19 | */ |
| 20 | asn1_TYPE_tag2member_t *tag2el; |
| 21 | int tag2el_count; |
| 22 | |
| 23 | /* |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24 | * Description of an extensions group. |
| 25 | */ |
| 26 | int ext_after; /* Extensions start after this member */ |
| 27 | int ext_before; /* Extensions stop before this member */ |
| 28 | } asn1_SEQUENCE_specifics_t; |
| 29 | |
| 30 | |
| 31 | /* |
| 32 | * A set specialized functions dealing with the SEQUENCE type. |
| 33 | */ |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 34 | asn_struct_free_f SEQUENCE_free; |
| 35 | asn_struct_print_f SEQUENCE_print; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 36 | asn_constr_check_f SEQUENCE_constraint; |
| 37 | ber_type_decoder_f SEQUENCE_decode_ber; |
| 38 | der_type_encoder_f SEQUENCE_encode_der; |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 39 | xer_type_encoder_f SEQUENCE_encode_xer; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 40 | |
| 41 | #endif /* _CONSTR_SEQUENCE_H_ */ |