Commit 52559a2e authored by Lev Walkin's avatar Lev Walkin

dedicated asn_application.h header

parent 8e55994d
/*-
* Copyright (c) 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
/*
* Application-level ASN.1 API.
*/
#ifndef _ASN_APPLICATION_H_
#define _ASN_APPLICATION_H_
#include <asn_types.h> /* for platform-dependent types */
/*
* Generic type of an application-defined callback to return various
* types of data to the application.
* EXPECTED RETURN VALUES:
* -1: Failed to consume bytes. Abort the mission.
* Non-negative return values indicate success, and ignored.
*/
typedef int (asn_app_consume_bytes_f)(const void *buffer, size_t size,
void *application_specific_key);
#include <constr_TYPE.h> /* for asn1_TYPE_descriptor_t */
#endif /* _ASN_APPLICATION_H_ */
...@@ -52,14 +52,4 @@ ...@@ -52,14 +52,4 @@
#endif /* __GNUC__ */ #endif /* __GNUC__ */
#endif /* MIN */ #endif /* MIN */
/*
* Generic type of an application-defined callback to return various
* types of data to the application.
* EXPECTED RETURN VALUES:
* -1: Failed to consume bytes. Abort the mission.
* Other return values indicate success, and ignored.
*/
typedef int (asn_app_consume_bytes_f)(const void *buffer, size_t size,
void *application_specific_key);
#endif /* _ASN_TYPES_H_ */ #endif /* _ASN_TYPES_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment