]> git.stg.codes - stg.git/blob - libs/smux/include/stg/per_opentype.h
Regen SMUX support library with more recent ASN1 compiler.
[stg.git] / libs / smux / include / stg / per_opentype.h
1 /*
2  * Copyright (c) 2007-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3  * Redistribution and modifications are permitted subject to BSD license.
4  */
5 #ifndef _PER_OPENTYPE_H_
6 #define _PER_OPENTYPE_H_
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 asn_dec_rval_t uper_open_type_get(const asn_codec_ctx_t *opt_codec_ctx,
13                                   const asn_TYPE_descriptor_t *td,
14                                   const asn_per_constraints_t *constraints,
15                                   void **sptr, asn_per_data_t *pd);
16
17 int uper_open_type_skip(const asn_codec_ctx_t *opt_codec_ctx,
18                         asn_per_data_t *pd);
19
20 /*
21  * X.691 (2015/08), #11.2
22  * Returns -1 if error is encountered. 0 if all OK.
23  */
24 int 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);
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif  /* _PER_OPENTYPE_H_ */