diff options
Diffstat (limited to 'include/sqfs/error.h')
-rw-r--r-- | include/sqfs/error.h | 25 |
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 */ |