From: Jonathon Jongsma <jjongsma@xxxxxxxxxx> --- server/red-dispatcher.c | 5 +++++ server/red-dispatcher.h | 1 + 2 files changed, 6 insertions(+) diff --git a/server/red-dispatcher.c b/server/red-dispatcher.c index 0fe9164..33cd12f 100644 --- a/server/red-dispatcher.c +++ b/server/red-dispatcher.c @@ -1032,3 +1032,8 @@ void red_dispatcher_set_mouse_mode(RedDispatcher *dispatcher, uint32_t mode) RED_WORKER_MESSAGE_SET_MOUSE_MODE, &payload); } + +RedsState* red_dispatcher_get_server(RedDispatcher *dispatcher) +{ + return dispatcher->reds; +} diff --git a/server/red-dispatcher.h b/server/red-dispatcher.h index eeb34fa..b5b794f 100644 --- a/server/red-dispatcher.h +++ b/server/red-dispatcher.h @@ -41,6 +41,7 @@ gboolean red_dispatcher_use_client_monitors_config(RedDispatcher *dispatcher); gboolean red_dispatcher_client_monitors_config(RedDispatcher *dispatcher, VDAgentMonitorsConfig *monitors_config); gboolean red_dispatcher_get_primary_active(RedDispatcher *dispatcher); gboolean red_dispatcher_get_allow_client_mouse(RedDispatcher *dispatcher, gint *x_res, gint *y_res); +SpiceServer* red_dispatcher_get_server(RedDispatcher *dispatcher); typedef uint32_t RedWorkerMessage; -- 2.5.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel