[Spice-devel] [PATCH v2 08/15] spicevmc: Introduce RedCharDeviceSpiceVmc GObject

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau Acked-by: Jonathon Jongsma --- server/spicevmc.c | 80 +-- 1 file changed, 66 insertions(+), 14 deletions(-) diff --git a/server/spicevmc.c b/server/spicevmc.c index d1e8222..241d87d 100644 --- a/server/spicevmc.c +++

[Spice-devel] [PATCH v2 05/15] Rename RedCharDevice functions

2016-03-31 Thread Jonathon Jongsma
make the function names match the type names. So spice_char_device_state_* becomes red_char_device_* and spice_char_device_* also becomes red_char_device_*. --- server/char-device.c | 320 +-- server/char-device.h | 108 - server/reds

[Spice-devel] [PATCH v2 15/15] Move SpiceCharDeviceCallbacks into RedCharDeviceClass

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau This structure holding virtual function pointers was kept until now as a RedCharDevice member in order to make the GObject conversion easier. Now that all RedCharDevice children are converted to GObject, it can be moved into RedCharDeviceClass. --- server/char-device.c |

[Spice-devel] [PATCH v2 06/15] char-device: Avoid use-after-free

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau Reset pointer after freeing the structure pointing to it. Acked-by: Jonathon Jongsma --- server/char-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/char-device.c b/server/char-device.c index 3056f51..2957a1b 100644 --- a/server/char-device.c +++ b/s

[Spice-devel] [PATCH v2 07/15] char-device: Make SpiceCharDeviceState a GObject

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau Reviewed-by: Jonathon Jongsma --- server/char-device.c | 353 ++- server/char-device.h | 43 ++- 2 files changed, 304 insertions(+), 92 deletions(-) diff --git a/server/char-device.c b/server/char-device.c index 2957

[Spice-devel] [PATCH v2 13/15] reds: Make VDIPortState a GObject

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau This inherits from RedCharDevice. Signed-off-by: Christophe Fergeau --- server/reds-private.h | 2 +- server/reds.c | 246 -- 2 files changed, 159 insertions(+), 89 deletions(-) diff --git a/server/reds-private

[Spice-devel] [PATCH v2 11/15] reds: Make VDIPortState private to reds.c

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau VDIPortState and VDIReadBuf don't really need to be defined in a header file as they are only used in reds.c --- server/reds-private.h | 56 + server/reds.c | 169 +- 2 files changed, 114 insertions

[Spice-devel] [PATCH v2 14/15] reds: Remove spice_char_device_state_create()

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau Nothing is using it anymore now that CharDevice classes are gobjectified. --- server/char-device.c | 42 -- server/char-device.h | 9 + 2 files changed, 1 insertion(+), 50 deletions(-) diff --git a/server/char-device.c b/

[Spice-devel] [PATCH v2 09/15] spicevmc: Move SpiceVmcState::pipe_item to RedCharDeviceSpiceVmc

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau This pipe item belongs to the char device, not to the spicevmc channel. --- server/spicevmc.c | 35 --- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/server/spicevmc.c b/server/spicevmc.c index 241d87d..9969cf3 100644 ---

[Spice-devel] [PATCH v2 01/15] Rename SpiceCharDeviceMsgToClient to RedCharDeviceMsgToClient

2016-03-31 Thread Jonathon Jongsma
Internal types should use Red namespace for consistency --- server/char-device.c | 36 ++-- server/char-device.h | 12 ++-- server/reds.c| 12 ++-- server/smartcard.c | 12 ++-- server/spicevmc.c| 16 5 files ch

[Spice-devel] [PATCH v2 04/15] Rename SpiceCharDeviceClientState to RedCharDeviceClient

2016-03-31 Thread Jonathon Jongsma
Make it consistent with the renamed RedCharDevice and the convention of using 'Red' namespaces for internal types --- server/char-device.c | 108 +-- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/server/char-device.c b/server/char-d

[Spice-devel] [PATCH v2 02/15] Rename SpiceCharDeviceWriteBuffer to RedCharDeviceWriteBuffer

2016-03-31 Thread Jonathon Jongsma
Internal types should use 'Red' namespace for consistency --- server/char-device.c | 72 +-- server/char-device.h | 16 ++-- server/reds-private.h | 2 +- server/reds.c | 4 +-- server/smartcard.c| 12 - server/spicevm

[Spice-devel] [PATCH v2 03/15] Rename SpiceCharDeviceState to RedCharDevice

