[Spice-devel] [PATCHv3 spice-gtk 12/14] Make SpiceURI a public API

2014-02-17 Thread Marc-André Lureau
Generalize a little bit SpiceProxy to allow easy URI manipulation by clients. --- doc/reference/Makefile.am| 1 + doc/reference/spice-gtk-docs.xml | 1 + doc/reference/spice-gtk-sections.txt | 26 ++ gtk/Makefile.am | 5 +- gtk/map-file

[Spice-devel] [PATCHv3 spice-gtk 14/14] session: add spice_session_get_proxy_uri()

2014-02-17 Thread Marc-André Lureau
Learn to return the currently configured proxy, to allow client to tweak parameters, such as username and password. --- doc/reference/spice-gtk-sections.txt | 1 + gtk/map-file | 1 + gtk/spice-glib-sym-file | 1 + gtk/spice-session.c | 14 +

[Spice-devel] [PATCHv3 spice-gtk 13/14] channel: add spice_channel_get_error()

2014-02-17 Thread Marc-André Lureau
Add a function to retrieve the last GError from a channel, this may be useful to provide additional error details to the client. --- doc/reference/spice-gtk-sections.txt | 1 + gtk/map-file | 1 + gtk/spice-channel-priv.h | 1 + gtk/spice-channel.c

[Spice-devel] [PATCHv3 spice-gtk 03/14] proxy: add user and pass properties

2014-02-17 Thread Marc-André Lureau
--- gtk/spice-proxy.c | 72 +++ gtk/spice-proxy.h | 4 2 files changed, 76 insertions(+) diff --git a/gtk/spice-proxy.c b/gtk/spice-proxy.c index f338213..7711e83 100644 --- a/gtk/spice-proxy.c +++ b/gtk/spice-proxy.c @@ -26,6 +26,8 @@ str

[Spice-devel] [PATCHv3 spice-gtk 10/14] channel: simplify has error code

2014-02-17 Thread Marc-André Lureau
Get rid of a superflous g_socket_condition_check(). --- gtk/spice-channel.c | 28 +++- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c index d47f19f..7bcb0b8 100644 --- a/gtk/spice-channel.c +++ b/gtk/spice-channel.c

[Spice-devel] [PATCHv3 spice-gtk 02/14] proxy: split uri with : in only 2 parts

