summaryrefslogtreecommitdiffstats
path: root/lib/libjove/include/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libjove/include/error.h')
-rw-r--r--lib/libjove/include/error.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/libjove/include/error.h b/lib/libjove/include/error.h
new file mode 100644
index 0000000..bbf7a51
--- /dev/null
+++ b/lib/libjove/include/error.h
@@ -0,0 +1,22 @@
+#ifndef _LIBJOVE_ERROR_H
+#define _LIBJOVE_ERROR_H 1
+
+typedef enum _JoveError{
+ EJOVE_OK = 0,
+ EJOVE_KERROR,
+ EJOVE_NOALLOC,
+ EJOVE_NOFREE,
+ EJOVE_NOIMPL,
+ EJOVE_FULL,
+ EJOVE_BADOBJ,
+ EJOVE_BADSIZE,
+ EJOVE_BADARG,
+ EJOVE_DNE,
+ EJOVE_TOOBIG
+} JoveError;
+
+extern JoveError jove_errno;
+
+JoveError jove_error_from_kerror(int kerror);
+
+#endif