Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/*- | ||
* Copyright (c) 2017 Lev Walkin <vlm@lionet.info>. All rights reserved. | ||
* Redistribution and modifications are permitted subject to BSD license. | ||
*/ | ||
#ifndef ASN_OPEN_TYPE_H | ||
#define ASN_OPEN_TYPE_H | ||
|
||
#include <asn_application.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define OPEN_TYPE_free CHOICE_free | ||
#define OPEN_TYPE_print CHOICE_print | ||
#define OPEN_TYPE_compare CHOICE_compare | ||
#define OPEN_TYPE_constraint CHOICE_constraint | ||
#define OPEN_TYPE_decode_ber NULL | ||
#define OPEN_TYPE_encode_der CHOICE_encode_der | ||
#define OPEN_TYPE_decode_xer NULL | ||
#define OPEN_TYPE_encode_xer CHOICE_encode_xer | ||
#define OPEN_TYPE_decode_uper NULL | ||
#define OPEN_TYPE_encode_uper CHOICE_encode_uper | ||
|
||
|
||
/* | ||
* Decode an Open Type which is potentially constraiend | ||
* by the other members of the parent structure. | ||
*/ | ||
asn_dec_rval_t OPEN_TYPE_uper_get(asn_codec_ctx_t *opt_codec_ctx, | ||
asn_TYPE_descriptor_t *parent_type, | ||
void *parent_structure, | ||
asn_TYPE_member_t *element, | ||
asn_per_data_t *pd); | ||
|
||
asn_dec_rval_t OPEN_TYPE_oer_get(asn_codec_ctx_t *opt_codec_ctx, | ||
asn_TYPE_descriptor_t *parent_type, | ||
void *parent_structure, | ||
asn_TYPE_member_t *element, | ||
const void *ptr, size_t size); | ||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* ASN_OPEN_TYPE_H */ |