[Spice-devel] [PATCH 10/17] Add red_dispatcher_get_server()
Frediano Ziglio
fziglio at redhat.com
Thu Feb 11 19:24:09 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 26811e7..d14b4ac 100644
--- a/server/red-dispatcher.c
+++ b/server/red-dispatcher.c
@@ -1044,3 +1044,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 887123f..ea0d8b9 100644
--- a/server/red-dispatcher.h
+++ b/server/red-dispatcher.h
@@ -40,6 +40,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);
+RedsState* red_dispatcher_get_server(RedDispatcher *dispatcher);
typedef uint32_t RedWorkerMessage;
--
2.5.0
More information about the Spice-devel
mailing list