summaryrefslogtreecommitdiff
path: root/src/home/homed-manager.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-11-04 16:32:05 +0100
committerLennart Poettering <lennart@poettering.net>2021-11-25 18:28:44 +0100
commit4950591627de2e859fb5fd1ae6d67e9c2e1b395e (patch)
tree94fd8b819585369d4ea9ec54834cf4177043782c /src/home/homed-manager.h
parentd357b80d331ebed709b7a9d71e014c319ba5bd79 (diff)
downloadsystemd-4950591627de2e859fb5fd1ae6d67e9c2e1b395e.tar.gz
homed: add explicit API for requesting rebalancing too
Diffstat (limited to 'src/home/homed-manager.h')
-rw-r--r--src/home/homed-manager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/home/homed-manager.h b/src/home/homed-manager.h
index cf6d58b258..18e7542e13 100644
--- a/src/home/homed-manager.h
+++ b/src/home/homed-manager.h
@@ -63,6 +63,12 @@ struct Manager {
RebalanceState rebalance_state;
usec_t rebalance_interval_usec;
+
+ /* In order to allow synchronous rebalance requests via bus calls we maintain two pools of bus
+ * messages: 'rebalance_pending_methods' are the method calls we are currently operating on and
+ * running a rebalancing operation for. 'rebalance_queued_method_calls' are the method calls that
+ * have been queued since then and that we'll operate on once we complete the current run. */
+ Set *rebalance_pending_method_calls, *rebalance_queued_method_calls;
};
int manager_new(Manager **ret);