From a99bab935adc5ab82c3d8882047e50d6dad4502c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 25 Feb 2017 10:25:16 +0100 Subject: [PATCH] Client: add method SetPartition() --- src/client/Client.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/Client.hxx b/src/client/Client.hxx index f526c8a93..67cd1cfe0 100644 --- a/src/client/Client.hxx +++ b/src/client/Client.hxx @@ -192,6 +192,12 @@ public: return *partition; } + void SetPartition(Partition &new_partition) { + partition = &new_partition; + + // TODO: set various idle flags? + } + gcc_pure Instance &GetInstance();