[Spice-devel] [PATCH 11/18] Add red_dispatcher_get_server()

Frediano Ziglio fziglio at redhat.com
Mon Feb 15 16:01:12 UTC 2016


From: Jonathon Jongsma <jjongsma at redhat.com>

---
 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



More information about the Spice-devel mailing list