c-multihash/include/mh/errors.h
2016-07-26 14:22:03 +01:00

17 lines
362 B
C

/* 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,
MH_E_LEN_NOT_SUPPORTED = -4,
// Should be always last, if you are adding error update this code.
MH_E_LAST = -5
} mh_error;
const char *mh_error_string(mh_error code);
#endif /* end of include guard */