Replace our existing loop with GMainLoop.
Use GIOChannels with g_io_add_watch() to manage IO
from udscs and x11 connections in the main loop.
Add function spice_vdagent_write_msg()
which internally uses udscs_write(), but on top of that
calls g_io_add_watch(, G_IO_OUT, ,). Once the fd becomes
This is required for the following GMainLoop integration,
which utilizes some of the new functions/definitions, namely:
[definition][GLib version]
g_clear_pointer() 2.34
G_SOURCE_REMOVE 2.32
G_SOURCE_CONTINUE 2.32
g_unix_signal_add() 2.30
---
configure.ac | 2 +-
1 file changed, 1
From: Victor Toso
This is mostly a preparatory patch to reduce the usage of globals and
the GMainLoop integration. The changes target one function by:
* Changing its name from client_setup() to client_setup_sync(): As it
important to clarify that the function block;
*
From: Victor Toso
As we already depend on glib, let's remove code that glib can take
care of. In this case, we don't need to handle commandline parsing
ourselves.
In regard the global variables:
* static const char * -> static gchar * [only paths]
path variables:
From: Victor Toso
This patch creates two functions:
- xfer_get_download_directory()
- vdagent_init_file_xfer()
The logic should be similar as it was before this patch, taking in
consideration the global variables fx_open_dir and fx_dir which are
set from command line.
From: Victor Toso
This patch creates vdagent_finalize_file_xfer() to finalize and stop
file xfer. Moving this code to a function removes some duplication.
Signed-off-by: Victor Toso
---
src/vdagent/vdagent.c | 22 --
1 file
Hi,
this patchset is supposed to be the start of tighter
GLib and GTK+ integration in spice vdagent.
The goal for the future is to replace X11-specific code
with GTK/GLib.
Main changes:
- Use GLib's command line parser
- Add SpiceVDAgent GObject
- Replace main while-loop with GMainLoop
Known
This is necessary for the following GMainLoop integration.
---
src/udscs.c | 6 ++
src/udscs.h | 4
2 files changed, 10 insertions(+)
diff --git a/src/udscs.c b/src/udscs.c
index 2761cbb..4a0e193 100644
--- a/src/udscs.c
+++ b/src/udscs.c
@@ -359,6 +359,12 @@ int
Related to ongoing work to use GMainLoop and GTK integration
Signed-off-by: Victor Toso
---
Makefile.am | 3 +
configure.ac | 1 +
src/vdagent/vdagent.c | 149 +++---
src/vdagent/vdagent.h | 54
From: Victor Toso
This patch export two existing functions `udscs_do_read()` and
`udscs_do_write()` and also creates a new one `udscs_client_get_fd()`.
The intention of this functions is to allow vdagent to check if
connection's socket is ready to read or write. This will
---
src/vdagent/vdagent.c | 17 ++---
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/src/vdagent/vdagent.c b/src/vdagent/vdagent.c
index dfb9284..6b4c127 100644
--- a/src/vdagent/vdagent.c
+++ b/src/vdagent/vdagent.c
@@ -168,7 +168,7 @@ static void usage(FILE *fp)
From: Victor Toso
Introduce new parameter to the functions:
* udscs_create_server() - only used in vdagentd.c
* udscs_connect() - only used in vdagent.c
Related changes were necessary to the predefined callback types and
its implementations to include this new
Hey everyone,
Another unstable spice-server release, not a lot of bugs found after the
release of 0.13.90, hopefully this means we are in a good shape... a new
spice-server unstable release. This release should be the final release
candidate for 0.14.0, which will be released next week if no big
13 matches
Mail list logo