diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-09 23:19:53 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-09 23:19:53 +0100 |
| commit | 1566b6faa8534118c3566188181367cd0868468f (patch) | |
| tree | 1de8d4b369efb5e592685a31088f798a6b63ffa1 /examples/dte/error.h | |
| parent | 349991bf6efe473ab9a5cbdae0a8114d72b997e3 (diff) | |
| download | crep-1566b6faa8534118c3566188181367cd0868468f.tar.gz | |
Added partial matching and introduced threads
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 @@ +#ifndef ERROR_H +#define ERROR_H + +#include <stdbool.h> +#include "util/macros.h" + +bool error_msg(const char *format, ...) COLD PRINTF(1); +bool error_msg_errno(const char *prefix) COLD NONNULL_ARGS; +void info_msg(const char *format, ...) PRINTF(1); +void clear_error(void); +const char *get_msg(bool *is_error) NONNULL_ARGS; +unsigned int get_nr_errors(void); +void set_print_errors_to_stderr(bool enable); + +#endif |
