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/storage/Configured.cxx | |
parent | 1aac0b10c9499db77cbe39e43a0abc8cccc72079 (diff) | |
download | mpd-3d2558bde6cebd6b628935f2852572cc7bb6eeab.tar.gz mpd-3d2558bde6cebd6b628935f2852572cc7bb6eeab.tar.xz mpd-3d2558bde6cebd6b628935f2852572cc7bb6eeab.zip |
StoragePlugin: pass EventLoop to constructor
Diffstat (limited to 'src/storage/Configured.cxx')
-rw-r--r-- | src/storage/Configured.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/storage/Configured.cxx b/src/storage/Configured.cxx index 800a18ba0..41541673b 100644 --- a/src/storage/Configured.cxx +++ b/src/storage/Configured.cxx @@ -31,9 +31,10 @@ #include <assert.h> static Storage * -CreateConfiguredStorageUri(const char *uri, Error &error) +CreateConfiguredStorageUri(EventLoop &event_loop, const char *uri, + Error &error) { - Storage *storage = CreateStorageURI(uri, error); + Storage *storage = CreateStorageURI(event_loop, uri, error); if (storage == nullptr && !error.IsDefined()) error.Format(config_domain, "Unrecognized storage URI: %s", uri); @@ -63,13 +64,13 @@ CreateConfiguredStorageLocal(Error &error) } Storage * -CreateConfiguredStorage(Error &error) +CreateConfiguredStorage(EventLoop &event_loop, Error &error) { assert(!error.IsDefined()); auto uri = config_get_string(CONF_MUSIC_DIR, nullptr); if (uri != nullptr && uri_has_scheme(uri)) - return CreateConfiguredStorageUri(uri, error); + return CreateConfiguredStorageUri(event_loop, uri, error); return CreateConfiguredStorageLocal(error); } |