Lev Walkin | f15320b | 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 | |
Lev Walkin | 11c3e17 | 2004-09-24 21:00:50 +0000 | [diff] [blame] | 8 | #include <asn_application.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 9 | |
Lev Walkin | 21b41ac | 2005-07-24 09:03:44 +0000 | [diff] [blame] | 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
Lev Walkin | d84f603 | 2017-10-03 16:33:59 -0700 | [diff] [blame] | 14 | typedef struct asn_SEQUENCE_specifics_s { |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15 | /* |
| 16 | * Target structure description. |
| 17 | */ |
Lev Walkin | 9ec239e | 2017-08-10 05:46:42 -0700 | [diff] [blame] | 18 | unsigned struct_size; /* Size of the target structure. */ |
| 19 | unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20 | |
| 21 | /* |
Lev Walkin | 4c36e30 | 2004-06-06 07:20:02 +0000 | [diff] [blame] | 22 | * Tags to members mapping table (sorted). |
| 23 | */ |
Wim Lewis | fb6344e | 2014-07-28 12:16:01 -0700 | [diff] [blame] | 24 | const asn_TYPE_tag2member_t *tag2el; |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 25 | unsigned tag2el_count; |
Lev Walkin | 4c36e30 | 2004-06-06 07:20:02 +0000 | [diff] [blame] | 26 | |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 27 | /* |
Lev Walkin | 59b176e | 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 | */ |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 31 | const int *oms; /* Optional MemberS */ |
| 32 | unsigned roms_count; /* Root optional members count */ |
| 33 | unsigned aoms_count; /* Additions optional members count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 34 | |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 35 | /* |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 36 | * Description of an extensions group. |
| 37 | */ |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 38 | signed ext_after; /* Extensions start after this member */ |
| 39 | signed ext_before; /* Extensions stop before this member */ |
Lev Walkin | 5e03376 | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 40 | } asn_SEQUENCE_specifics_t; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 41 | |
| 42 | |
| 43 | /* |
| 44 | * A set specialized functions dealing with the SEQUENCE type. |
| 45 | */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 46 | asn_struct_free_f SEQUENCE_free; |
| 47 | asn_struct_print_f SEQUENCE_print; |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 48 | asn_struct_compare_f SEQUENCE_compare; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 49 | asn_constr_check_f SEQUENCE_constraint; |
| 50 | ber_type_decoder_f SEQUENCE_decode_ber; |
| 51 | der_type_encoder_f SEQUENCE_encode_der; |
Lev Walkin | 1bbc200 | 2004-10-23 13:27:30 +0000 | [diff] [blame] | 52 | xer_type_decoder_f SEQUENCE_decode_xer; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 53 | xer_type_encoder_f SEQUENCE_encode_xer; |
Lev Walkin | 602aacb | 2017-07-24 01:46:41 +0400 | [diff] [blame] | 54 | oer_type_decoder_f SEQUENCE_decode_oer; |
| 55 | oer_type_encoder_f SEQUENCE_encode_oer; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 56 | per_type_decoder_f SEQUENCE_decode_uper; |
Lev Walkin | 523de9e | 2006-08-18 01:34:18 +0000 | [diff] [blame] | 57 | per_type_encoder_f SEQUENCE_encode_uper; |
Lev Walkin | a5972be | 2017-09-29 23:15:58 -0700 | [diff] [blame] | 58 | asn_random_fill_f SEQUENCE_random_fill; |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 59 | extern asn_TYPE_operation_t asn_OP_SEQUENCE; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 60 | |
Lev Walkin | 21b41ac | 2005-07-24 09:03:44 +0000 | [diff] [blame] | 61 | #ifdef __cplusplus |
| 62 | } |
| 63 | #endif |
| 64 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 65 | #endif /* _CONSTR_SEQUENCE_H_ */ |