blob: f32e607bad05aa35d3f4056eabb5b46b38cbbaa6 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001/*-
Lev Walkin20696a42017-10-17 21:27:33 -07002 * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
Lev Walkinf15320b2004-06-03 03:38:44 +00003 * Redistribution and modifications are permitted subject to BSD license.
4 */
Lev Walkin96f99212017-08-29 23:38:31 -07005#ifndef CONSTR_SET_OF_H
6#define CONSTR_SET_OF_H
Lev Walkinf15320b2004-06-03 03:38:44 +00007
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
Lev Walkind84f6032017-10-03 16:33:59 -070014typedef struct asn_SET_OF_specifics_s {
Lev Walkin96f99212017-08-29 23:38:31 -070015 /*
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 Walkina9cc46e2004-09-22 16:06:28 +000020
Lev Walkin96f99212017-08-29 23:38:31 -070021 /* 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 Walkincd2f48e2017-08-10 02:14:59 -070030asn_struct_compare_f SET_OF_compare;
Lev Walkinf15320b2004-06-03 03:38:44 +000031asn_constr_check_f SET_OF_constraint;
32ber_type_decoder_f SET_OF_decode_ber;
33der_type_encoder_f SET_OF_encode_der;
Lev Walkin8bb4a952005-02-14 20:15:40 +000034xer_type_decoder_f SET_OF_decode_xer;
Lev Walkina9cc46e2004-09-22 16:06:28 +000035xer_type_encoder_f SET_OF_encode_xer;
Lev Walkin96f99212017-08-29 23:38:31 -070036oer_type_decoder_f SET_OF_decode_oer;
37oer_type_encoder_f SET_OF_encode_oer;
Lev Walkin59b176e2005-11-26 11:25:14 +000038per_type_decoder_f SET_OF_decode_uper;
Lev Walkin523de9e2006-08-18 01:34:18 +000039per_type_encoder_f SET_OF_encode_uper;
Lev Walkina5972be2017-09-29 23:15:58 -070040asn_random_fill_f SET_OF_random_fill;
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080041extern asn_TYPE_operation_t asn_OP_SET_OF;
Lev Walkinf15320b2004-06-03 03:38:44 +000042
Lev Walkin21b41ac2005-07-24 09:03:44 +000043#ifdef __cplusplus
44}
45#endif
46
Lev Walkin96f99212017-08-29 23:38:31 -070047#endif /* CONSTR_SET_OF_H */