aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/filereader/local/fileread.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/filereader/local/fileread.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
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