Added more entries to DLL export

This commit is contained in:
Berserker 2019-05-09 17:16:09 +03:00
parent c2c2c83cf6
commit f8304dcd8c
5 changed files with 572 additions and 550 deletions

1
.gitignore vendored
View File

@ -2,4 +2,5 @@
*.exe
*.ini
*.identcache
*.map
__history/

View File

@ -13,7 +13,7 @@ uses
(* Runs all VFS subsystems, unless VFS is already running *)
function RunVfs (DirListingOrder: VfsBase.TDirListingSortType): boolean;
function RunVfs (DirListingOrder: VfsBase.TDirListingSortType): boolean; stdcall;
(***) implementation (***)
@ -43,7 +43,7 @@ begin
result := Windows.SetCurrentDirectoryW(PWideChar(AbsPath));
end;
function RunVfs (DirListingOrder: VfsBase.TDirListingSortType): boolean;
function RunVfs (DirListingOrder: VfsBase.TDirListingSortType): boolean; stdcall;
var
CurrDir: WideString;

View File

@ -93,10 +93,10 @@ function GetThreadVfsDisabler: TThreadVfsDisabler;
function RunVfs (DirListingOrder: TDirListingSortType): boolean;
(* Temporarily pauses VFS, but does not reset existing mappings *)
function PauseVfs: boolean;
function PauseVfs: boolean; stdcall;
(* Stops VFS and clears all mappings *)
function ResetVfs: boolean;
function ResetVfs: boolean; stdcall;
(* Returns true if VFS is active globally and for current thread *)
function IsVfsActive: boolean;
@ -300,7 +300,7 @@ begin
end; // .if
end; // .function RunVfs
function PauseVfs: boolean;
function PauseVfs: boolean; stdcall;
begin
result := not DisableVfsForThisThread;
@ -313,7 +313,7 @@ begin
end;
end;
function ResetVfs: boolean;
function ResetVfs: boolean; stdcall;
begin
result := not DisableVfsForThisThread;

View File

@ -7,14 +7,26 @@ unit VfsExport;
(***) interface (***)
uses
VfsDebug;
VfsDebug, VfsBase, VfsControl;
exports
VfsDebug.SetLoggingProc,
VfsDebug.WriteLog_ name 'WriteLog',
VfsDebug.SetLoggingProc;
VfsControl.RunVfs,
VfsBase.PauseVfs,
VfsBase.ResetVfs,
VfsBase.CallWithoutVfs;
(***) implementation (***)
function MapDir (const VirtPath, RealPath: PWideChar; OverwriteExisting: boolean; Flags: integer = 0): boolean; stdcall;
begin
result := VfsBase.MapDir(WideString(VirtPath), WideString(RealPath), OverwriteExisting, Flags);
end;
exports
MapDir;
end.

File diff suppressed because it is too large Load Diff