]> git.cworth.org Git - notmuch/blob - util/util.h
emacs: search archive tweak
[notmuch] / util / util.h
1 #ifndef _UTIL_H
2 #define _UTIL_H
3
4 typedef enum util_status {
5     /**
6      * No error occurred.
7      */
8     UTIL_SUCCESS = 0,
9     /**
10      * Out of memory.
11      */
12     UTIL_OUT_OF_MEMORY,
13     /**
14      * End of stream reached while attempting to read.
15      */
16     UTIL_EOF,
17     /**
18      * Low level error occured, consult errno.
19      */
20     UTIL_ERRNO,
21     /**
22      * Zlib error occured, call gzerror for details.
23      */
24     UTIL_GZERROR
25 } util_status_t;
26
27 const char *
28 util_error_string (util_status_t status);
29 #endif