summaryrefslogtreecommitdiff
path: root/src/client/Client.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-13 18:20:47 +0200
committerMax Kellermann <max@musicpd.org>2018-07-15 21:51:33 +0200
commit8aa2c574135ec147a59f36b032436fc9c6860f0c (patch)
treea90479818d68a23debb2e581713c94a68e0c34bb /src/client/Client.hxx
parent524a7f456097348a91944a5c42da6dea9a20be47 (diff)
client: pass permission mask to constructor
Prepare for per-listener permissions.
Diffstat (limited to 'src/client/Client.hxx')
-rw-r--r--src/client/Client.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/Client.hxx b/src/client/Client.hxx
index 593709ce6..07e51b969 100644
--- a/src/client/Client.hxx
+++ b/src/client/Client.hxx
@@ -97,7 +97,9 @@ public:
std::list<ClientMessage> messages;
Client(EventLoop &loop, Partition &partition,
- UniqueSocketDescriptor fd, int uid, int num) noexcept;
+ UniqueSocketDescriptor fd, int uid,
+ unsigned _permission,
+ int num) noexcept;
~Client() noexcept {
if (FullyBufferedSocket::IsDefined())
@@ -239,6 +241,7 @@ client_manager_init();
void
client_new(EventLoop &loop, Partition &partition,
- UniqueSocketDescriptor fd, SocketAddress address, int uid) noexcept;
+ UniqueSocketDescriptor fd, SocketAddress address, int uid,
+ unsigned permission) noexcept;
#endif