[Spice-devel] [PATCH spice-gtk v2 0/4] Public include cleanups

2015-09-24 Thread Jonathon Jongsma
This is a second approach suggested by Marc-Andre to fix up some of the issues with circular includes in the public headers. It will break the build of applications using spice-gtk, but is very easy to fix since we print out an explicit compiler error in that case. If accepted, I intend to push thi

[Spice-devel] [PATCH spice-gtk v2 4/4] Only include spice-client.h where necessary

2015-09-24 Thread Jonathon Jongsma
spice-client.h is a public "super"-header, which includes all of the other public headers. Including this header from other public headers can result in cyclical dependencies. For consistency, I've removed all includes of this header from spice-gtk files except where absolutely necessary. --- src

[Spice-devel] [PATCH spice-gtk v2 2/4] Gtk applications only include spice-client-gtk.h

2015-09-24 Thread Jonathon Jongsma
This header is the single include needed for all gtk-related functionality, similar to spice-client.h. Generate a compiler error if a different header is included. --- src/Makefile.am | 1 + src/spice-client-gtk.h | 32 src/spice-grabsequence.h | 4 +++

[Spice-devel] [PATCH spice-gtk v2 3/4] Don't wrap included headers in G_BEGIN|END_DECLS

2015-09-24 Thread Jonathon Jongsma
Only the local declarations should be declared extern "C", otherwise it can result in unexpected errors such as this (encountered while re-ordering some include statements for a different patch): CC channel-inputs.lo In file included from /usr/include/glib-2.0/glib/gmacros.h:38:0,

[Spice-devel] [PATCH spice-gtk v2 1/4] Glib applications only include spice-client.h

2015-09-24 Thread Jonathon Jongsma
Generate a compiler error if an application attempts to include a different header. --- doc/reference/Makefile.am | 2 +- src/Makefile.am | 1 + src/channel-cursor.c | 2 +- src/channel-cursor.h | 4 src/channel-display.c | 2 +- src/channel-display.h | 4 src

Re: [Spice-devel] [RFC PATCH] [linux-vdagent] Lock screen on disconnect

2015-09-24 Thread David Mansfield
On 09/24/2015 12:46 PM, Victor Toso wrote: Hey, On Wed, Sep 23, 2015 at 10:05:40AM -0400, David Mansfield wrote: Hi, The attached is a very simple patch, which is working but possibly not suitable for inclusion at this point, that locks the x11 session when the client disconnects. Locking i

Re: [Spice-devel] [PATCH spice-gtk v2 0/9] Improvements for gtk-doc

2015-09-24 Thread Jonathon Jongsma
ACK series, thanks! On Thu, 2015-09-24 at 18:33 +0200, Pavel Grunt wrote: > Hi all, > I noticed that we have a lot of not properly documented symbols in spice-gtk. > My intention was to improve this area before the spice-gtk release. So I am > sending patches. They are mostly about adding missing

Re: [Spice-devel] [RFC PATCH] [linux-vdagent] Lock screen on disconnect

2015-09-24 Thread Victor Toso
Hey, On Wed, Sep 23, 2015 at 10:05:40AM -0400, David Mansfield wrote: > Hi, > > The attached is a very simple patch, which is working but possibly not > suitable for inclusion at this point, that locks the x11 session when the > client disconnects. > > Locking is performed using "xdg-screensaver l

[Spice-devel] [PATCH spice-gtk v2 2/9] channel-main: Rename parameter to match docs

2015-09-24 Thread Pavel Grunt
--- v2: new patch - taken from PATCH 7/8 --- src/spice-widget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spice-widget.c b/src/spice-widget.c index 34bc128..fdaf6d6 100644 --- a/src/spice-widget.c +++ b/src/spice-widget.c @@ -2537,10 +2537,10 @@ static void channe

[Spice-devel] [PATCH spice-gtk v2 4/9] docs: Add Version Information section

2015-09-24 Thread Pavel Grunt
--- v2: no change --- doc/reference/spice-gtk-docs.xml | 1 + doc/reference/spice-gtk-sections.txt | 12 src/spice-version.h.in | 2 ++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/reference/spice-gtk-docs.xml b/doc/reference/spice-gtk-docs.x

