blob: 7e7dc61091f9eef271f4bcd17c9a7cf34a70bc43 [file] [log] [blame]
Lev Walkin9218bc12007-06-27 04:09:37 +00001/*
Lev Walkin20696a42017-10-17 21:27:33 -07002 * Copyright (c) 2007-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
Lev Walkin9218bc12007-06-27 04:09:37 +00003 * Redistribution and modifications are permitted subject to BSD license.
4 */
5#ifndef _PER_OPENTYPE_H_
6#define _PER_OPENTYPE_H_
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
Lev Walkinafbf2a92017-09-12 23:30:27 -070012asn_dec_rval_t uper_open_type_get(const asn_codec_ctx_t *opt_codec_ctx,
Lev Walkin20696a42017-10-17 21:27:33 -070013 const asn_TYPE_descriptor_t *td,
Lev Walkinafbf2a92017-09-12 23:30:27 -070014 const asn_per_constraints_t *constraints,
15 void **sptr, asn_per_data_t *pd);
Lev Walkin9218bc12007-06-27 04:09:37 +000016
Lev Walkinafbf2a92017-09-12 23:30:27 -070017int uper_open_type_skip(const asn_codec_ctx_t *opt_codec_ctx,
18 asn_per_data_t *pd);
Lev Walkin9218bc12007-06-27 04:09:37 +000019
Lev Walkina4a87212017-08-26 23:30:32 -070020/*
21 * X.691 (2015/08), #11.2
22 * Returns -1 if error is encountered. 0 if all OK.
23 */
Lev Walkin20696a42017-10-17 21:27:33 -070024int uper_open_type_put(const asn_TYPE_descriptor_t *td,
25 const asn_per_constraints_t *constraints,
26 const void *sptr, asn_per_outp_t *po);
Lev Walkin9218bc12007-06-27 04:09:37 +000027
28#ifdef __cplusplus
29}
30#endif
31
32#endif /* _PER_OPENTYPE_H_ */