diff options
Diffstat (limited to 'examples/dte/error.h')
| -rw-r--r-- | examples/dte/error.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/dte/error.h b/examples/dte/error.h new file mode 100644 index 0000000..bf19414 --- /dev/null +++ b/examples/dte/error.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef ERROR_H | ||
| 2 | #define ERROR_H | ||
| 3 | |||
| 4 | #include <stdbool.h> | ||
| 5 | #include "util/macros.h" | ||
| 6 | |||
| 7 | bool error_msg(const char *format, ...) COLD PRINTF(1); | ||
| 8 | bool error_msg_errno(const char *prefix) COLD NONNULL_ARGS; | ||
| 9 | void info_msg(const char *format, ...) PRINTF(1); | ||
| 10 | void clear_error(void); | ||
| 11 | const char *get_msg(bool *is_error) NONNULL_ARGS; | ||
| 12 | unsigned int get_nr_errors(void); | ||
| 13 | void set_print_errors_to_stderr(bool enable); | ||
| 14 | |||
| 15 | #endif | ||