2016-03-31 Thread Jonathon Jongsma
This is more consistent with internal type naming convention, and it paves the way for a new char device GObject heirarchy --- server/char-device.c | 107 +- server/char-device.h | 58 ++- server/reds-private.h | 2 +- se

[Spice-devel] [PATCH v2 00/15] Backported some patches from refactory branches (30th Mar)

2016-03-31 Thread Jonathon Jongsma
Here's an updated version of the series Frediano posted yesterday, but includes some introductory commits that rename some types for improved consistency within the codebase. Christophe Fergeau (10): char-device: Avoid use-after-free char-device: Make SpiceCharDeviceState a GObject spicevmc:

[Spice-devel] [PATCH v2 10/15] smartcard: Turn SmartcardState into a GObject

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau This inherits from RedCharDevice. Once all char device states are converted, we can turn the associated vfuncs into RedCharDeviceClass vfuncs. Signed-off-by: Christophe Fergeau --- server/smartcard.c | 124 +++-- server/s

[Spice-devel] [PATCH v2 12/15] reds: Prepare to make VDIPortState a GObject

2016-03-31 Thread Jonathon Jongsma
From: Christophe Fergeau This inherits from RedCharDevice. Signed-off-by: Christophe Fergeau Signed-off-by: Frediano Ziglio --- server/reds.c | 395 +- 1 file changed, 200 insertions(+), 195 deletions(-) diff --git a/server/reds.c b/ser

Re: [Spice-devel] [PATCH 05/10] smartcard: Turn SmartcardState into a GObject

2016-03-31 Thread Jonathon Jongsma
On Wed, 2016-03-30 at 18:21 +0100, Frediano Ziglio wrote: > From: Christophe Fergeau > > This inherits from RedCharDevice. Once all char device states are > converted, we can turn the associated vfuncs into RedCharDeviceClass > vfuncs. > > Signed-off-by: Christophe Fergeau > --- > server/smart

Re: [Spice-devel] [PATCH] Add the ability to specify Spice video codecs.

2016-03-31 Thread Victor Toso
Hi, On Thu, Mar 31, 2016 at 12:37:31PM +0200, Fabio Fantoni wrote: > Il 31/03/2016 12:21, Victor Toso ha scritto: > > From: Jeremy White > > > > This patch requires the patch series provided by Francois Gouget > > which add gstreamer support to Spice. > > > > It also should finally include the fi

Re: [Spice-devel] [PATCH 05/10] smartcard: Turn SmartcardState into a GObject

2016-03-31 Thread Jonathon Jongsma
On Thu, 2016-03-31 at 05:01 -0400, Frediano Ziglio wrote: > > Here's a patch that I think could be squashed into this one: > > > > diff --git a/server/smartcard.c b/server/smartcard.c > > index f592a9f..3d40f59 100644 > > --- a/server/smartcard.c > > +++ b/server/smartcard.c > > @@ -67,7 +67,6 @@

Re: [Spice-devel] [PATCH] Use RedCharDevice instead of SpiceCharDeviceState

2016-03-31 Thread Jonathon Jongsma
On Thu, 2016-03-31 at 03:12 -0400, Frediano Ziglio wrote: > > > > Hi Jonathon, > > > > On Wed, Mar 30, 2016 at 05:17:47PM -0500, Jonathon Jongsma wrote: > > > These two type names are typedefs of eachother, but it's confusing to > > > have two different typenames for the same type throughout the

Re: [Spice-devel] [spice-gtk 3/3] Send key release event for some keys in JP keyboard.

2016-03-31 Thread Frediano Ziglio
> > From: Takao Fujiwara > > Some of the keys in JP keyboard do no send WM_KEYUP and it causes > unlimited key events on Linux desktop. This sends the virtual > key release events to avoid the desktop hangup. > --- > src/spice-widget.c | 9 + > 1 file changed, 9 insertions(+) > > diff

Re: [Spice-devel] Handle JP keyboard with spice-gtk from Windows client

2016-03-31 Thread Christophe Fergeau
On Thu, Mar 31, 2016 at 08:36:34PM +0900, Takao Fujiwara wrote: > I noticed Linux GNOME desktop hangs up when Windows virt-viewer connects to > the desktop and type some specific keys on JP keyboard. > > Server: GNOME desktop and IBus in RHEL 7 > Client virt-viewer in Windows 7 with JP 106 keyboa

Re: [Spice-devel] [spice-gtk 2/3] Send key release event for some keys in JP keyboard.

