daemon: export game objects on the bus

For each registered game, export an object on the bus under the
path "/com/feralinteractive/GameMode/Games/<pid>" with an dbus
interface of ""com.feralinteractive.GameMode.Game". The interface
currently provides to properties, ProcessId and Executable.
Additionally add the ListGames method and the GameRegistered,
GameUnregistered signals to the com.feralinteractive.GameMode
interface.
This commit is contained in:
Christian Kellner
2019-07-02 17:36:30 +02:00
parent 5949a988ea
commit d2bab2962d
3 changed files with 267 additions and 1 deletions

View File

@ -197,4 +197,6 @@ int game_mode_get_gpu(GameModeGPUInfo *info);
*/
void game_mode_context_loop(GameModeContext *context) __attribute__((noreturn));
int game_mode_inhibit_screensaver(bool inhibit);
void game_mode_client_count_changed(void);
void game_mode_client_count_changed(void);
void game_mode_client_registered(pid_t);
void game_mode_client_unregistered(pid_t);