Re: [Spice-devel] [spice-common v2 1/6] quic: Use DEFevol constant rather than evol variable

2017-08-01 Thread Frediano Ziglio
> > We never change 'evol' value, and this is currently causing issues with > gcc 7.1.1: quic.c is checking at compile-time that 'evol' is 1, 3 or 5. > This is a constant, so a static check should be good, but the compiler (gcc > 7.1.1) is unable to know 'evol' value at compile-time. Since the rem

Re: [Spice-devel] Proposal: review branches (was Re: [vdagent-win PATCH v6 2/5] Initial rewrite of image conversion code)

2017-08-01 Thread Christophe Fergeau
On Tue, Aug 01, 2017 at 09:24:42AM -0400, Frediano Ziglio wrote: > > > > On Tue, Aug 01, 2017 at 07:51:37AM -0400, Frediano Ziglio wrote: > > > About the "consistently use Reviewed-by" this is already been proved > > > to be not possible in our team. We use patchwork but we can't say we > > > use

[Spice-devel] [spice-common v2 3/6] quic: Use DEFwmimax constant rather than wmimax variable

2017-08-01 Thread Christophe Fergeau
We never change its value, so we basically have 2 constants for the same thing, DEFwmimax and wmimax. This commit removes the latter. Signed-off-by: Christophe Fergeau --- common/quic.c | 3 --- common/quic_rgb_tmpl.c | 24 common/quic_tmpl.c | 24 +

[Spice-devel] [spice-common v2 6/6] quic: Use i == 0 rather than !i

2017-08-01 Thread Christophe Fergeau
This helps to make quic_rgb_tmpl.c and quic_tmpl.c more consistent. Signed-off-by: Christophe Fergeau --- common/quic_rgb_tmpl.c | 8 common/quic_tmpl.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/quic_rgb_tmpl.c b/common/quic_rgb_tmpl.c index 15d14

[Spice-devel] [spice-common v2 2/6] quic: Use DEFwminext constant rather than wminext variable

2017-08-01 Thread Christophe Fergeau
We never change its value, so we basically have 2 constants for the same thing, DEFwminext and wminext. This commit removes the latter Signed-off-by: Christophe Fergeau --- common/quic.c | 7 ++- common/quic_rgb_tmpl.c | 16 common/quic_tmpl.c | 16

[Spice-devel] [spice-common v2 1/6] quic: Use DEFevol constant rather than evol variable

2017-08-01 Thread Christophe Fergeau
We never change 'evol' value, and this is currently causing issues with gcc 7.1.1: quic.c is checking at compile-time that 'evol' is 1, 3 or 5. This is a constant, so a static check should be good, but the compiler (gcc 7.1.1) is unable to know 'evol' value at compile-time. Since the removal of spi

[Spice-devel] [spice-common v2 5/6] quic: Fix "corelate" typo

2017-08-01 Thread Christophe Fergeau
Signed-off-by: Christophe Fergeau --- common/quic_rgb_tmpl.c | 28 common/quic_tmpl.c | 88 +- 2 files changed, 58 insertions(+), 58 deletions(-) diff --git a/common/quic_rgb_tmpl.c b/common/quic_rgb_tmpl.c index f3d07a5..15d14

[Spice-devel] [spice-common v2 4/6] quic: Use SPICE_VERIFY for static check

2017-08-01 Thread Christophe Fergeau
DEFevol is known at compile-time, so we can use SPICE_VERIFY to check its value. Signed-off-by: Christophe Fergeau --- common/quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/quic.c b/common/quic.c index 049a5cd..8567368 100644 --- a/common/quic.c +++ b/common/qu

Re: [Spice-devel] [spice-gtk v1 2/2] vmcstream: consider incomplete messages

2017-08-01 Thread Marc-André Lureau
- Original Message - > From: Victor Toso > > spice_vmc_input_stream_co_data() is called with the payload of > message ($data) and this buffer size ($size). > > The client of this demux reads each parameter using > spice_vmc_input_stream_read_all_async() by passing the size of the > mes

Re: [Spice-devel] [spice-gtk v1 1/2] channel-webdav: implement channel-reset

2017-08-01 Thread Marc-André Lureau
- Original Message - > From: Victor Toso > > The channel can be reset after disabling the shared-folder. If we had > pending read, we should cancel it using the GCancellable for the > demuxing code on vmcstream.c (c->cancellable) and per client operation > (client->cancellable) which is

Re: [Spice-devel] Proposal: review branches (was Re: [vdagent-win PATCH v6 2/5] Initial rewrite of image conversion code)

2017-08-01 Thread Frediano Ziglio
> > On Tue, Aug 01, 2017 at 07:51:37AM -0400, Frediano Ziglio wrote: > > About the "consistently use Reviewed-by" this is already been proved > > to be not possible in our team. We use patchwork but we can't say we > > use consistently these replies, lot of the times they came in different > > for

[Spice-devel] [spice-gtk v1 1/2] channel-webdav: implement channel-reset

2017-08-01 Thread Victor Toso
From: Victor Toso The channel can be reset after disabling the shared-folder. If we had pending read, we should cancel it using the GCancellable for the demuxing code on vmcstream.c (c->cancellable) and per client operation (client->cancellable) which is done on client_remove_unref() called by g_

[Spice-devel] [spice-gtk v1 2/2] vmcstream: consider incomplete messages

