mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
inc: winfsp.hpp: refactor FileSystem class into FileSystemHost and FileSystemBase
This commit is contained in:
parent
4e7f988371
commit
8b71e18972
@ -475,8 +475,8 @@ class FileSystemHost
|
||||
{
|
||||
public:
|
||||
/* ctor/dtor */
|
||||
FileSystemHost(FileSystemBase *FileSystem) :
|
||||
_VolumeParams(), _FileSystemPtr(0), _FileSystem(FileSystem)
|
||||
FileSystemHost(FileSystemBase &FileSystem) :
|
||||
_VolumeParams(), _FileSystemPtr(0), _FileSystem(&FileSystem)
|
||||
{
|
||||
Initialize();
|
||||
_VolumeParams.UmFileContextIsFullContext = 1;
|
||||
@ -721,9 +721,9 @@ public:
|
||||
{
|
||||
return _FileSystemPtr;
|
||||
}
|
||||
FileSystemBase *FileSystem()
|
||||
FileSystemBase &FileSystem()
|
||||
{
|
||||
return _FileSystem;
|
||||
return *_FileSystem;
|
||||
}
|
||||
static NTSTATUS SetDebugLogFile(PWSTR FileName)
|
||||
{
|
||||
|
@ -874,7 +874,7 @@ static ULONG wcstol_deflt(wchar_t *w, ULONG deflt)
|
||||
return L'\0' != w[0] && L'\0' == *endp ? ul : deflt;
|
||||
}
|
||||
|
||||
PtfsService::PtfsService() : Service(L"" PROGNAME), _Ptfs(), _Host(&_Ptfs)
|
||||
PtfsService::PtfsService() : Service(L"" PROGNAME), _Ptfs(), _Host(_Ptfs)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user