summaryrefslogtreecommitdiffstats
path: root/src/server/Broadcaster.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Broadcaster.hpp')
-rw-r--r--src/server/Broadcaster.hpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/server/Broadcaster.hpp b/src/server/Broadcaster.hpp
index a2d75284..bf586c38 100644
--- a/src/server/Broadcaster.hpp
+++ b/src/server/Broadcaster.hpp
@@ -45,18 +45,22 @@ public:
Broadcaster();
~Broadcaster();
- void register_client(SPtr<Interface> client);
- bool unregister_client(SPtr<Interface> client);
+ void register_client(const SPtr<Interface>& client);
+ bool unregister_client(const SPtr<Interface>& client);
- void set_broadcast(SPtr<Interface> client, bool broadcast);
+ void set_broadcast(const SPtr<Interface>& client, bool broadcast);
/** Ignore a client when broadcasting.
*
* This is used to prevent feeding back updates to the client that
* initiated a property set in the first place.
*/
- void set_ignore_client(SPtr<Interface> client) { _ignore_client = client; }
- void clear_ignore_client() { _ignore_client.reset(); }
+ void set_ignore_client(const SPtr<Interface>& client)
+ {
+ _ignore_client = client;
+ }
+
+ void clear_ignore_client() { _ignore_client.reset(); }
/** Return true iff there are any clients with broadcasting enabled.
*