blob: e2c6d8fd0cc438e8870a5aa4c8399df5f572defb [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001/*-
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
10typedef struct asn1_SET_OF_element_s {
11 ber_tlv_tag_t tag; /* Outmost (most immediate) tag */
vlm31473082004-06-06 07:20:02 +000012 asn1_TYPE_descriptor_t *type; /* Member type descriptor */
vlmfa67ddc2004-06-03 03:38:44 +000013} asn1_SET_OF_element_t;
14
15typedef struct asn1_SET_OF_specifics_s {
16 /*
17 * Target structure description.
18 */
19 int struct_size; /* Size of the target structure. */
20 int ctx_offset; /* Offset of the ber_dec_ctx_t member */
21
22 /*
23 * Members of the SET OF list.
24 */
25 asn1_SET_OF_element_t *element;
26} asn1_SET_OF_specifics_t;
27
28/*
29 * A set specialized functions dealing with the SET OF type.
30 */
31asn_constr_check_f SET_OF_constraint;
32ber_type_decoder_f SET_OF_decode_ber;
33der_type_encoder_f SET_OF_encode_der;
34asn_struct_print_f SET_OF_print;
35asn_struct_free_f SET_OF_free;
36
37#endif /* _CONSTR_SET_OF_H_ */