2004-09-24 20:58:37 +00:00
|
|
|
/*-
|
|
|
|
* 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_
|
|
|
|
|
2004-10-20 15:50:55 +00:00
|
|
|
#include <asn_system.h> /* for platform-dependent types */
|
|
|
|
#include <asn_codecs.h> /* for ASN.1 codecs specifics */
|
2004-09-24 20:58:37 +00:00
|
|
|
|
2005-07-24 09:03:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-09-24 20:58:37 +00:00
|
|
|
/*
|
|
|
|
* 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);
|
|
|
|
|
2004-09-29 13:26:15 +00:00
|
|
|
#include <constr_TYPE.h> /* for asn_TYPE_descriptor_t */
|
2004-09-24 20:58:37 +00:00
|
|
|
|
2005-07-24 09:03:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2004-09-24 20:58:37 +00:00
|
|
|
#endif /* _ASN_APPLICATION_H_ */
|