2016-03-31 Thread Frediano Ziglio
> > From: Takao Fujiwara > > Some of the keys in JP keyboard do no send WM_KEYUP and it causes > unlimited key events on Linux desktop. This sends the virtual > key release events to avoid the desktop hangup. > --- > src/spice-widget.c | 18 ++ > 1 file changed, 18 insertions(+)

Re: [Spice-devel] [spice-gtk 1/3] Send Zenkaku_Hankaku key in JP keyboard.

2016-03-31 Thread Frediano Ziglio
> > From: Takao Fujiwara > > MapVirtualKey() returns the scancode of the released Zenkaku_Hankaku key > but does not pressed one and modifiered one. Any cases should be sent > to use input method engines. > --- > src/spice-widget-priv.h | 1 + > src/spice-widget.c | 37 +++

Re: [Spice-devel] current git head spice-common fails to build on glib2 < 2.38

2016-03-31 Thread Eduardo Lima (Etrunko)
On 03/26/2016 10:53 AM, Brad Campbell wrote: > Checking the git logs, in Oct the required glib version was bumped to > 2.22. Since that point logging has been added using g_test_* functions > which were apparently added in 2.38. Trying to build on 2.33 (which I > was) therefore passes the configure

Re: [Spice-devel] "undefined reference" errors while running make

2016-03-31 Thread Eduardo Lima (Etrunko)
On 03/30/2016 09:15 AM, Eduardo Lima (Etrunko) wrote: > On 03/29/2016 12:08 PM, Mahmood Naderan wrote: >> O that is good :thumsup: >> I applied the patch and the compilation passed that file. However, I get >> a new undefined reference in another file >> >> >> root@cluster:spice-src# patch < patch

Re: [Spice-devel] [spice-common] tests: Fix glib version check

2016-03-31 Thread Pavel Grunt
Ack, Pavel On Thu, 2016-03-31 at 13:35 +0200, Christophe Fergeau wrote: > The glib version checks were using #ifdef GLIB_CHECK_VERSION() rather > than  #if GLIB_CHECK_VERSION() > --- >  tests/test-logging.c | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tests/test-lo

Re: [Spice-devel] [PATCH] Send key release event for some keys in JP keyboard.

2016-03-31 Thread Takao Fujiwara
Sorry, the subject and description is not correct. I will send this patch again with the correct subject. On 03/31/16 19:43, Takao Fujiwara-san wrote: > Some of the keys in JP keyboard do no send WM_KEYUP and it causes > unlimited key events on Linux desktop. This sends the virtual > key release e

Re: [Spice-devel] Handle JP keyboard with spice-gtk from Windows client

2016-03-31 Thread Fabiano Fidêncio
On Thu, Mar 31, 2016 at 1:43 PM, Frediano Ziglio wrote: >> >> I noticed Linux GNOME desktop hangs up when Windows virt-viewer connects to >> the desktop and type some specific keys on JP keyboard. >> >> Server: GNOME desktop and IBus in RHEL 7 >> Client virt-viewer in Windows 7 with JP 106 keyboar

[Spice-devel] [spice-gtk 2/3] Send key release event for some keys in JP keyboard.

2016-03-31 Thread Fabiano Fidêncio
From: Takao Fujiwara Some of the keys in JP keyboard do no send WM_KEYUP and it causes unlimited key events on Linux desktop. This sends the virtual key release events to avoid the desktop hangup. --- src/spice-widget.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/

[Spice-devel] [spice-gtk 3/3] Send key release event for some keys in JP keyboard.

2016-03-31 Thread Fabiano Fidêncio
From: Takao Fujiwara Some of the keys in JP keyboard do no send WM_KEYUP and it causes unlimited key events on Linux desktop. This sends the virtual key release events to avoid the desktop hangup. --- src/spice-widget.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/spice-widge

[Spice-devel] [spice-gtk 1/3] Send Zenkaku_Hankaku key in JP keyboard.

2016-03-31 Thread Fabiano Fidêncio
From: Takao Fujiwara MapVirtualKey() returns the scancode of the released Zenkaku_Hankaku key but does not pressed one and modifiered one. Any cases should be sent to use input method engines. --- src/spice-widget-priv.h | 1 + src/spice-widget.c | 37 +++--

[Spice-devel] [spice-gtk 0/3] Handle JP keyboard with spice-gtk from Windows client

2016-03-31 Thread Fabiano Fidêncio
In order to speed up the process I took the freedom to apply Takao's patches locally, regenerate the patches (and cover letter) and submit them upstream using git send-email. Please, for more info, take a look on: https://lists.freedesktop.org/archives/spice-devel/2016-March/027878.html Takao Fuj

