blob: 4987e5cd2e9698edfddca0e39a3e25fb36ada5c0 [file] [log] [blame]
Lev Walkin52559a22004-09-24 20:58:37 +00001/*-
2 * Copyright (c) 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
5/*
6 * Application-level ASN.1 API.
7 */
8#ifndef _ASN_APPLICATION_H_
9#define _ASN_APPLICATION_H_
10
Lev Walkindc06f6b2004-10-20 15:50:55 +000011#include <asn_system.h> /* for platform-dependent types */
12#include <asn_codecs.h> /* for ASN.1 codecs specifics */
Lev Walkin52559a22004-09-24 20:58:37 +000013
14/*
15 * Generic type of an application-defined callback to return various
16 * types of data to the application.
17 * EXPECTED RETURN VALUES:
18 * -1: Failed to consume bytes. Abort the mission.
19 * Non-negative return values indicate success, and ignored.
20 */
21typedef int (asn_app_consume_bytes_f)(const void *buffer, size_t size,
22 void *application_specific_key);
23
Lev Walkin5e033762004-09-29 13:26:15 +000024#include <constr_TYPE.h> /* for asn_TYPE_descriptor_t */
Lev Walkin52559a22004-09-24 20:58:37 +000025
26#endif /* _ASN_APPLICATION_H_ */