blob: 060675a6b39cfff71706793f987d989e507bd58c [file] [log] [blame]
Lev Walkin1dc754c2017-08-11 01:40:01 -07001/*-
2 * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
5#ifndef ASN_OPEN_TYPE_H
6#define ASN_OPEN_TYPE_H
7
8#include <asn_application.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#define OPEN_TYPE_free CHOICE_free
15#define OPEN_TYPE_print CHOICE_print
16#define OPEN_TYPE_compare CHOICE_compare
17#define OPEN_TYPE_constraint CHOICE_constraint
18#define OPEN_TYPE_decode_ber NULL
19#define OPEN_TYPE_encode_der CHOICE_encode_der
20#define OPEN_TYPE_decode_xer NULL
21#define OPEN_TYPE_encode_xer CHOICE_encode_xer
22#define OPEN_TYPE_decode_uper NULL
23#define OPEN_TYPE_encode_uper CHOICE_encode_uper
24
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080025extern asn_TYPE_operation_t asn_OP_OPEN_TYPE;
Lev Walkin1dc754c2017-08-11 01:40:01 -070026
27/*
28 * Decode an Open Type which is potentially constraiend
29 * by the other members of the parent structure.
30 */
31asn_dec_rval_t OPEN_TYPE_uper_get(asn_codec_ctx_t *opt_codec_ctx,
32 asn_TYPE_descriptor_t *parent_type,
33 void *parent_structure,
34 asn_TYPE_member_t *element,
35 asn_per_data_t *pd);
36
37asn_dec_rval_t OPEN_TYPE_oer_get(asn_codec_ctx_t *opt_codec_ctx,
38 asn_TYPE_descriptor_t *parent_type,
39 void *parent_structure,
40 asn_TYPE_member_t *element,
41 const void *ptr, size_t size);
42
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif /* ASN_OPEN_TYPE_H */