ArchivePlugin: move instance methods to class ArchiveFile

This commit is contained in:
Max Kellermann
2013-01-29 23:36:58 +01:00
parent 701fff03d2
commit 16afdfd874
9 changed files with 92 additions and 161 deletions

View File

@@ -22,6 +22,7 @@
#include "ArchiveLookup.hxx"
#include "ArchiveList.hxx"
#include "ArchivePlugin.hxx"
#include "ArchiveFile.hxx"
#include "InputPlugin.hxx"
#include <glib.h>
@@ -69,10 +70,9 @@ input_archive_open(const char *pathname,
}
//setup fileops
is = archive_file_open_stream(file, filename, mutex, cond,
error_r);
archive_file_close(file);
is = file->OpenStream(filename, mutex, cond, error_r);
g_free(pname);
file->Close();
return is;
}