2014-02-17 Thread Marc-André Lureau
We want just host:port here. --- gtk/spice-proxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/spice-proxy.c b/gtk/spice-proxy.c index bc4037e..f338213 100644 --- a/gtk/spice-proxy.c +++ b/gtk/spice-proxy.c @@ -74,7 +74,8 @@ gboolean spice_proxy_parse(SpiceProxy *self

[Spice-devel] [PATCHv3 spice-gtk 08/14] Fill g_proxy_address_new() with protocol, user and password

2014-02-17 Thread Marc-André Lureau
This way, the call might eventually support more proxy and authentication. --- gtk/spice-session.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gtk/spice-session.c b/gtk/spice-session.c index 475306a..975fd7b 100644 --- a/gtk/spice-session.c +++ b/gtk/spice-session.c

[Spice-devel] [PATCHv3 spice-gtk 04/14] proxy: parse user and pass from uri

2014-02-17 Thread Marc-André Lureau
--- gtk/spice-proxy.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/gtk/spice-proxy.c b/gtk/spice-proxy.c index 7711e83..8613469 100644 --- a/gtk/spice-proxy.c +++ b/gtk/spice-proxy.c @@ -19,6 +19,7 @@ #include #include +#include "glib-compat.h"

[Spice-devel] [PATCHv3 spice-gtk 11/14] channel: talk to giostream instead of gsocket

2014-02-17 Thread Marc-André Lureau
--- gtk/spice-channel-priv.h | 2 ++ gtk/spice-channel.c | 53 +++- 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/gtk/spice-channel-priv.h b/gtk/spice-channel-priv.h index 35704ea..f38156e 100644 --- a/gtk/spice-channel-priv.h ++

[Spice-devel] [PATCHv3 spice-gtk 05/14] http-proxy: specify Basic scheme

2014-02-17 Thread Marc-André Lureau
Or Squid will fail with: WARNING: Unsupported or unconfigured/inactive proxy-auth scheme --- gtk/wocky-http-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/wocky-http-proxy.c b/gtk/wocky-http-proxy.c index d73990b..11f557e 100644 --- a/gtk/wocky-http-proxy.c +++ b/g

[Spice-devel] [PATCHv3 spice-gtk 09/14] openssl: learn to handle a new kind of BIO based on GIOStream

2014-02-17 Thread Marc-André Lureau
Although reusing BIO_new_socket() once again is a hack, it seems to be the easiest way... The proper solution is certainly to start using GTls instead, but that will require a glib 2.28 dep bump. --- gtk/Makefile.am | 4 +- gtk/bio-gio.c | 135 ++

[Spice-devel] [PATCHv3 spice-gtk 07/14] http-proxy: add https proxy

2014-02-17 Thread Marc-André Lureau
This will require glib 2.28 for GTls support, atm --- gtk/spice-session.c| 3 + gtk/wocky-http-proxy.c | 161 ++--- gtk/wocky-http-proxy.h | 14 + 3 files changed, 155 insertions(+), 23 deletions(-) diff --git a/gtk/spice-session.c b/gtk/spic

[Spice-devel] [PATCHv3 spice-gtk 06/14] spice-proxy: parse https protocol

2014-02-17 Thread Marc-André Lureau
--- gtk/spice-proxy.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gtk/spice-proxy.c b/gtk/spice-proxy.c index 8613469..cf4b6ad 100644 --- a/gtk/spice-proxy.c +++ b/gtk/spice-proxy.c @@ -65,9 +65,17 @@ gboolean spice_proxy_parse(SpiceProxy *self, const gchar

[Spice-devel] [PATCHv3 spice-gtk 01/14] compat: add strtok_r fallback

2014-02-17 Thread Marc-André Lureau
The following Spice proxy URI parsing code makes use of it, but it is not available on Windows Origin: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;a=blob;f=compat/strtok_r.c --- configure.ac | 2 +- gtk/glib-compat.c | 34 ++ gtk/glib-compat.h | 8

[Spice-devel] [PATCHv3 spice-gtk 00/14] Add https + basic auth proxy support

2014-02-17 Thread Marc-André Lureau
Hi, The following series allows to connect to an HTTPS proxy, with Basic authentication. It also introduce a get_error() function, currently used to permit clients to ask for proxy credentials when required. A small patch for this is ready to be submitted for virt-viewer. In v3: - address last

Re: [Spice-devel] [PATCH spice-gtk] Add SpiceVMC GIOStream

2014-02-17 Thread Marc-André Lureau
On Wed, Feb 12, 2014 at 1:57 PM, Christophe Fergeau wrote: > On Tue, Feb 11, 2014 at 06:52:49PM +0100, Marc-André Lureau wrote: >> This allows to use conveniently GIOStream APIs without caring about >> coroutine and Spice messages details. >> --- >> gtk/Makefile.am | 2 + >> gtk/vmcstream.c | 5

[Spice-devel] Multi-monitor and fullscreen in virt-viewer

2014-02-17 Thread Jonathon Jongsma
Hello all, Recently I've been trying to improve the multimonitor situation in virt-viewer. However, one of the challenges is that the behavior of virt-viewer is not very well-specified at the moment. This means that it's not always easy to determine whether certain behavior is intentional or w

Re: [Spice-devel] How to start with Spice Development?

2014-02-17 Thread Jeremy White
On 02/17/2014 08:44 AM, Alf G. wrote: Hi, I am very interested to delve into spice and perhaps do some work on it. What is the best way to start? Can I use the documents on spice-space.org/documentation.html as base or are they not at all up to date? I

Re: [Spice-devel] spice: connection refused

2014-02-17 Thread Sean Darcy
On 02/17/2014 06:37 AM, Marian Krcmarik wrote: - Original Message - From: "Sean Darcy" To: spice-devel@lists.freedesktop.org Sent: Monday, February 17, 2014 12:25:36 AM Subject: Re: [Spice-devel] spice: connection refused On 02/16/2014 05:11 PM, Marian Krcmarik wrote: - Origin

[Spice-devel] [PATCH win-vdagent] Learn to build spice-vdagent MSI installer

2014-02-17 Thread Marc-André Lureau
--- Makefile.am | 23 +++- configure.ac | 30 spice-vdagent.wxs.in | 78 3 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 spice-vdagent.wxs.in diff --git a/Makefile.am b/Mak

[Spice-devel] How to start with Spice Development?

2014-02-17 Thread Alf G.
Hi, I am very interested to delve into spice and perhaps do some work on it. What is the best way to start? Can I use the documents on spice-space.org/documentation.html as base or are they not at all up to date? Is the spice-project written in pure C or also are there C++ parts? Thanks _

Re: [Spice-devel] [patch]spice-gtk: encoding problem when drag a file from client to guest

2014-02-17 Thread Marc-André Lureau
- Original Message - > On Mon, Feb 17, 2014 at 8:47 PM, Marc-André Lureau > wrote: > > Hi > > > > - Original Message - > >> hi, here's my environment: > >> client: win7(default encoding is GBK) > >> guest the same with client > >> spice-gtk-0.23d > >> > >> a file in guest with a

Re: [Spice-devel] [patch]spice-gtk: encoding problem when drag a file from client to guest

2014-02-17 Thread Cody Chan
On Mon, Feb 17, 2014 at 8:47 PM, Marc-André Lureau wrote: > Hi > > - Original Message - >> hi, here's my environment: >> client: win7(default encoding is GBK) >> guest the same with client >> spice-gtk-0.23d >> >> a file in guest with a name of Chinese >> the file name is wrong when drag i

Re: [Spice-devel] [patch]spice-gtk: encoding problem when drag a file from client to guest

2014-02-17 Thread Marc-André Lureau
Hi - Original Message - > hi, here's my environment: > client: win7(default encoding is GBK) > guest the same with client > spice-gtk-0.23d > > a file in guest with a name of Chinese > the file name is wrong when drag it to guest desktop > (I think Japanese and Korean have the same proble

[Spice-devel] [patch]spice-gtk: encoding problem when drag a file from client to guest

2014-02-17 Thread Cody Chan
hi, here's my environment: client: win7(default encoding is GBK) guest the same with client spice-gtk-0.23d a file in guest with a name of Chinese the file name is wrong when drag it to guest desktop (I think Japanese and Korean have the same problem) the following is my patch to "spice-gtk-0.23/

Re: [Spice-devel] [spice-gtk] build-sys: Don't build tests when not building static libs

2014-02-17 Thread Marc-André Lureau
ack - Original Message - > The tests rely on static linking in order to get access to symbols which > are not exported in spice-gtk shared libraries. When build of static > libraries is disabled with --disable-static, we should not attempt to build > the tests as this will result in link e

Re: [Spice-devel] spice: connection refused

2014-02-17 Thread Marian Krcmarik
- Original Message - > From: "Sean Darcy" > To: spice-devel@lists.freedesktop.org > Sent: Monday, February 17, 2014 12:25:36 AM > Subject: Re: [Spice-devel] spice: connection refused > > On 02/16/2014 05:11 PM, Marian Krcmarik wrote: > > > > > > - Original Message - > >> From: "