db/update/Archive: pass ArchiveFile to Song constructor

Don't open the ZIP file again and again for each song file.
This commit is contained in:
Max Kellermann
2016-02-26 15:00:41 +01:00
parent 35567e6507
commit 96f4394dce
2 changed files with 13 additions and 8 deletions

View File

@@ -30,6 +30,7 @@ struct stat;
struct StorageFileInfo;
struct Directory;
struct ArchivePlugin;
class ArchiveFile;
class Storage;
class ExcludeList;
@@ -101,7 +102,8 @@ private:
#ifdef ENABLE_ARCHIVE
void UpdateArchiveTree(Directory &parent, const char *name);
void UpdateArchiveTree(ArchiveFile &archive, Directory &parent,
const char *name);
bool UpdateArchiveFile(Directory &directory,
const char *name, const char *suffix,