[Spice-devel] [PATCH spice-gtk v2 5/9] docs: Move SPICE_TYPE_USB_DEVICE to standard subsection

2015-09-24 Thread Pavel Grunt
--- v2: no change --- doc/reference/spice-gtk-sections.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/reference/spice-gtk-sections.txt b/doc/reference/spice-gtk-sections.txt index d8b835e..fe24f9f 100644 --- a/doc/reference/spice-gtk-sections.txt +++ b/doc/reference/s

[Spice-devel] [PATCH spice-gtk v2 3/9] docs: Update for missing symbols

2015-09-24 Thread Pavel Grunt
--- v2: no change --- doc/reference/spice-gtk-sections.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/reference/spice-gtk-sections.txt b/doc/reference/spice-gtk-sections.txt index 2f3e09e..a12183a 100644 --- a/doc/reference/spice-gtk-sections.txt +++ b/doc/reference/spice

[Spice-devel] [PATCH spice-gtk v2 9/9] docs: Fix typos

2015-09-24 Thread Pavel Grunt
--- v2: - addresses more typos --- src/channel-inputs.c | 4 ++-- src/channel-main.c | 4 ++-- src/channel-port.c | 4 ++-- src/spice-grabsequence.c | 2 +- src/spice-session.c | 2 +- src/usb-device-manager.c | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --g

[Spice-devel] [PATCH spice-gtk v2 8/9] docs: Add missing symbol description strings

2015-09-24 Thread Pavel Grunt
--- v2: - "clipboard selection data" instead of "selection data" - parameter renaming is in the separate patch - "key click (press and release)" instead of "key click" - "redirect" instead of "redirected" --- src/channel-inputs.h | 8 src/channel-main.c | 2 ++ src/channel

[Spice-devel] [PATCH spice-gtk v2 7/9] docs: Description should be above 'Return'

2015-09-24 Thread Pavel Grunt
--- v2: no change --- src/channel-main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/channel-main.c b/src/channel-main.c index b1c19c0..85e01e4 100644 --- a/src/channel-main.c +++ b/src/channel-main.c @@ -724,10 +724,10 @@ static void spice_main_channel_class_i

[Spice-devel] [PATCH spice-gtk v2 0/9] Improvements for gtk-doc

2015-09-24 Thread Pavel Grunt
Hi all, I noticed that we have a lot of not properly documented symbols in spice-gtk. My intention was to improve this area before the spice-gtk release. So I am sending patches. They are mostly about adding missing descriptions of parameters, fields and symbols. I also added a new section - Versi

[Spice-devel] [PATCH spice-gtk v2 6/9] docs: Add missing parameter/field descriptions

2015-09-24 Thread Pavel Grunt
--- v2: no change --- src/channel-display.c| 6 +++--- src/channel-inputs.c | 16 src/channel-main.c | 26 ++ src/channel-playback.c | 5 + src/channel-record.c | 2 +- src/smartcard-manager.c | 3 +-- src/spice-channel.c |

[Spice-devel] [PATCH spice-gtk v2 1/9] channel-record: Use correct nick name for property

2015-09-24 Thread Pavel Grunt
--- v2: no change --- src/channel-record.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel-record.c b/src/channel-record.c index d07d84e..e581aed 100644 --- a/src/channel-record.c +++ b/src/channel-record.c @@ -200,8 +200,8 @@ static void spice_record_channel_c

[Spice-devel] [PATCH spice-gtk v2] Update NEWS for 0.30 release

2015-09-24 Thread Jonathon Jongsma
--- NEWS | 16 1 file changed, 16 insertions(+) diff --git a/NEWS b/NEWS index 1a6f7a3..86f2a8c 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,19 @@ +v0.30 += +- spice-protocol is no longer bundled with spice-gtk. Requires + spice-protocol >= 0.12.10 +- Handle single headed monitor

[Spice-devel] [PATCH spice-gtk] Move glib-compat.c to POTFILES.skip

2015-09-24 Thread Jonathon Jongsma
Since these messages are only used for terminal debug output, let's not waste time translating them. --- po/POTFILES.in | 1 - po/POTFILES.skip | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/po/POTFILES.in b/po/POTFILES.in index ef1a2ee..ad12609 100644 --- a/po/POTFILES.in +

[Spice-devel] ANNOUNCE: spice-protocol release 0.12.10