Re: [Spice-devel] Handle JP keyboard with spice-gtk from Windows client

2016-03-31 Thread Frediano Ziglio
> > I noticed Linux GNOME desktop hangs up when Windows virt-viewer connects to > the desktop and type some specific keys on JP keyboard. > > Server: GNOME desktop and IBus in RHEL 7 > Client virt-viewer in Windows 7 with JP 106 keyboard > > When I see the key events with 'xev' command in GNOME

[Spice-devel] Handle JP keyboard with spice-gtk from Windows client

2016-03-31 Thread Takao Fujiwara
I noticed Linux GNOME desktop hangs up when Windows virt-viewer connects to the desktop and type some specific keys on JP keyboard. Server: GNOME desktop and IBus in RHEL 7 Client virt-viewer in Windows 7 with JP 106 keyboard When I see the key events with 'xev' command in GNOME desktop, I obser

[Spice-devel] [spice-common] tests: Fix glib version check

2016-03-31 Thread Christophe Fergeau
The glib version checks were using #ifdef GLIB_CHECK_VERSION() rather than #if GLIB_CHECK_VERSION() --- tests/test-logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-logging.c b/tests/test-logging.c index c02905f..cb929f9 100644 --- a/tests/test-logging.c

Re: [Spice-devel] [PATCH 05/10] smartcard: Turn SmartcardState into a GObject

2016-03-31 Thread Frediano Ziglio
> > > Here's a patch that I think could be squashed into this one: > > > > diff --git a/server/smartcard.c b/server/smartcard.c > > index f592a9f..3d40f59 100644 > > --- a/server/smartcard.c > > +++ b/server/smartcard.c > > @@ -67,7 +67,6 @@ G_DEFINE_TYPE(RedCharDeviceSmartcard, > > red_char_devi

Re: [Spice-devel] [PATCH] Add the ability to specify Spice video codecs.

