diff options
author | Max Kellermann <max@duempel.org> | 2013-04-17 22:58:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-04-17 23:52:58 +0200 |
commit | b2d3d15e978aef2566a1bdae435d71cb326dec4d (patch) | |
tree | 769550ce5e624915b9d3129793624583474604ba /src/Listen.cxx | |
parent | 08dfd263ba496b0c1f6ddbe9b3eefa9a5cea57a4 (diff) | |
download | mpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.tar.gz mpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.tar.xz mpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.zip |
Main: move global variables to struct Instance
More preparations for multi-player support.
Diffstat (limited to '')
-rw-r--r-- | src/Listen.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx index 26c9e100d..659ed6bdf 100644 --- a/src/Listen.cxx +++ b/src/Listen.cxx @@ -20,6 +20,7 @@ #include "config.h" #include "Listen.hxx" #include "Main.hxx" +#include "Instance.hxx" #include "Client.hxx" #include "conf.h" #include "event/ServerSocket.hxx" @@ -43,7 +44,7 @@ public: private: virtual void OnAccept(int fd, const sockaddr &address, size_t address_length, int uid) { - client_new(*main_loop, *global_partition, + client_new(*main_loop, *instance->partition, fd, &address, address_length, uid); } }; |