mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-24 17:01:43 +00:00
server: export spice_server_is_server_mouse predicate
To be used by qemu query-spice / info spice commands.
This commit is contained in:
parent
3fc870ad55
commit
5dd5b70223
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user