Moving in e2sim originally from it/test/simulators
[sim/e2-interface.git] / e2sim / ASN1c / per_opentype.h
1 /*****************************************************************************
2 #                                                                            *
3 # Copyright 2019 AT&T Intellectual Property                                  *
4 #                                                                            *
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                                    *
8 #                                                                            *
9 #      http://www.apache.org/licenses/LICENSE-2.0                            *
10 #                                                                            *
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.                                             *
16 #                                                                            *
17 ******************************************************************************/
18
19 /*
20  * Copyright (c) 2007-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
21  * Redistribution and modifications are permitted subject to BSD license.
22  */
23 #ifndef _PER_OPENTYPE_H_
24 #define _PER_OPENTYPE_H_
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
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);
34
35 int uper_open_type_skip(const asn_codec_ctx_t *opt_codec_ctx,
36                         asn_per_data_t *pd);
37
38 /*
39  * X.691 (2015/08), #11.2
40  * Returns -1 if error is encountered. 0 if all OK.
41  */
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);
45
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);
50
51
52 int aper_open_type_skip(const asn_codec_ctx_t *opt_codec_ctx, asn_per_data_t *pd);
53
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);
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif  /* _PER_OPENTYPE_H_ */