vlm | fa67ddc | 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 | |
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 | ef6355b | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 10 | typedef struct asn_SET_OF_specifics_s { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11 | /* |
| 12 | * Target structure description. |
| 13 | */ |
| 14 | int struct_size; /* Size of the target structure. */ |
vlm | ef6355b | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 15 | int ctx_offset; /* Offset of the asn_struct_ctx_t member */ |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 16 | |
| 17 | /* XER-specific stuff */ |
| 18 | int as_XMLValueList; /* The member type must be encoded like this */ |
vlm | ef6355b | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 19 | } asn_SET_OF_specifics_t; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20 | |
| 21 | /* |
| 22 | * A set specialized functions dealing with the SET OF type. |
| 23 | */ |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 24 | asn_struct_free_f SET_OF_free; |
| 25 | asn_struct_print_f SET_OF_print; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 26 | asn_constr_check_f SET_OF_constraint; |
| 27 | ber_type_decoder_f SET_OF_decode_ber; |
| 28 | der_type_encoder_f SET_OF_encode_der; |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 29 | xer_type_encoder_f SET_OF_encode_xer; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 30 | |
| 31 | #endif /* _CONSTR_SET_OF_H_ */ |