aboutsummaryrefslogtreecommitdiff
path: root/include/bh/internal/file.h
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2024-06-03 22:11:05 +0300
committerMikhail Romanko <me@blankhex.com>2024-06-03 22:11:05 +0300
commit79874622a28c081abe155dc01860ddba746abd3b (patch)
tree9dea56ea33951b7c851b534eb6f9d1ff1e1dcfe8 /include/bh/internal/file.h
parentfdbabab0e04fac2b5a84ea8e8088cd4767034a45 (diff)
downloadbhlib-old-79874622a28c081abe155dc01860ddba746abd3b.tar.gz
Add documentation, expand error handling, implement file and buffer io
Diffstat (limited to 'include/bh/internal/file.h')
-rw-r--r--include/bh/internal/file.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/bh/internal/file.h b/include/bh/internal/file.h
new file mode 100644
index 0000000..f23cf29
--- /dev/null
+++ b/include/bh/internal/file.h
@@ -0,0 +1,20 @@
+#ifndef BH_INTERNAL_FILE_H
+#define BH_INTERNAL_FILE_H
+
+#include "io.h"
+#include <bh/file.h>
+
+#if defined(BH_PLATFORM_POSIX)
+#include "file_posix.h"
+#elif defined(BH_PLATFORM_WIN)
+#include "file_win.h"
+#else
+#include "file_null.h"
+#endif
+
+int bh_file_init(bh_file_t *file,
+ const char *path);
+
+void bh_file_destroy(bh_file_t *file);
+
+#endif /* BH_INTERNAL_FILE_H */