mirror of
https://github.com/CloudDelphi/Virtual-File-System
synced 2025-12-19 09:53:54 +01:00
Added more entries to DLL export
This commit is contained in:
parent
c2c2c83cf6
commit
f8304dcd8c
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,4 +2,5 @@
|
|||||||
*.exe
|
*.exe
|
||||||
*.ini
|
*.ini
|
||||||
*.identcache
|
*.identcache
|
||||||
|
*.map
|
||||||
__history/
|
__history/
|
||||||
@ -13,7 +13,7 @@ uses
|
|||||||
|
|
||||||
|
|
||||||
(* Runs all VFS subsystems, unless VFS is already running *)
|
(* Runs all VFS subsystems, unless VFS is already running *)
|
||||||
function RunVfs (DirListingOrder: VfsBase.TDirListingSortType): boolean;
|
function RunVfs (DirListingOrder: VfsBase.TDirListingSortType): boolean; stdcall;
|
||||||
|
|
||||||
|
|
||||||
(***) implementation (***)
|
(***) implementation (***)
|
||||||
@ -43,7 +43,7 @@ begin
|
|||||||
result := Windows.SetCurrentDirectoryW(PWideChar(AbsPath));
|
result := Windows.SetCurrentDirectoryW(PWideChar(AbsPath));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function RunVfs (DirListingOrder: VfsBase.TDirListingSortType): boolean;
|
function RunVfs (DirListingOrder: VfsBase.TDirListingSortType): boolean; stdcall;
|
||||||
var
|
var
|
||||||
CurrDir: WideString;
|
CurrDir: WideString;
|
||||||
|
|
||||||
|
|||||||
@ -93,10 +93,10 @@ function GetThreadVfsDisabler: TThreadVfsDisabler;
|
|||||||
function RunVfs (DirListingOrder: TDirListingSortType): boolean;
|
function RunVfs (DirListingOrder: TDirListingSortType): boolean;
|
||||||
|
|
||||||
(* Temporarily pauses VFS, but does not reset existing mappings *)
|
(* Temporarily pauses VFS, but does not reset existing mappings *)
|
||||||
function PauseVfs: boolean;
|
function PauseVfs: boolean; stdcall;
|
||||||
|
|
||||||
(* Stops VFS and clears all mappings *)
|
(* Stops VFS and clears all mappings *)
|
||||||
function ResetVfs: boolean;
|
function ResetVfs: boolean; stdcall;
|
||||||
|
|
||||||
(* Returns true if VFS is active globally and for current thread *)
|
(* Returns true if VFS is active globally and for current thread *)
|
||||||
function IsVfsActive: boolean;
|
function IsVfsActive: boolean;
|
||||||
@ -300,7 +300,7 @@ begin
|
|||||||
end; // .if
|
end; // .if
|
||||||
end; // .function RunVfs
|
end; // .function RunVfs
|
||||||
|
|
||||||
function PauseVfs: boolean;
|
function PauseVfs: boolean; stdcall;
|
||||||
begin
|
begin
|
||||||
result := not DisableVfsForThisThread;
|
result := not DisableVfsForThisThread;
|
||||||
|
|
||||||
@ -313,7 +313,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ResetVfs: boolean;
|
function ResetVfs: boolean; stdcall;
|
||||||
begin
|
begin
|
||||||
result := not DisableVfsForThisThread;
|
result := not DisableVfsForThisThread;
|
||||||
|
|
||||||
|
|||||||
@ -7,14 +7,26 @@ unit VfsExport;
|
|||||||
(***) interface (***)
|
(***) interface (***)
|
||||||
|
|
||||||
uses
|
uses
|
||||||
VfsDebug;
|
VfsDebug, VfsBase, VfsControl;
|
||||||
|
|
||||||
exports
|
exports
|
||||||
|
VfsDebug.SetLoggingProc,
|
||||||
VfsDebug.WriteLog_ name 'WriteLog',
|
VfsDebug.WriteLog_ name 'WriteLog',
|
||||||
VfsDebug.SetLoggingProc;
|
VfsControl.RunVfs,
|
||||||
|
VfsBase.PauseVfs,
|
||||||
|
VfsBase.ResetVfs,
|
||||||
|
VfsBase.CallWithoutVfs;
|
||||||
|
|
||||||
|
|
||||||
(***) implementation (***)
|
(***) implementation (***)
|
||||||
|
|
||||||
|
|
||||||
|
function MapDir (const VirtPath, RealPath: PWideChar; OverwriteExisting: boolean; Flags: integer = 0): boolean; stdcall;
|
||||||
begin
|
begin
|
||||||
|
result := VfsBase.MapDir(WideString(VirtPath), WideString(RealPath), OverwriteExisting, Flags);
|
||||||
|
end;
|
||||||
|
|
||||||
|
exports
|
||||||
|
MapDir;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
1093
VfsTest.map
1093
VfsTest.map
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user