From 959269c4432632e9228a5fa148eed2255e508554 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 29 Nov 2009 16:29:03 +0100 Subject: Introduce copy operation start/stop calls This is the first step for a rapid extraction speed increase as we don't need to open&seek for every file. Sorting by inode is still need to be written but most archives work fine as they are. TODO: writing into the archive needs special care (see TODO in zip plugin) --- vfs/uVFSprototypes.pas | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vfs/uVFSprototypes.pas') diff --git a/vfs/uVFSprototypes.pas b/vfs/uVFSprototypes.pas index bef0246..bd33726 100644 --- a/vfs/uVFSprototypes.pas +++ b/vfs/uVFSprototypes.pas @@ -238,6 +238,10 @@ type TVFSCopyToLocal = function (g:TVFSGlobs; const sSrcName, sDstName: PChar; Append: gboolean): TVFSResult; cdecl; // Performs the copy process from local filesystem into the module TVFSCopyFromLocal = function (g:TVFSGlobs; const sSrcName, sDstName: PChar; Append: gboolean): TVFSResult; cdecl; + // Start the copy operation - open the archive and prepare internal structures + TVFSStartCopyOperation = function (g:TVFSGlobs): TVFSResult; cdecl; + // Stop the copy operation - close the archive and free memory + TVFSStopCopyOperation = function (g:TVFSGlobs): TVFSResult; cdecl; // TODO: Prototype function for packing new files into archive -- cgit v1.2.3