summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ext4_blockdev.h2
-rw-r--r--include/ext4_errno.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/ext4_blockdev.h b/include/ext4_blockdev.h
index 4673479..19b3e0c 100644
--- a/include/ext4_blockdev.h
+++ b/include/ext4_blockdev.h
@@ -258,6 +258,8 @@ int ext4_block_cache_flush(struct ext4_blockdev *bdev);
* @return standard error code*/
int ext4_block_cache_write_back(struct ext4_blockdev *bdev, uint8_t on_off);
+extern uint32_t ext4_blockdev_errno;
+
#ifdef __cplusplus
}
#endif
diff --git a/include/ext4_errno.h b/include/ext4_errno.h
index edf89a9..6735eaf 100644
--- a/include/ext4_errno.h
+++ b/include/ext4_errno.h
@@ -41,6 +41,7 @@ extern "C" {
#endif
#include "ext4_config.h"
+#include <stdint.h>
#if !CONFIG_HAVE_OWN_ERRNO
#include <errno.h>
@@ -84,6 +85,9 @@ extern "C" {
#define EOK 0
#endif
+/* Platform-specific error code from the last OS API call that was made */
+extern uint32_t ext4_platform_errno;
+
#ifdef __cplusplus
}
#endif