notmuch/util/util.h
David Bremner 126347b694 Import notmuch_0.38.2.orig.tar.xz
[dgit import orig notmuch_0.38.2.orig.tar.xz]
2023-12-01 07:51:09 -04:00

29 lines
518 B
C

#ifndef _UTIL_H
#define _UTIL_H
typedef enum util_status {
/**
* No error occurred.
*/
UTIL_SUCCESS = 0,
/**
* Out of memory.
*/
UTIL_OUT_OF_MEMORY,
/**
* End of stream reached while attempting to read.
*/
UTIL_EOF,
/**
* Low level error occurred, consult errno.
*/
UTIL_ERRNO,
/**
* Zlib error occurred, call gzerror for details.
*/
UTIL_GZERROR
} util_status_t;
const char *
util_error_string (util_status_t status);
#endif