Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This is the public interface for the processor (fixer) of the ASN.1 tree |
| 3 | * produced by the libasn1parser. |
| 4 | */ |
| 5 | #ifndef ASN1FIX_H |
| 6 | #define ASN1FIX_H |
| 7 | |
| 8 | #include <asn1parser.h> |
| 9 | |
| 10 | /* |
| 11 | * Operation flags for the function below. |
| 12 | */ |
| 13 | enum asn1f_flags { |
| 14 | A1F_NOFLAGS, |
Lev Walkin | b45e067 | 2004-08-18 05:42:05 +0000 | [diff] [blame] | 15 | A1F_DEBUG = 0x01, /* Print debugging output */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | /* |
| 19 | * Perform a set of semantics checks, transformations and small fixes |
| 20 | * on the given tree. |
| 21 | * RETURN VALUES: |
| 22 | * -1: Some fatal problems were encountered. |
| 23 | * 0: No inconsistencies were found. |
| 24 | * 1: Some warnings were issued, but no fatal problems encountered. |
| 25 | */ |
| 26 | int asn1f_process(asn1p_t *_asn, |
| 27 | enum asn1f_flags, |
| 28 | void (*error_log_callback)(int _severity, const char *fmt, ...)); |
| 29 | |
Lev Walkin | 97bdee2 | 2004-06-28 21:21:24 +0000 | [diff] [blame] | 30 | |
| 31 | /* |
| 32 | * Explicitly mark type as known. |
| 33 | */ |
| 34 | int asn1f_make_known_external_type(const char *); |
| 35 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 36 | #endif /* ASN1FIX_H */ |