2017-08-01 Thread Victor Toso
From: Victor Toso spice_vmc_input_stream_co_data() is called with the payload of message ($data) and this buffer size ($size). The client of this demux reads each parameter using spice_vmc_input_stream_read_all_async() by passing the size of the message that it wants which is stored in self->cou

Re: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46

2017-08-01 Thread Victor Toso
Hi, On Tue, Aug 01, 2017 at 08:00:11AM -0400, Frediano Ziglio wrote: > > > > Hi, > > > > On Tue, Aug 01, 2017 at 06:31:16AM -0400, Frediano Ziglio wrote: > > > > Subject: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46 > > > > > > I would add "requirement" to the subject. > > > > "build-sy

Re: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46

2017-08-01 Thread Christophe Fergeau
On Tue, Aug 01, 2017 at 12:43:36PM +0200, Victor Toso wrote: > Hi, > > On Tue, Aug 01, 2017 at 06:31:16AM -0400, Frediano Ziglio wrote: > > > Subject: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46 > > > > I would add "requirement" to the subject. > > "build-sys: bump glib 2.36 -> 2.46" wor

Re: [Spice-devel] Proposal: review branches (was Re: [vdagent-win PATCH v6 2/5] Initial rewrite of image conversion code)

2017-08-01 Thread Christophe Fergeau
On Tue, Aug 01, 2017 at 07:51:37AM -0400, Frediano Ziglio wrote: > About the "consistently use Reviewed-by" this is already been proved > to be not possible in our team. We use patchwork but we can't say we > use consistently these replies, lot of the times they came in different > format. I'm nev

Re: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46

2017-08-01 Thread Frediano Ziglio
> > Hi, > > On Tue, Aug 01, 2017 at 06:31:16AM -0400, Frediano Ziglio wrote: > > > Subject: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46 > > > > I would add "requirement" to the subject. > > "build-sys: bump glib 2.36 -> 2.46" works as well? > Maybe is just me, just that seems you are

Re: [Spice-devel] Proposal: review branches (was Re: [vdagent-win PATCH v6 2/5] Initial rewrite of image conversion code)

2017-08-01 Thread Frediano Ziglio
> > Hey, > > On Thu, Jul 27, 2017 at 11:08:06AM -0400, Frediano Ziglio wrote: > > Try to sum up the initial problem was patches/series tracking > > > > 2) similar to patchwork with additional feature but missing > >the state tracking part. Maybe would be not hard to add; > > > > Maybe would

Re: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46

2017-08-01 Thread Victor Toso
Hi, On Tue, Aug 01, 2017 at 06:31:16AM -0400, Frediano Ziglio wrote: > > Subject: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46 > > I would add "requirement" to the subject. "build-sys: bump glib 2.36 -> 2.46" works as well? > > > > > From: Victor Toso > > > > At the moment: > > - Fed

Re: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46

2017-08-01 Thread Frediano Ziglio
> Subject: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46 I would add "requirement" to the subject. > > From: Victor Toso > > At the moment: > - Fedora 26 has 2.52 > - Fedora 25 has 2.50 > - Fedora 24 has 2.48 > - CentOS 7 has 2.46 > - Debian 9 has 2.50 > What about RHEL ? Do we support

Re: [Spice-devel] [PATCH spice-gtk v2] build-sys: remove the spice-controller library

2017-08-01 Thread Victor Toso
Hi, On Tue, Aug 01, 2017 at 11:16:27AM +0100, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > The spice-controller was a small library to let NPAPI browser plugins > communicate with the spice client. Due to usage of vala, the library > could not promise ABI stability, and was a

Re: [Spice-devel] Survey of repository preferences

2017-08-01 Thread Frediano Ziglio
> > On Mon, Jul 31, 2017 at 09:57:41AM +0200, Christophe de Dinechin wrote: > > > What is a difference between a personal branch and a branch at the > > > offical repo? > > > > Visibility. Having an implicit way to share not just the diffs (the way > > patches do) > > but the actual branch. There

Re: [Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46

2017-08-01 Thread Marc-André Lureau
Hi - Original Message - > From: Victor Toso > > At the moment: > - Fedora 26 has 2.52 > - Fedora 25 has 2.50 > - Fedora 24 has 2.48 > - CentOS 7 has 2.46 > - Debian 9 has 2.50 > > Signed-off-by: Victor Toso Not a big deal, but probably ok too. so ack > --- > configure.ac | 4

[Spice-devel] [PATCH spice-gtk v2] build-sys: remove the spice-controller library

2017-08-01 Thread marcandre . lureau
From: Marc-André Lureau The spice-controller was a small library to let NPAPI browser plugins communicate with the spice client. Due to usage of vala, the library could not promise ABI stability, and was also considerer a pretty poor implementation. Furthermore, major browser vendors began to ph

[Spice-devel] [spice-gtk v1] Bump glib 2.36 -> 2.46

2017-08-01 Thread Victor Toso
From: Victor Toso At the moment: - Fedora 26 has 2.52 - Fedora 25 has 2.50 - Fedora 24 has 2.48 - CentOS 7 has 2.46 - Debian 9 has 2.50 Signed-off-by: Victor Toso --- configure.ac | 4 ++-- src/spice-pulse.c | 20 tests/uri.c | 5 - 3 files changed, 2 inse