2016-07-25 10:51:54 +00:00
|
|
|
/* vim: set ts=8 sw=8 noexpandtab: */
|
|
|
|
#ifndef ERROR_H
|
|
|
|
#define ERROR_H
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
MH_E_UNKNOWN_CODE = -1,
|
|
|
|
MH_E_TOO_SHORT = -2,
|
|
|
|
MH_E_TOO_LONG = -3,
|
2016-07-25 15:18:34 +00:00
|
|
|
MH_E_LEN_NOT_SUPPORTED = -4,
|
|
|
|
|
|
|
|
// Should be always last, if you are adding error update this code.
|
|
|
|
MH_E_LAST = -5
|
2016-07-25 10:51:54 +00:00
|
|
|
} mh_error;
|
|
|
|
|
|
|
|
const char *mh_error_string(mh_error code);
|
|
|
|
|
|
|
|
#endif /* end of include guard */
|