daemon: add a ClientCount dbus property

Introduce a new "ClientCount" dbus property that can be queried and
also watched to see if gamemode is currently active (or not).
This commit is contained in:
Christian Kellner
2019-04-10 23:57:27 +02:00
parent 6d921617f9
commit 05909d1cfa
3 changed files with 47 additions and 12 deletions

View File

@@ -44,3 +44,8 @@ void game_mode_context_loop(GameModeContext *context) __attribute__((noreturn));
* Inhibit the screensaver
*/
int game_mode_inhibit_screensaver(bool inhibit);
/**
* Signal the ClientCount property has changed
*/
void game_mode_client_count_changed(void);