virtfs: Tell file plugins which shut down.

We can have multiple, so it ideally needs to deal with the latest.
This commit is contained in:
Unknown W. Brackets committed 2023-03-26 14:45:27 -07:00
1 parent 921c4dccd9
commit 414be98489
2 files changed
+16 -3

No files matched your search

+4
View File
@@ -76,14 +76,18 @@ private:
typedef bool (*InitFunc)(HandlerLogFunc logger, void *loggerArg);
typedef void (*ShutdownFunc)();
typedef void (*ShutdownV2Func)(void *loggerArg);
typedef HandlerHandle (*OpenFunc)(const char *basePath, const char *filename);
typedef HandlerOffset (*SeekFunc)(HandlerHandle handle, HandlerOffset offset, FileMove origin);
typedef HandlerOffset (*ReadFunc)(HandlerHandle handle, void *data, HandlerOffset size);
typedef void (*CloseFunc)(HandlerHandle handle);
typedef int (*VersionFunc)();
HandlerLibrary library;
VirtualDiscFileSystem *const sys_;
InitFunc Init;
ShutdownFunc Shutdown;
ShutdownV2Func ShutdownV2;
OpenFunc Open;
SeekFunc Seek;
ReadFunc Read;