[Spice-devel] [PATCH vdagent-linux 2/4] vport: add @err to disconnect_callback

2018-09-30 Thread Jakub Janků
This is necessary for the following GMainLoop integration: vdagentd currently uses a while-loop in which vdagent_virtio_port_handle_fds() is repeatedly called. If an IO error occurs, the function sets virtio_port to NULL. This way, we can detect when the virtio_port has been destroyed and try to r

[Spice-devel] [PATCH vdagent-linux 4/4] udscs-server: split initialization

2018-09-30 Thread Jakub Janků
Divide creation of udscs_server into 2 steps: 1) udscs_server_new() - allocates new udscs_server struct and inits it 2) udscs_server_listen_to_fd(), udscs_server_listen_to_address() - starts accepting new connections Remove udscs_create_server() and udscs_create_server_for_fd(). This makes th

[Spice-devel] [PATCH vdagent-linux 0/4] GLib & GIO integration: VDAgentConnection

2018-09-30 Thread Jakub Janků
Hi all, this series is an another branch from the GLib integration series I sent earlier. I've mainly addressed the comments from Victor. Major changes: * VDAgentConnection turned into a GObject * problem with finalization of the VDAgentConnection solved * several commits were squashed into "

[Spice-devel] [PATCH vdagent-linux 1/4] build: add GIO dependency

2018-09-30 Thread Jakub Janků
Require UNIX-specific GIO package to build spice-vdagent. This package includes: - GDBus which is going to be used instead of libdbus in console-kit.c and systemd-login.c - I/O stream classes and networking APIs that are going to be used in udscs.c and virtio-port.c instead of low-level PO

[Spice-devel] [PATCH vdagent-linux 3/4] introduce VDAgentConnection

2018-09-30 Thread Jakub Janků
1) VDAgentConnection Add vdagent-connection.{c,h} files. Define a new GObject: VDAgentConnection which can be used to easily write messages to and read from the given FD. VDAgentConnection uses GIO and therefore integrates well with GMainLoop. Read messages must begin with a header of a fixed s

[Spice-devel] [spice-gtk v2 1/1] usb-redirection: implementation of usb backend layer

2018-09-30 Thread Yuri Benditovich
This layer communicates with libusb and libusbredir and provides the API for USB redirection procedures. All the modules of spice-gtk communicate only with usb backend instead of calling libusb and usbredirhost directly. This is prerequisite of further implementation of cd-sharing via USB redirecti

[Spice-devel] [spice-gtk v2 0/1] usb redirection: USB backend layer

2018-09-30 Thread Yuri Benditovich
USB backend communicates with libusb and libusbredir and provides the API for USB redirection procedures. All the modules communicate only with usb backend instead of calling libusb and usbredirhost directly. This is prerequisite of further implementation of cd-sharing via USB redirection. Changes

[Spice-devel] [spice-gtk] qmp-helper/build: disable qmp build under mingw

2018-09-30 Thread Yuri Benditovich
Currently mingw build of qmp-helper fails under mingw due to undefined memmem function. Disabling it for mingw till better solution. Signed-off-by: Yuri Benditovich --- configure.ac | 3 +++ src/qmp-port.c | 7 +++ 2 files changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac