Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (23 sloc) 0.805 kb
af070d99 » Tony Cook
2006-01-30 - eliminate many -Wall warnings
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 */
d03fd5a4 »
2012-09-29 revert threading changes, they aren't ready for the mainline yet
8 typedef struct {
9 char *msg;
10 int code;
11 } i_errmsg;
12
af070d99 » Tony Cook
2006-01-30 - eliminate many -Wall warnings
13 typedef void (*i_error_cb)(int code, char const *msg);
14 typedef void (*i_failed_cb)(i_errmsg *msgs);
15 extern i_error_cb i_set_error_cb(i_error_cb);
16 extern i_failed_cb i_set_failed_cb(i_failed_cb);
17 extern void i_set_argv0(char const *);
18 extern int i_set_errors_fatal(int new_fatal);
d03fd5a4 »
2012-09-29 revert threading changes, they aren't ready for the mainline yet
19 extern i_errmsg *i_errors(void);
af070d99 » Tony Cook
2006-01-30 - eliminate many -Wall warnings
20
d03fd5a4 »
2012-09-29 revert threading changes, they aren't ready for the mainline yet
21 extern void i_push_error(int code, char const *msg);
8d14daab »
2011-06-14 switch to using size_t and i_img_dim strictly
22 extern void i_push_errorf(int code, char const *fmt, ...) I_FORMAT_ATTR(2, 3);
d03fd5a4 »
2012-09-29 revert threading changes, they aren't ready for the mainline yet
23 extern void i_push_errorvf(int code, char const *fmt, va_list);
24 extern void i_clear_error(void);
af070d99 » Tony Cook
2006-01-30 - eliminate many -Wall warnings
25 extern int i_failed(int code, char const *msg);
26
27 #endif
Something went wrong with that request. Please try again.