vlm | fa67ddc | 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, |
| 15 | A1F_DEBUG, /* Print debugging output using (_is_fatal = -1) */ |
| 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 | |
| 30 | #endif /* ASN1FIX_H */ |