19 lines
348 B
C
19 lines
348 B
C
#ifndef IVY_COMMON_STATUS_H_
|
|
#define IVY_COMMON_STATUS_H_
|
|
|
|
#include <ivy/misc.h>
|
|
|
|
enum ivy_status {
|
|
IVY_OK = 0,
|
|
IVY_ERR_EOF = -1,
|
|
IVY_ERR_IO_FAILURE = -2,
|
|
IVY_ERR_BAD_SYNTAX = -3,
|
|
IVY_ERR_NO_MEMORY = -4,
|
|
IVY_ERR_NOT_SUPPORTED = -5,
|
|
IVY_ERR_INTERNAL_FAILURE = -6,
|
|
};
|
|
|
|
IVY_API const char *ivy_status_to_string(enum ivy_status status);
|
|
|
|
#endif
|