| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef _CONSTR_SET_H_ |
| 6 |
#define _CONSTR_SET_H_ |
| 7 |
|
| 8 |
#include <asn_application.h> |
| 9 |
|
| 10 |
#ifdef __cplusplus |
| 11 |
extern "C" { |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
typedef const struct asn_SET_specifics_s { |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
int struct_size; |
| 20 |
int ctx_offset; |
| 21 |
int pres_offset; |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
const asn_TYPE_tag2member_t *tag2el; |
| 29 |
int tag2el_count; |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
const asn_TYPE_tag2member_t *tag2el_cxer; |
| 36 |
int tag2el_cxer_count; |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
int extensible; |
| 42 |
const unsigned int *_mandatory_elements; |
| 43 |
} asn_SET_specifics_t; |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
asn_struct_free_f SET_free; |
| 49 |
asn_struct_print_f SET_print; |
| 50 |
asn_constr_check_f SET_constraint; |
| 51 |
ber_type_decoder_f SET_decode_ber; |
| 52 |
der_type_encoder_f SET_encode_der; |
| 53 |
xer_type_decoder_f SET_decode_xer; |
| 54 |
xer_type_encoder_f SET_encode_xer; |
| 55 |
per_type_decoder_f SET_decode_uper; |
| 56 |
per_type_encoder_f SET_encode_uper; |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
#define ASN_SET_ISPRESENT(set_ptr, PR_x) \ |
| 67 |
ASN_SET_ISPRESENT2(&((set_ptr)->_presence_map), PR_x) |
| 68 |
#define ASN_SET_ISPRESENT2(map_ptr, PR_x) \ |
| 69 |
(((unsigned int *)(map_ptr)) \ |
| 70 |
[(PR_x) / (8 * sizeof(unsigned int))] \ |
| 71 |
& (1 << ((8 * sizeof(unsigned int)) - 1 \ |
| 72 |
- ((PR_x) % (8 * sizeof(unsigned int)))))) |
| 73 |
|
| 74 |
#define ASN_SET_MKPRESENT(map_ptr, PR_x) \ |
| 75 |
(((unsigned int *)(map_ptr)) \ |
| 76 |
[(PR_x) / (8 * sizeof(unsigned int))] \ |
| 77 |
|= (1 << ((8 * sizeof(unsigned int)) - 1 \ |
| 78 |
- ((PR_x) % (8 * sizeof(unsigned int)))))) |
| 79 |
|
| 80 |
#ifdef __cplusplus |
| 81 |
} |
| 82 |
#endif |
| 83 |
|
| 84 |
#endif |