aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/filereader/local/fileread.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/filereader/local/fileread.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Wasabi/api/filereader/local/fileread.h')
-rw-r--r--Src/Wasabi/api/filereader/local/fileread.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Src/Wasabi/api/filereader/local/fileread.h b/Src/Wasabi/api/filereader/local/fileread.h
new file mode 100644
index 00000000..14c22f46
--- /dev/null
+++ b/Src/Wasabi/api/filereader/local/fileread.h
@@ -0,0 +1,23 @@
+#ifndef _FILEREADERS_H
+#define _FILEREADERS_H
+
+#include <api/filereader/svc_filereadI.h>
+#include <api/service/servicei.h>
+
+class FileReaders
+{
+public:
+ static void *open(const wchar_t *filename, const wchar_t *mode);
+ static void close(void *handle);
+ static size_t read(void *buffer, size_t size, void *handle);
+ static size_t write(const void *buffer, size_t size, void *handle);
+ static int seek(int64_t offset, int origin, void *handle);
+ static uint64_t tell(void *handle);
+ static uint64_t getFileSize(void *handle);
+ static int exists(const wchar_t *filename);
+ static int remove(const wchar_t *filename);
+ static int removeUndoable(const wchar_t *filename);
+ static int move(const wchar_t *filename, const wchar_t *destfilename);
+};
+
+#endif//_FILEREADERS_H