Lev Walkin | 52559a2 | 2004-09-24 20:58:37 +0000 | [diff] [blame] | 1 | /*- |
| 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 Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 11 | #include <asn_system.h> /* for platform-dependent types */ |
| 12 | #include <asn_codecs.h> /* for ASN.1 codecs specifics */ |
Lev Walkin | 52559a2 | 2004-09-24 20:58:37 +0000 | [diff] [blame] | 13 | |
| 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 | */ |
| 21 | typedef int (asn_app_consume_bytes_f)(const void *buffer, size_t size, |
| 22 | void *application_specific_key); |
| 23 | |
Lev Walkin | 5e03376 | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 24 | #include <constr_TYPE.h> /* for asn_TYPE_descriptor_t */ |
Lev Walkin | 52559a2 | 2004-09-24 20:58:37 +0000 | [diff] [blame] | 25 | |
| 26 | #endif /* _ASN_APPLICATION_H_ */ |