2015-09-24 Thread Jonathon Jongsma
Hey all, I've just released version 0.12.10 of spice-protocol. The major change is the inclusion of the code generation scripts that previously were in the spice-common repository. More details at the end of this email. It can be downloaded from the following location: http://www.spice-space.org/

Re: [Spice-devel] [RFC PATCH] [linux-vdagent] Lock screen on disconnect

2015-09-24 Thread David Mansfield
On 09/23/2015 10:56 AM, Michal Suchanek wrote: Hello, On Wed, Sep 23, 2015 at 10:05:40AM -0400, David Mansfield wrote: Hi, The attached is a very simple patch, which is working but possibly not suitable for inclusion at this point, that locks the x11 session when the client disconnects. Loc

Re: [Spice-devel] [PATCH spice-gtk 0/8] Improvements for gtk-doc

2015-09-24 Thread Pavel Grunt
On Thu, 2015-09-24 at 09:47 -0500, Jonathon Jongsma wrote: > Nice. ACK with a few minor changes on patch 7 and 8. > Thanks, I will send a v2 Pavel > On Thu, 2015-09-24 at 15:10 +0200, Pavel Grunt wrote: > > Hi all, > > I noticed that we have a lot of not properly documented symbols in spice- >

Re: [Spice-devel] [PATCH spice-gtk 0/8] Improvements for gtk-doc

2015-09-24 Thread Jonathon Jongsma
Nice. ACK with a few minor changes on patch 7 and 8. On Thu, 2015-09-24 at 15:10 +0200, Pavel Grunt wrote: > Hi all, > I noticed that we have a lot of not properly documented symbols in spice-gtk. > My intention was to improve this area before the spice-gtk release. So I am > sending patches. They

Re: [Spice-devel] [PATCH spice-gtk 8/8] docs: Fix typos

2015-09-24 Thread Jonathon Jongsma
On Thu, 2015-09-24 at 15:10 +0200, Pavel Grunt wrote: > --- > src/channel-inputs.c | 2 +- > src/channel-main.c | 4 ++-- > src/channel-port.c | 4 ++-- > src/spice-session.c | 2 +- > src/usb-device-manager.c | 2 +- > 5 files changed, 7 insertions(+), 7 deletions(-) > > dif

Re: [Spice-devel] [PATCH spice-gtk 7/8] docs: Add missing symbol description strings

2015-09-24 Thread Jonathon Jongsma
A few suggestions below On Thu, 2015-09-24 at 15:10 +0200, Pavel Grunt wrote: > --- > src/channel-inputs.h | 8 > src/channel-main.c | 2 ++ > src/channel-playback.c | 2 ++ > src/smartcard-manager.h | 21 > src/spice-channel.c | 8 > s

Re: [Spice-devel] [PATCH spice-gtk] Add glib-compat.c to POTFILES.in

2015-09-24 Thread Jonathon Jongsma
On Thu, 2015-09-24 at 16:21 +0200, Christophe Fergeau wrote: > On Thu, Sep 24, 2015 at 09:09:36AM -0500, Jonathon Jongsma wrote: > > On Thu, 2015-09-24 at 09:28 +0200, Christophe Fergeau wrote: > > > On Wed, Sep 23, 2015 at 10:35:26AM -0500, Jonathon Jongsma wrote: > > > > Some translatable strings

Re: [Spice-devel] [PATCH spice-gtk] Add glib-compat.c to POTFILES.in

2015-09-24 Thread Christophe Fergeau
On Thu, Sep 24, 2015 at 09:09:36AM -0500, Jonathon Jongsma wrote: > On Thu, 2015-09-24 at 09:28 +0200, Christophe Fergeau wrote: > > On Wed, Sep 23, 2015 at 10:35:26AM -0500, Jonathon Jongsma wrote: > > > Some translatable strings were added in commit 8c37a340. > > > --- > > > po/POTFILES.in | 1 +

Re: [Spice-devel] [PATCH spice-gtk] Add glib-compat.c to POTFILES.in

2015-09-24 Thread Jonathon Jongsma
On Thu, 2015-09-24 at 09:28 +0200, Christophe Fergeau wrote: > On Wed, Sep 23, 2015 at 10:35:26AM -0500, Jonathon Jongsma wrote: > > Some translatable strings were added in commit 8c37a340. > > --- > > po/POTFILES.in | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/po/POTFILES.in b/

