diff options
author | Max Kellermann <max@duempel.org> | 2013-01-29 23:26:51 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-29 23:26:51 +0100 |
commit | f5c0b0d3168d6c34010f86a4b6878b7181d10237 (patch) | |
tree | 50304ecc4ab8690c9283051268a393e87e3a9461 /test | |
parent | ba51045d9e85b8e48afed629d6d87ac3338acd46 (diff) | |
download | mpd-f5c0b0d3168d6c34010f86a4b6878b7181d10237.tar.gz mpd-f5c0b0d3168d6c34010f86a4b6878b7181d10237.tar.xz mpd-f5c0b0d3168d6c34010f86a4b6878b7181d10237.zip |
ArchiveFile: convert to a class
Diffstat (limited to 'test')
-rw-r--r-- | test/visit_archive.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/visit_archive.cxx b/test/visit_archive.cxx index b8cc2e019..eba715c57 100644 --- a/test/visit_archive.cxx +++ b/test/visit_archive.cxx @@ -25,6 +25,7 @@ #include "InputInit.hxx" #include "ArchiveList.hxx" #include "ArchivePlugin.hxx" +#include "ArchiveFile.hxx" #include "ArchiveVisitor.hxx" #include "fs/Path.hxx" @@ -97,10 +98,11 @@ main(int argc, char **argv) int result = EXIT_SUCCESS; - archive_file *file = archive_file_open(plugin, path.c_str(), &error); + ArchiveFile *file = archive_file_open(plugin, path.c_str(), &error); if (file != nullptr) { MyArchiveVisitor visitor; archive_file_visit(file, visitor); + archive_file_close(file); } else { fprintf(stderr, "%s\n", error->message); g_error_free(error); |