2 * Copyright (c) 2006-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
5 #ifndef _PER_ENCODER_H_
6 #define _PER_ENCODER_H_
8 #include <asn_application.h>
9 #include <per_support.h>
15 struct asn_TYPE_descriptor_s; /* Forward declaration */
18 * Type of the generic PER encoder function.
20 typedef asn_enc_rval_t(per_type_encoder_f)(
21 const struct asn_TYPE_descriptor_s *type_descriptor,
22 const asn_per_constraints_t *constraints, const void *struct_ptr,
23 asn_per_outp_t *per_output);
25 int ignore_output(const void *data, size_t size, void *app_key);
27 typedef struct enc_dyn_arg {
32 int encode_dyn_cb(const void *buffer, size_t size, void *key);
38 #endif /* _PER_ENCODER_H_ */