[Spice-devel] [PATCH v2 2/2] drm/qxl: avoid dependency lock

2015-09-24 Thread Frediano Ziglio
qxl_bo_unref calls drm_gem_object_unreference_unlocked which locks dev->struct_mutex. However this lock could be already locked if the call came from qxl_gem_object_free. As we don't need to call qxl_bo_ref/qxl_bo_unref cause qxl_release_list_add will hold a reference by itself avoid to call them a

[Spice-devel] [PATCH v2 0/2] Dependency locks fixes for QXL driver

2015-09-24 Thread Frediano Ziglio
These two patches fixes two lock dependencies issues. Changes from v1: Sent a wrong patch. Frediano Ziglio (2): drm/qxl: avoid buffer reservation in qxl_crtc_page_flip drm/qxl: avoid dependency lock drivers/gpu/drm/qxl/qxl_display.c | 10 +- drivers/gpu/drm/qxl/qxl_release.c | 4 +-

[Spice-devel] [PATCH v2 1/2] drm/qxl: avoid buffer reservation in qxl_crtc_page_flip

2015-09-24 Thread Frediano Ziglio
This avoid a dependency lock error. According to https://lwn.net/Articles/548909/ users of WW mutex API should avoid using different context. When a buffer is reserved with qxl_bo_reserve a ww_mutex_lock without context is used. However during qxl_draw_dirty_fb different locks with specific context

[Spice-devel] [PATCH 2/2] drm/qxl: avoid dependency lock

2015-09-24 Thread Frediano Ziglio
qxl_bo_unref calls drm_gem_object_unreference_unlocked which locks dev->struct_mutex. However this lock could be already locked if the call came from qxl_gem_object_free. As we don't need to call qxl_bo_ref/qxl_bo_unref cause qxl_release_list_add will hold a reference by itself avoid to call them a

[Spice-devel] [PATCH] drm/qxl: use to_qxl_bo macro

2015-09-24 Thread Frediano Ziglio
Instead of using container_of directly use to_qxl_bo macro. Signed-off-by: Frediano Ziglio --- drivers/gpu/drm/qxl/qxl_object.c | 2 +- drivers/gpu/drm/qxl/qxl_ttm.c| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_object.c b/drivers/gpu/drm/qxl

[Spice-devel] [PATCH 1/2] drm/qxl: use to_qxl_bo macro

2015-09-24 Thread Frediano Ziglio
Instead of using container_of directly use to_qxl_bo macro. Signed-off-by: Frediano Ziglio --- drivers/gpu/drm/qxl/qxl_object.c | 2 +- drivers/gpu/drm/qxl/qxl_ttm.c| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_object.c b/drivers/gpu/drm/qxl

[Spice-devel] [PATCH 0/2] Dependency locks fixes for QXL driver

2015-09-24 Thread Frediano Ziglio
These two patches fixes two lock dependencies issues. Frediano Ziglio (2): drm/qxl: use to_qxl_bo macro drm/qxl: avoid dependency lock drivers/gpu/drm/qxl/qxl_object.c | 2 +- drivers/gpu/drm/qxl/qxl_release.c | 4 +--- drivers/gpu/drm/qxl/qxl_ttm.c | 4 ++-- 3 files changed, 4 insertio

[Spice-devel] [PATCH spice-gtk 8/8] docs: Fix typos

2015-09-24 Thread Pavel Grunt
--- src/channel-inputs.c | 2 +- src/channel-main.c | 4 ++-- src/channel-port.c | 4 ++-- src/spice-session.c | 2 +- src/usb-device-manager.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/channel-inputs.c b/src/channel-inputs.c index 1a6457d..edd

[Spice-devel] [PATCH spice-gtk 6/8] docs: Description should be above 'Return'

