blob: 8ddd0e3ba247a1b4fee3ed2a2eafcbdb1ba1e9d7 [file] [log] [blame]
Lev Walkinf15320b2004-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
Lev Walkin11c3e172004-09-24 21:00:50 +00008#include <asn_application.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00009
Lev Walkin21b41ac2005-07-24 09:03:44 +000010#ifdef __cplusplus
11extern "C" {
12#endif
13
Wim Lewisfb6344e2014-07-28 12:16:01 -070014typedef const struct asn_SET_OF_specifics_s {
Lev Walkinf15320b2004-06-03 03:38:44 +000015 /*
16 * Target structure description.
17 */
18 int struct_size; /* Size of the target structure. */
Lev Walkin5e033762004-09-29 13:26:15 +000019 int ctx_offset; /* Offset of the asn_struct_ctx_t member */
Lev Walkina9cc46e2004-09-22 16:06:28 +000020
21 /* XER-specific stuff */
22 int as_XMLValueList; /* The member type must be encoded like this */
Lev Walkin5e033762004-09-29 13:26:15 +000023} asn_SET_OF_specifics_t;
Lev Walkinf15320b2004-06-03 03:38:44 +000024
25/*
26 * A set specialized functions dealing with the SET OF type.
27 */
Lev Walkina9cc46e2004-09-22 16:06:28 +000028asn_struct_free_f SET_OF_free;
29asn_struct_print_f SET_OF_print;
Lev Walkinf15320b2004-06-03 03:38:44 +000030asn_constr_check_f SET_OF_constraint;
31ber_type_decoder_f SET_OF_decode_ber;
32der_type_encoder_f SET_OF_encode_der;
Lev Walkin8bb4a952005-02-14 20:15:40 +000033xer_type_decoder_f SET_OF_decode_xer;
Lev Walkina9cc46e2004-09-22 16:06:28 +000034xer_type_encoder_f SET_OF_encode_xer;
Lev Walkin59b176e2005-11-26 11:25:14 +000035per_type_decoder_f SET_OF_decode_uper;
Lev Walkin523de9e2006-08-18 01:34:18 +000036per_type_encoder_f SET_OF_encode_uper;
Harald Welte0b57b082015-08-30 16:33:07 +020037per_type_decoder_f SET_OF_decode_aper;
38per_type_encoder_f SET_OF_encode_aper;
Lev Walkinf15320b2004-06-03 03:38:44 +000039
Lev Walkin21b41ac2005-07-24 09:03:44 +000040#ifdef __cplusplus
41}
42#endif
43
Lev Walkinf15320b2004-06-03 03:38:44 +000044#endif /* _CONSTR_SET_OF_H_ */