1 /*****************************************************************************
3 # Copyright 2019 AT&T Intellectual Property *
5 # Licensed under the Apache License, Version 2.0 (the "License"); *
6 # you may not use this file except in compliance with the License. *
7 # You may obtain a copy of the License at *
9 # http://www.apache.org/licenses/LICENSE-2.0 *
11 # Unless required by applicable law or agreed to in writing, software *
12 # distributed under the License is distributed on an "AS IS" BASIS, *
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
14 # See the License for the specific language governing permissions and *
15 # limitations under the License. *
17 ******************************************************************************/
20 * Copyright (c) 2007-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
21 * Redistribution and modifications are permitted subject to BSD license.
23 #ifndef _PER_OPENTYPE_H_
24 #define _PER_OPENTYPE_H_
30 asn_dec_rval_t uper_open_type_get(const asn_codec_ctx_t *opt_codec_ctx,
31 const asn_TYPE_descriptor_t *td,
32 const asn_per_constraints_t *constraints,
33 void **sptr, asn_per_data_t *pd);
35 int uper_open_type_skip(const asn_codec_ctx_t *opt_codec_ctx,
39 * X.691 (2015/08), #11.2
40 * Returns -1 if error is encountered. 0 if all OK.
42 int uper_open_type_put(const asn_TYPE_descriptor_t *td,
43 const asn_per_constraints_t *constraints,
44 const void *sptr, asn_per_outp_t *po);
46 asn_dec_rval_t aper_open_type_get(const asn_codec_ctx_t *opt_codec_ctx,
47 const asn_TYPE_descriptor_t *td,
48 const asn_per_constraints_t *constraints,
49 void **sptr, asn_per_data_t *pd);
52 int aper_open_type_skip(const asn_codec_ctx_t *opt_codec_ctx, asn_per_data_t *pd);
54 int aper_open_type_put(const asn_TYPE_descriptor_t *td,
55 const asn_per_constraints_t *constraints,
56 const void *sptr, asn_per_outp_t *po);
62 #endif /* _PER_OPENTYPE_H_ */