diff options
author | Max Kellermann <max@duempel.org> | 2014-10-07 19:45:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-09 07:45:25 +0200 |
commit | 3d2558bde6cebd6b628935f2852572cc7bb6eeab (patch) | |
tree | a2dcb1624f8d24cde3918c9ee955aae911c45417 /src/command | |
parent | 1aac0b10c9499db77cbe39e43a0abc8cccc72079 (diff) | |
download | mpd-3d2558bde6cebd6b628935f2852572cc7bb6eeab.tar.gz mpd-3d2558bde6cebd6b628935f2852572cc7bb6eeab.tar.xz mpd-3d2558bde6cebd6b628935f2852572cc7bb6eeab.zip |
StoragePlugin: pass EventLoop to constructor
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/StorageCommands.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/StorageCommands.cxx b/src/command/StorageCommands.cxx index aeec73e1c..ee51c573e 100644 --- a/src/command/StorageCommands.cxx +++ b/src/command/StorageCommands.cxx @@ -35,6 +35,7 @@ #include "db/plugins/simple/SimpleDatabasePlugin.hxx" #include "db/update/Service.hxx" #include "TimePrint.hxx" +#include "IOThread.hxx" #include "Idle.hxx" #include <inttypes.h> /* for PRIu64 */ @@ -121,7 +122,7 @@ CommandResult handle_listfiles_storage(Client &client, const char *uri) { Error error; - Storage *storage = CreateStorageURI(uri, error); + Storage *storage = CreateStorageURI(io_thread_get(), uri, error); if (storage == nullptr) { if (error.IsDefined()) return print_error(client, error); @@ -217,7 +218,8 @@ handle_mount(Client &client, gcc_unused unsigned argc, char *argv[]) } Error error; - Storage *storage = CreateStorageURI(remote_uri, error); + Storage *storage = CreateStorageURI(io_thread_get(), remote_uri, + error); if (storage == nullptr) { if (error.IsDefined()) return print_error(client, error); |