From 8aa2c574135ec147a59f36b032436fc9c6860f0c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 13 Jul 2018 18:20:47 +0200 Subject: client: pass permission mask to constructor Prepare for per-listener permissions. --- src/client/Client.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/client/Client.hxx') 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 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 -- cgit v1.2.3