Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /*- |
| 2 | * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved. |
| 3 | * Redistribution and modifications are permitted subject to BSD license. |
| 4 | */ |
| 5 | #ifndef _CONSTR_SET_OF_H_ |
| 6 | #define _CONSTR_SET_OF_H_ |
| 7 | |
| 8 | #include <constr_TYPE.h> |
| 9 | |
| 10 | typedef struct asn1_SET_OF_element_s { |
| 11 | ber_tlv_tag_t tag; /* Outmost (most immediate) tag */ |
| 12 | asn1_TYPE_descriptor_t |
| 13 | *type; /* Member type descriptor */ |
| 14 | } asn1_SET_OF_element_t; |
| 15 | |
| 16 | typedef struct asn1_SET_OF_specifics_s { |
| 17 | /* |
| 18 | * Target structure description. |
| 19 | */ |
| 20 | int struct_size; /* Size of the target structure. */ |
| 21 | int ctx_offset; /* Offset of the ber_dec_ctx_t member */ |
| 22 | |
| 23 | /* |
| 24 | * Members of the SET OF list. |
| 25 | */ |
| 26 | asn1_SET_OF_element_t *element; |
| 27 | } asn1_SET_OF_specifics_t; |
| 28 | |
| 29 | /* |
| 30 | * A set specialized functions dealing with the SET OF type. |
| 31 | */ |
| 32 | asn_constr_check_f SET_OF_constraint; |
| 33 | ber_type_decoder_f SET_OF_decode_ber; |
| 34 | der_type_encoder_f SET_OF_encode_der; |
| 35 | asn_struct_print_f SET_OF_print; |
| 36 | asn_struct_free_f SET_OF_free; |
| 37 | |
| 38 | #endif /* _CONSTR_SET_OF_H_ */ |