blob: 14fe3a9315b344f2b172f2010e75f56e233f8cd4 [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
11#include <asn_types.h> /* for platform-dependent types */
12
13/*
14 * Generic type of an application-defined callback to return various
15 * types of data to the application.
16 * EXPECTED RETURN VALUES:
17 * -1: Failed to consume bytes. Abort the mission.
18 * Non-negative return values indicate success, and ignored.
19 */
20typedef int (asn_app_consume_bytes_f)(const void *buffer, size_t size,
21 void *application_specific_key);
22
23#include <constr_TYPE.h> /* for asn1_TYPE_descriptor_t */
24
25#endif /* _ASN_APPLICATION_H_ */