2016-03-31 Thread Fabio Fantoni
Il 31/03/2016 12:21, Victor Toso ha scritto: > From: Jeremy White > > This patch requires the patch series provided by Francois Gouget > which add gstreamer support to Spice. > > It also should finally include the fix that Fabio keeps pointing out. If you mean me (I not remember other Fabio in th

[Spice-devel] [PATCH] Add the ability to specify Spice video codecs.

2016-03-31 Thread Victor Toso
From: Jeremy White This patch requires the patch series provided by Francois Gouget which add gstreamer support to Spice. It also should finally include the fix that Fabio keeps pointing out. Signed-off-by: Jeremy White --- qemu-options.hx | 8 ui/spice-core.c | 17 +

[Spice-devel] (no subject)

2016-03-31 Thread Victor Toso
Sending the rebased version of this patch... changing the server version to the unstable as well ___ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel

Re: [Spice-devel] [PATCH 03/10] spicevmc: Introduce RedCharDeviceSpiceVmc GObject

2016-03-31 Thread Christophe Fergeau
On Thu, Mar 31, 2016 at 06:02:39AM -0400, Frediano Ziglio wrote: > libvirt IMHO is not enforcing this. I would be surprised if libvirt based > its naming on the internal naming conventions of spice-server, it's just > using public names so it has to be SpiceVmc. > Yes it's using a public name, wh

Re: [Spice-devel] [PATCH 03/10] spicevmc: Introduce RedCharDeviceSpiceVmc GObject

2016-03-31 Thread Frediano Ziglio
> On Thu, Mar 31, 2016 at 04:23:47AM -0400, Frediano Ziglio wrote: > > > > > > On Wed, 2016-03-30 at 18:21 +0100, Frediano Ziglio wrote: > > > > From: Christophe Fergeau > > > > > > > > --- > > > > server/spicevmc.c | 80 > > > > +- > > > > -

Re: [Spice-devel] [[PATCH] [spice-common] 2/2] Add check for openssl

2016-03-31 Thread Christophe Fergeau
On Tue, Mar 29, 2016 at 10:24:53AM +0200, Christophe Fergeau wrote: > On Mon, Mar 28, 2016 at 06:00:28PM -0300, Eduardo Lima (Etrunko) wrote: > > From: "Eduardo Lima (Etrunko)" > > > > It is required to compile ssl-verify.[ch]. > > Makes sense. Any idea why it could be built without issues so fa

Re: [Spice-devel] [PATCH v2 spice-common] Fix build in systems with Glib version older than 2.38

2016-03-31 Thread Christophe Fergeau
Acked-by: Christophe Fergeau I'll push this in a minute. On Wed, Mar 30, 2016 at 03:39:06PM -0300, Eduardo Lima (Etrunko) wrote: > Tests now include functions only available in glib 2.38. To avoid > setting the dependency bar too high, we simply put them between #ifdef > guards. > > Signed-off-

Re: [Spice-devel] [PATCH] Use RedCharDevice instead of SpiceCharDeviceState

2016-03-31 Thread Christophe Fergeau
On Thu, Mar 31, 2016 at 03:12:44AM -0400, Frediano Ziglio wrote: > > > > Hi Jonathon, > > > > On Wed, Mar 30, 2016 at 05:17:47PM -0500, Jonathon Jongsma wrote: > > > These two type names are typedefs of eachother, but it's confusing to > > > have two different typenames for the same type througho

Re: [Spice-devel] [PATCH 03/10] spicevmc: Introduce RedCharDeviceSpiceVmc GObject

2016-03-31 Thread Christophe Fergeau
On Thu, Mar 31, 2016 at 04:23:47AM -0400, Frediano Ziglio wrote: > > > > On Wed, 2016-03-30 at 18:21 +0100, Frediano Ziglio wrote: > > > From: Christophe Fergeau > > > > > > --- > > > server/spicevmc.c | 80 > > > +- > > > - > > > 1 file chan

Re: [Spice-devel] [spice-server 1/3] Remove duplicate typedef from headers

2016-03-31 Thread Frediano Ziglio
> Hi, > > I agree that there should be the only one typedef. But I don't > understand why not to include the needed header directly. We should try > to "untagle" these header dependencies. > > Pavel > Recently I read an article (I think this http://developers.redhat.com/blog/2016/03/03/curing

Re: [Spice-devel] [PATCH 05/10] smartcard: Turn SmartcardState into a GObject

2016-03-31 Thread Frediano Ziglio
> Here's a patch that I think could be squashed into this one: > > diff --git a/server/smartcard.c b/server/smartcard.c > index f592a9f..3d40f59 100644 > --- a/server/smartcard.c > +++ b/server/smartcard.c > @@ -67,7 +67,6 @@ G_DEFINE_TYPE(RedCharDeviceSmartcard, > red_char_device_smartcard, RED_

Re: [Spice-devel] [PATCH 03/10] spicevmc: Introduce RedCharDeviceSpiceVmc GObject

2016-03-31 Thread Frediano Ziglio
> > On Wed, 2016-03-30 at 18:21 +0100, Frediano Ziglio wrote: > > From: Christophe Fergeau > > > > --- > > server/spicevmc.c | 80 > > +- > > - > > 1 file changed, 66 insertions(+), 14 deletions(-) > > > > diff --git a/server/spicevmc.c b/se

Re: [Spice-devel] [PATCH] Use RedCharDevice instead of SpiceCharDeviceState

2016-03-31 Thread Victor Toso
Hi, On Thu, Mar 31, 2016 at 03:12:44AM -0400, Frediano Ziglio wrote: > > > > Hi Jonathon, > > > > On Wed, Mar 30, 2016 at 05:17:47PM -0500, Jonathon Jongsma wrote: > > > These two type names are typedefs of eachother, but it's confusing to > > > have two different typenames for the same type thro

Re: [Spice-devel] [PATCH] Use RedCharDevice instead of SpiceCharDeviceState

2016-03-31 Thread Frediano Ziglio
> > These two type names are typedefs of eachother, but it's confusing to > have two different typenames for the same type throughout the code. > Convert everythign to use RedCharDevice. > --- > > This patch should apply to the end of this patch series. Comments? > Patch is good but should appl

[Spice-devel] [PATCH v2] Remove duplicate typedef from headers

2016-03-31 Thread Frediano Ziglio
This is causing compile errors with older gcc versions. red-qxl.h includes spice-qxl.h through red-channel.h and then spice.h, so it will get the QXLState typedef this way. Signed-off-by: Christophe Fergeau Signed-off-by: Frediano Ziglio --- server/main-dispatcher.h | 2 +- server/red-qxl.h

Re: [Spice-devel] [PATCH] Use RedCharDevice instead of SpiceCharDeviceState

2016-03-31 Thread Frediano Ziglio
> > Hi Jonathon, > > On Wed, Mar 30, 2016 at 05:17:47PM -0500, Jonathon Jongsma wrote: > > These two type names are typedefs of eachother, but it's confusing to > > have two different typenames for the same type throughout the code. > > Convert everythign to use RedCharDevice. > > I agree with y