input/Plugin: pass EventLoop& to init()

Eliminate dependency on io_thread_get().
This commit is contained in:
Max Kellermann
2017-01-25 23:06:12 +01:00
parent 58ac72f79d
commit 3854211694
15 changed files with 21 additions and 20 deletions

View File

@@ -31,6 +31,7 @@
struct ConfigBlock;
class Mutex;
class Cond;
class EventLoop;
class InputStream;
struct InputPlugin {
@@ -44,7 +45,7 @@ struct InputPlugin {
*
* Throws std::runtime_error on (fatal) error.
*/
void (*init)(const ConfigBlock &block);
void (*init)(EventLoop &event_loop, const ConfigBlock &block);
/**
* Global deinitialization. Called once before MPD shuts