aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive/ArchivePlugin.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-08 13:21:50 +0100
committerMax Kellermann <max@duempel.org>2014-02-08 13:25:44 +0100
commitfe7c6fee348a3263ce0c97a83547749725f681cb (patch)
tree9773e269458ed7847fa9d566a20dfdd6db89b59a /src/archive/ArchivePlugin.hxx
parent9906daeca71b7e552721f85f3696d9e6a20f7a5b (diff)
downloadmpd-fe7c6fee348a3263ce0c97a83547749725f681cb.tar.gz
mpd-fe7c6fee348a3263ce0c97a83547749725f681cb.tar.xz
mpd-fe7c6fee348a3263ce0c97a83547749725f681cb.zip
ArchivePlugin: pass Path to open()
Diffstat (limited to 'src/archive/ArchivePlugin.hxx')
-rw-r--r--src/archive/ArchivePlugin.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/archive/ArchivePlugin.hxx b/src/archive/ArchivePlugin.hxx
index 023c933f3..eb24bbdf9 100644
--- a/src/archive/ArchivePlugin.hxx
+++ b/src/archive/ArchivePlugin.hxx
@@ -21,6 +21,7 @@
#define MPD_ARCHIVE_PLUGIN_HXX
class ArchiveFile;
+class Path;
class Error;
struct ArchivePlugin {
@@ -44,7 +45,7 @@ struct ArchivePlugin {
* returns pointer to handle used is all operations with this archive
* or nullptr when opening fails
*/
- ArchiveFile *(*open)(const char *path_fs, Error &error);
+ ArchiveFile *(*open)(Path path_fs, Error &error);
/**
* suffixes handled by this plugin.
@@ -54,7 +55,7 @@ struct ArchivePlugin {
};
ArchiveFile *
-archive_file_open(const ArchivePlugin *plugin, const char *path,
+archive_file_open(const ArchivePlugin *plugin, Path path,
Error &error);
#endif