Coverity complained colors could be left uninitialized.
[imager.git] / imerror.h
... / ...
CommitLineData
1#ifndef IMAGER_IMERROR_H
2#define IMAGER_IMERROR_H
3
4/* error handling
5 see error.c for documentation
6 the error information is currently global
7*/
8typedef void (*i_error_cb)(int code, char const *msg);
9typedef void (*i_failed_cb)(i_errmsg *msgs);
10extern i_error_cb i_set_error_cb(i_error_cb);
11extern i_failed_cb i_set_failed_cb(i_failed_cb);
12extern void i_set_argv0(char const *);
13extern int i_set_errors_fatal(int new_fatal);
14extern i_errmsg *im_errors(pIMCTX);
15
16extern void im_push_error(pIMCTX, int code, char const *msg);
17#ifndef IMAGER_NO_CONTEXT
18extern void i_push_errorf(int code, char const *fmt, ...) I_FORMAT_ATTR(2, 3);
19#endif
20extern void im_push_errorf(pIMCTX, int code, char const *fmt, ...) I_FORMAT_ATTR(3, 4);
21extern void im_push_errorvf(im_context_t ctx, int code, char const *fmt, va_list);
22extern void im_clear_error(pIMCTX);
23extern int i_failed(int code, char const *msg);
24
25#endif