2015-09-24 Thread Pavel Grunt
--- src/channel-main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/channel-main.c b/src/channel-main.c index b1c19c0..85e01e4 100644 --- a/src/channel-main.c +++ b/src/channel-main.c @@ -724,10 +724,10 @@ static void spice_main_channel_class_init(SpiceMainChann

[Spice-devel] [PATCH spice-gtk 7/8] docs: Add missing symbol description strings

2015-09-24 Thread Pavel Grunt
--- src/channel-inputs.h | 8 src/channel-main.c | 2 ++ src/channel-playback.c | 2 ++ src/smartcard-manager.h | 21 src/spice-channel.c | 8 src/spice-channel.h | 13 src/spice-client.c | 7 +++ src/spice-c

[Spice-devel] [PATCH spice-gtk 3/8] docs: Add Version Information section

2015-09-24 Thread Pavel Grunt
--- doc/reference/spice-gtk-docs.xml | 1 + doc/reference/spice-gtk-sections.txt | 12 src/spice-version.h.in | 2 ++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/reference/spice-gtk-docs.xml b/doc/reference/spice-gtk-docs.xml index 5faea74..

[Spice-devel] [PATCH spice-gtk 0/8] Improvements for gtk-doc

2015-09-24 Thread Pavel Grunt
Hi all, I noticed that we have a lot of not properly documented symbols in spice-gtk. My intention was to improve this area before the spice-gtk release. So I am sending patches. They are mostly about adding missing descriptions of parameters, fields and symbols. I also added a new section - Versi

[Spice-devel] [PATCH spice-gtk 1/8] channel-record: Use correct nick name for property

2015-09-24 Thread Pavel Grunt
--- src/channel-record.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel-record.c b/src/channel-record.c index d07d84e..e581aed 100644 --- a/src/channel-record.c +++ b/src/channel-record.c @@ -200,8 +200,8 @@ static void spice_record_channel_class_init(SpiceRec

[Spice-devel] [PATCH spice-gtk 5/8] docs: Add missing parameter/field descriptions

2015-09-24 Thread Pavel Grunt
--- src/channel-display.c| 6 +++--- src/channel-inputs.c | 16 src/channel-main.c | 26 ++ src/channel-playback.c | 5 + src/channel-record.c | 2 +- src/smartcard-manager.c | 3 +-- src/spice-channel.c | 20 ++

[Spice-devel] [PATCH spice-gtk 2/8] docs: Update for missing symbols

2015-09-24 Thread Pavel Grunt
--- doc/reference/spice-gtk-sections.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/doc/reference/spice-gtk-sections.txt b/doc/reference/spice-gtk-sections.txt index 2f3e09e..a12183a 100644 --- a/doc/reference/spice-gtk-sections.txt +++ b/doc/reference/spice-gtk-sections.txt

[Spice-devel] [PATCH spice-gtk 4/8] docs: Move SPICE_TYPE_USB_DEVICE to standard subsection

2015-09-24 Thread Pavel Grunt
--- doc/reference/spice-gtk-sections.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/reference/spice-gtk-sections.txt b/doc/reference/spice-gtk-sections.txt index d8b835e..fe24f9f 100644 --- a/doc/reference/spice-gtk-sections.txt +++ b/doc/reference/spice-gtk-sections.

Re: [Spice-devel] client memory issues with usbredir

2015-09-24 Thread Dmitry Fleytman
Hi Victor, > On Sep 23, 2015, at 17:27 PM, Victor Toso wrote: > > Hey, > > I was taking a look at rhbz#1264156 [1] which leads to a great amount > of memory being used in the client when sharing webcam with usbredir > when the connection is slow enough (not necessary slow but slower then > the

Re: [Spice-devel] [PATCH spice-gtk] Add glib-compat.c to POTFILES.in

2015-09-24 Thread Christophe Fergeau
On Wed, Sep 23, 2015 at 10:35:26AM -0500, Jonathon Jongsma wrote: > Some translatable strings were added in commit 8c37a340. > --- > po/POTFILES.in | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/po/POTFILES.in b/po/POTFILES.in > index ad12609..ef1a2ee 100644 > --- a/po/POTFILES.in > +++

Re: [Spice-devel] [PATCH spice-gtk] Update NEWS for 0.30 release

2015-09-24 Thread Christophe Fergeau
On Wed, Sep 23, 2015 at 04:37:03PM -0500, Jonathon Jongsma wrote: > --- > > I'd like to get a new release of spice-gtk out soon. I don't plan to include > the header changes that I've recently posted to the mailing list. Those would > go into the next release. > > NEWS | 13 + > 1 fi