Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /*- |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 2 | * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3 | * Redistribution and modifications are permitted subject to BSD license. |
| 4 | */ |
Lev Walkin | 96f9921 | 2017-08-29 23:38:31 -0700 | [diff] [blame] | 5 | #ifndef CONSTR_SET_OF_H |
| 6 | #define CONSTR_SET_OF_H |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 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_SET_OF_specifics_s { |
Lev Walkin | 96f9921 | 2017-08-29 23:38:31 -0700 | [diff] [blame] | 15 | /* |
| 16 | * Target structure description. |
| 17 | */ |
| 18 | unsigned struct_size; /* Size of the target structure. */ |
| 19 | unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 20 | |
Lev Walkin | 96f9921 | 2017-08-29 23:38:31 -0700 | [diff] [blame] | 21 | /* XER-specific stuff */ |
| 22 | int as_XMLValueList; /* The member type must be encoded like this */ |
Lev Walkin | 5e03376 | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 23 | } asn_SET_OF_specifics_t; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24 | |
| 25 | /* |
| 26 | * A set specialized functions dealing with the SET OF type. |
| 27 | */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 28 | asn_struct_free_f SET_OF_free; |
| 29 | asn_struct_print_f SET_OF_print; |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 30 | asn_struct_compare_f SET_OF_compare; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 31 | asn_constr_check_f SET_OF_constraint; |
| 32 | ber_type_decoder_f SET_OF_decode_ber; |
| 33 | der_type_encoder_f SET_OF_encode_der; |
Lev Walkin | 8bb4a95 | 2005-02-14 20:15:40 +0000 | [diff] [blame] | 34 | xer_type_decoder_f SET_OF_decode_xer; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 35 | xer_type_encoder_f SET_OF_encode_xer; |
Lev Walkin | 96f9921 | 2017-08-29 23:38:31 -0700 | [diff] [blame] | 36 | oer_type_decoder_f SET_OF_decode_oer; |
| 37 | oer_type_encoder_f SET_OF_encode_oer; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 38 | per_type_decoder_f SET_OF_decode_uper; |
Lev Walkin | 523de9e | 2006-08-18 01:34:18 +0000 | [diff] [blame] | 39 | per_type_encoder_f SET_OF_encode_uper; |
Lev Walkin | a5972be | 2017-09-29 23:15:58 -0700 | [diff] [blame] | 40 | asn_random_fill_f SET_OF_random_fill; |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 41 | extern asn_TYPE_operation_t asn_OP_SET_OF; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 42 | |
Lev Walkin | 21b41ac | 2005-07-24 09:03:44 +0000 | [diff] [blame] | 43 | #ifdef __cplusplus |
| 44 | } |
| 45 | #endif |
| 46 | |
Lev Walkin | 96f9921 | 2017-08-29 23:38:31 -0700 | [diff] [blame] | 47 | #endif /* CONSTR_SET_OF_H */ |