summaryrefslogtreecommitdiff
path: root/include/sqfs/error.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-07 20:19:05 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-07 20:40:07 +0200
commit60064dd0412a149fe00cfc4e2f2361c22656db57 (patch)
treef4a2aaed857aeca621ee96e46e23858d4025fcf8 /include/sqfs/error.h
parente71c56420a8fc3dc7e36eb059304a362b47a1c15 (diff)
Remove printing to stderr in libsquashfs with returning error numbers
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/error.h')
-rw-r--r--include/sqfs/error.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/sqfs/error.h b/include/sqfs/error.h
new file mode 100644
index 0000000..5bbf26c
--- /dev/null
+++ b/include/sqfs/error.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/*
+ * error.h
+ *
+ * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
+ */
+#ifndef SQFS_ERROR_H
+#define SQFS_ERROR_H
+
+typedef enum {
+ SQFS_ERROR_ALLOC = -1,
+ SQFS_ERROR_IO = -2,
+ SQFS_ERROR_COMRPESSOR = -3,
+ SQFS_ERROR_INTERNAL = -4,
+ SQFS_ERROR_CORRUPTED = -5,
+ SQFS_ERROR_UNSUPPORTED = -6,
+ SQFS_ERROR_OVERFLOW = -7,
+ SQFS_ERROR_OUT_OF_BOUNDS = -8,
+
+ SFQS_ERROR_SUPER_MAGIC = -9,
+ SFQS_ERROR_SUPER_VERSION = -10,
+ SQFS_ERROR_SUPER_BLOCK_SIZE = -11,
+} E_SQFS_ERROR;
+
+#endif /* SQFS_ERROR_H */