From: Alon Levy <alevy@redhat.com>
To: spice-devel@freedesktop.org, qemu-devel@nongnu.org
Cc: kraxel@redhat.com
Subject: [Qemu-devel] [PATCH] server: export spice_server_is_server_mouse predicate
Date: Mon, 26 Mar 2012 14:47:32 +0200 [thread overview]
Message-ID: <1332766053-9063-2-git-send-email-alevy@redhat.com> (raw)
In-Reply-To: <1332766053-9063-1-git-send-email-alevy@redhat.com>
To be used by qemu query-spice / info spice commands.
---
server/reds.c | 6 ++++++
server/spice-server.syms | 4 ++++
server/spice.h | 4 +++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/server/reds.c b/server/reds.c
index 27e7ea2..bf26864 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -4006,6 +4006,12 @@ SPICE_GNUC_VISIBLE int spice_server_get_peer_info(SpiceServer *s, struct sockadd
return 0;
}
+SPICE_GNUC_VISIBLE int spice_server_is_server_mouse(SpiceServer *s)
+{
+ spice_assert(reds == s);
+ return reds->mouse_mode == SPICE_MOUSE_MODE_SERVER;
+}
+
SPICE_GNUC_VISIBLE int spice_server_add_renderer(SpiceServer *s, const char *name)
{
spice_assert(reds == s);
diff --git a/server/spice-server.syms b/server/spice-server.syms
index 4b842a3..99a7271 100644
--- a/server/spice-server.syms
+++ b/server/spice-server.syms
@@ -108,3 +108,7 @@ global:
spice_server_set_uuid;
spice_server_set_listen_socket_fd;
} SPICE_SERVER_0.10.1;
+
+SPICE_SERVER_0.10.3 {
+ spice_server_is_server_mouse;
+} SPICE_SERVER_0.10.2;
diff --git a/server/spice.h b/server/spice.h
index 8dd1c3d..77aec92 100644
--- a/server/spice.h
+++ b/server/spice.h
@@ -22,7 +22,7 @@
#include <sys/socket.h>
#include <spice/qxl_dev.h>
-#define SPICE_SERVER_VERSION 0x000a02 /* release 0.10.2 */
+#define SPICE_SERVER_VERSION 0x000a03 /* release 0.10.3 */
/* interface base type */
@@ -485,6 +485,8 @@ int spice_server_set_agent_copypaste(SpiceServer *s, int enable);
int spice_server_get_sock_info(SpiceServer *s, struct sockaddr *sa, socklen_t *salen);
int spice_server_get_peer_info(SpiceServer *s, struct sockaddr *sa, socklen_t *salen);
+int spice_server_is_server_mouse(SpiceServer *s);
+
/* migration interface */
#define SPICE_INTERFACE_MIGRATION "migration"
#define SPICE_INTERFACE_MIGRATION_MAJOR 1
--
1.7.9.3
next prev parent reply other threads:[~2012-03-26 12:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-26 12:47 [Qemu-devel] [PATCH qemu+spice] expose server mouse status Alon Levy
2012-03-26 12:47 ` Alon Levy [this message]
2012-03-26 12:47 ` [Qemu-devel] [PATCH] spice_info: add mouse_mode Alon Levy
2012-03-26 13:06 ` Gerd Hoffmann
2012-03-26 13:30 ` Alon Levy
2012-03-26 13:46 ` Gerd Hoffmann
2012-03-26 13:36 ` Alon Levy
2012-03-26 14:15 ` [Qemu-devel] [PATCH v2] " Alon Levy
2012-03-29 9:08 ` Gerd Hoffmann
2012-03-29 20:16 ` Alon Levy
2012-03-29 20:19 ` Anthony Liguori
2012-03-29 20:54 ` Alon Levy
2012-03-29 21:23 ` [Qemu-devel] [PATCH v3] " Alon Levy
2012-03-30 8:12 ` Gerd Hoffmann
2012-03-30 19:25 ` Alon Levy
2012-04-01 12:06 ` Alon Levy
2012-03-26 12:58 ` [Qemu-devel] [Spice-devel] [PATCH qemu+spice] expose server mouse status Arnon Gilboa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332766053-9063-2-git-send-email-alevy@redhat.com \
--to=alevy@redhat.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=spice-devel@freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).