Hi,
On Mon, May 16, 2016 at 03:00:14PM +0200, Pavel Grunt wrote:
> Related: rhbz#1335239
> ---
> tests/Makefile.am | 2 ++
> tests/test-spice-uri.c | 64
> ++
> 2 files changed, 66 insertions(+)
> create mode 100644 tests/test-spice-uri.c
>
On Mon, 2016-05-16 at 10:55 +0100, Frediano Ziglio wrote:
> Use some utility function to show and compute statistics.
>
> Signed-off-by: Frediano Ziglio
Acked-by: Pavel Grunt
> ---
> server/display-channel.c | 131 ++--
> ---
> 1 file changed, 49 insertio
Actually not exactly the same as this fix a bug if base is not the
first element (in this case if dpi_ring_item is NULL dpi is not)
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/server/display-channel.c b/server
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 608d176..65ca110 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -504,10 +504,9 @@
Both jump to check worker_ring_item (internal or external loops)
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 58c1fd6..40e6608 100644
--- a/server/display-
They tested the same condition, no break in inside loop (which would
exit all loops)
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 20 +---
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index a54
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 27d8e83..d618ba5 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -509,13 +509,13 @@ sta
these lines are only executed then the condition are satisfied
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index c5768de..27d8e83 100644
--- a/serve
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 40e6608..a54f561 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -515,11 +515,9 @
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 1f4d66f..171dfce 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -512,7 +512,10 @@
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 171dfce..f19d3db 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -513,7 +513,10 @@
dpi_ring_item is changed but ignored
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index f19d3db..fc232fb 100644
--- a/server/display-channel.c
+++ b/server/dis
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index fc232fb..31ec5d0 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -529,10 +529,8 @
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index d618ba5..cb60637 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -517,9 +517,7 @@ st
Convert from for(;;) { if () break; ... } to while
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 312d971..58c1fd6 100644
--- a/server/display-channel.c
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 31ec5d0..c5768de 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -509,21 +509,19
The outer loop will exit too.
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index cb60637..312d971 100644
--- a/server/display-channel.c
+++ b/server/display-ch
These patches should be probably squashed together.
I still don't get that much what the loop is supposed to
achieve but surely now is much neat.
Also I removed a code assumption (it all started from there).
Can somebody explain what the code is supposed to do?
Frediano Ziglio (15):
dc: convert
spice-server-replay is built inside tests.
However tests are built linking to a convenience library causing all
spice-server code to be linked inside of the executable.
This is not a big problem however do not allow to easily use this
utility to test different binary version libraries.
Linking to j
Signed-off-by: Frediano Ziglio
---
server/reds-private.h | 1 -
server/reds.c | 2 --
2 files changed, 3 deletions(-)
diff --git a/server/reds-private.h b/server/reds-private.h
index 97ea0ba..5724f16 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -118,7 +118,6 @@ struc
Signed-off-by: Frediano Ziglio
---
server/reds-private.h | 1 -
server/reds.c | 3 ---
2 files changed, 4 deletions(-)
diff --git a/server/reds-private.h b/server/reds-private.h
index 74a251b..97ea0ba 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -140,7 +140,6 @@ stru
Signed-off-by: Frediano Ziglio
---
server/reds.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/reds.c b/server/reds.c
index 9898fe5..1909e6e 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -442,7 +442,7 @@ uint64_t *stat_add_counter(RedsState *reds, StatNodeRef
par
Signed-off-by: Frediano Ziglio
---
server/tests/stream-test.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/server/tests/stream-test.c b/server/tests/stream-test.c
index 6317796..8fd1449 100644
--- a/server/tests/stream-test.c
+++ b/server/tests/stream-test.c
@@ -35,6 +35
Starting changing LZ4 new protocol message I found some
issues with types.
Frediano Ziglio (4):
improve lz4 protocol
fix wrong assert check
add a check for negate cases on enumerations
extend a comment for type attributes
Snir Sheriber (1):
Add LZ4 data compression and used it in spicev
The assert were never triggered as always True
Signed-off-by: Frediano Ziglio
---
python_modules/ptypes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 753d363..74f3e55 100644
--- a/python_modules/ptypes.py
+++ b/py
Signed-off-by: Frediano Ziglio
---
python_modules/ptypes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 1f4e068..f4a09f7 100644
--- a/python_modules/ptypes.py
+++ b/python_modules/ptypes.py
@@ -63,7 +63,7 @@ class F
Not supported by code so trigger an error to avoid invalid uses
Signed-off-by: Frediano Ziglio
---
python_modules/ptypes.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 74f3e55..1f4e068 100644
--- a/python_modules/ptypes.py
+++ b/p
Reduce size if not compressed and compute compressed size using message
length
This should be merged in previous patch
---
common/messages.h | 2 +-
spice.proto | 17 +
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/common/messages.h b/common/messages.h
ind
Signed-off-by: Frediano Ziglio
---
python_modules/ptypes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 1f4e068..f4a09f7 100644
--- a/python_modules/ptypes.py
+++ b/python_modules/ptypes.py
@@ -63,7 +63,7 @@ class F
Reduce size if not compressed and compute compressed size using message
length
This should be merged in previous patch
---
common/messages.h | 2 +-
spice.proto | 17 +
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/common/messages.h b/common/messages.h
ind
The assert were never triggered as always True
Signed-off-by: Frediano Ziglio
---
python_modules/ptypes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 753d363..74f3e55 100644
--- a/python_modules/ptypes.py
+++ b/py
Not supported by code so trigger an error to avoid invalid uses
Signed-off-by: Frediano Ziglio
---
python_modules/ptypes.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 74f3e55..1f4e068 100644
--- a/python_modules/ptypes.py
+++ b/p
From: Snir Sheriber
Compressed message type is CompressedData which contains compression
type (1 byte) followed by the uncompressed data size (4 bytes) followed
by the compressed data size (4 bytes) followed by the compressed data
---
common/client_marshallers.h | 1 +
common/messages.h
On Po, 2016-05-16 at 10:10 -0400, Frediano Ziglio wrote:
> >
> > Related: rhbz#1335239
> > ---
> > tests/Makefile.am | 2 ++
> > tests/test-spice-uri.c | 64
> > ++
> > 2 files changed, 66 insertions(+)
> > create mode 100644 tests/test-spic
On Mon, 2016-05-16 at 10:35 -0400, Frediano Ziglio wrote:
> >
> >
> > Resolves: rhbz#1335239
> > ---
> > src/spice-uri.c| 25 +++--
> > tests/test-spice-uri.c | 43 +++
> > 2 files changed, 62 insertions(+), 6 deletions(-)
> >
>
> Resolves: rhbz#1335239
> ---
> src/spice-uri.c| 25 +++--
> tests/test-spice-uri.c | 43 +++
> 2 files changed, 62 insertions(+), 6 deletions(-)
>
> diff --git a/src/spice-uri.c b/src/spice-uri.c
> index 35d773e..36e75bb 100
>
> Resolves: rhbz#1335239
> ---
> src/spice-uri.c| 25 +++--
> tests/test-spice-uri.c | 43 +++
> 2 files changed, 62 insertions(+), 6 deletions(-)
>
> diff --git a/src/spice-uri.c b/src/spice-uri.c
> index 35d773e..36e75bb 100
>
> Related: rhbz#1335239
> ---
> tests/Makefile.am | 2 ++
> tests/test-spice-uri.c | 64
> ++
> 2 files changed, 66 insertions(+)
> create mode 100644 tests/test-spice-uri.c
>
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index c
Just a call to red_pipe_item_unref.
Signed-off-by: Frediano Ziglio
---
server/red-channel.c | 19 +--
server/red-channel.h | 3 ---
2 files changed, 1 insertion(+), 21 deletions(-)
diff --git a/server/red-channel.c b/server/red-channel.c
index 0d35fc0..4d7c1b1 100644
--- a/serv
Avoid having to provide a lot of empty implementations
Signed-off-by: Frediano Ziglio
---
server/cursor-channel.c | 6 --
server/display-channel.c | 6 --
server/inputs-channel.c | 7 ---
server/red-channel.c | 10 +-
server/smartcard.c | 7 ---
server/spi
Signed-off-by: Frediano Ziglio
---
server/red-channel.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/server/red-channel.c b/server/red-channel.c
index 77eb4be..803570c 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -1757,10 +1757,7 @@ int red_channel_is
This is the continuation of Christophe patches using reference
counting for RedPipeItem.
Extend it's usage.
This for instance lead to the removal of release_item callback.
Some patches could probably be merged but it's easier to review them.
I did some tests even adding some debugging to see how ma
Reuse RedPipeItem facilities.
Signed-off-by: Frediano Ziglio
---
server/main-channel.c | 35 +--
1 file changed, 17 insertions(+), 18 deletions(-)
diff --git a/server/main-channel.c b/server/main-channel.c
index 98ce660..433b46c 100644
--- a/server/main-channel.c
Signed-off-by: Frediano Ziglio
---
server/main-channel.c | 12 +---
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/server/main-channel.c b/server/main-channel.c
index 433b46c..d540796 100644
--- a/server/main-channel.c
+++ b/server/main-channel.c
@@ -165,9 +165,6 @@ enum Ne
Signed-off-by: Frediano Ziglio
---
server/red-channel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/red-channel.c b/server/red-channel.c
index b7ec11e..77eb4be 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -1755,7 +1755,7 @@ int red_channel_is_conn
Signed-off-by: Frediano Ziglio
---
server/red-channel.c | 18 ++
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/server/red-channel.c b/server/red-channel.c
index 4d7c1b1..b7ec11e 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -581,16 +581,10 @@ sta
Signed-off-by: Frediano Ziglio
---
server/red-channel.c | 2 +-
server/spicevmc.c| 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/red-channel.c b/server/red-channel.c
index 803570c..9aef363 100644
--- a/server/red-channel.c
+++ b/server/red-channel.c
@@ -578,7 +57
Move ring_remove to the function to release this type of item.
Signed-off-by: Frediano Ziglio
---
server/dcc.c | 11 ---
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/server/dcc.c b/server/dcc.c
index db77cc7..0953efd 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -288,7
Signed-off-by: Frediano Ziglio
---
server/dcc.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/server/dcc.h b/server/dcc.h
index 1dd53bd..89934bc 100644
--- a/server/dcc.h
+++ b/server/dcc.h
@@ -154,7 +154,6 @@ typedef struct RedDrawablePipeItem {
RedPipeItem dpi_pipe_item; /* link for t
The items of these pipe items were allocated staticaly inside the
StreamAgent structure. All others RedPipeItem are allocated dynamically.
This could solve possible future maintenance as the life of these
item is more easier to understand.
It's more easier to understand why reference where incremen
Signed-off-by: Frediano Ziglio
---
server/spicevmc.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/server/spicevmc.c b/server/spicevmc.c
index bdaa3c3..5724023 100644
--- a/server/spicevmc.c
+++ b/server/spicevmc.c
@@ -441,11 +441,7 @@ static void
spicevmc_red_channel_
type was already initialized calling red_pipe_item_init
Signed-off-by: Frediano Ziglio
---
server/smartcard.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/server/smartcard.c b/server/smartcard.c
index e483eec..b2fb766 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -541,7 +541,
Signed-off-by: Frediano Ziglio
---
server/dcc-send.c| 2 +-
server/dcc.c | 5 -
server/dcc.h | 3 ---
server/display-channel.c | 5 +
4 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/server/dcc-send.c b/server/dcc-send.c
index 0f645a9..f0f2e1
All RedPipeItems can be freed with red_pipe_item_unref.
Signed-off-by: Frediano Ziglio
---
server/cursor-channel.c | 46 ++
1 file changed, 2 insertions(+), 44 deletions(-)
diff --git a/server/cursor-channel.c b/server/cursor-channel.c
index 2d57c59..
This is the standard way to release a RedPipeItem
Signed-off-by: Frediano Ziglio
---
server/dcc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/dcc.c b/server/dcc.c
index 0953efd..6f08cd9 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -1676,7 +1676,7 @@ static void
Signed-off-by: Frediano Ziglio
---
server/dcc.c | 17 +
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/server/dcc.c b/server/dcc.c
index 286514c..20ba6ee 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -1610,22 +1610,7 @@ int dcc_handle_migrate_data(DisplayChannelCl
Signed-off-by: Frediano Ziglio
---
server/dcc.c | 41 +
1 file changed, 1 insertion(+), 40 deletions(-)
diff --git a/server/dcc.c b/server/dcc.c
index 20ba6ee..7d9d366 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -1608,46 +1608,7 @@ int dcc_handle_migra
Signed-off-by: Frediano Ziglio
---
server/cursor-channel.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/server/cursor-channel.c b/server/cursor-channel.c
index 444d89b..4df5c66 100644
--- a/server/cursor-channel.c
+++ b/server/cursor-channel.c
@@ -203,8 +203,7 @@ voi
Signed-off-by: Frediano Ziglio
---
server/dcc.c | 42 --
1 file changed, 28 insertions(+), 14 deletions(-)
diff --git a/server/dcc.c b/server/dcc.c
index a6d4fc4..75f5120 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -335,6 +335,28 @@ void dcc_add_drawab
Signed-off-by: Frediano Ziglio
---
server/smartcard.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/server/smartcard.c b/server/smartcard.c
index b2fb766..c8e9eb0 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -507,11 +507,7 @@ static void smartcard_channel
Signed-off-by: Frediano Ziglio
---
server/cursor-channel.c | 29 ++---
1 file changed, 10 insertions(+), 19 deletions(-)
diff --git a/server/cursor-channel.c b/server/cursor-channel.c
index 4df5c66..2d57c59 100644
--- a/server/cursor-channel.c
+++ b/server/cursor-channel.
Putting base as first item the default free function is fine.
Signed-off-by: Frediano Ziglio
---
server/dcc.c | 16 ++--
server/dcc.h | 2 +-
server/display-channel.h | 2 +-
3 files changed, 4 insertions(+), 16 deletions(-)
diff --git a/server/dcc.c b/serv
Resolves: rhbz#1335239
---
src/spice-uri.c| 25 +++--
tests/test-spice-uri.c | 43 +++
2 files changed, 62 insertions(+), 6 deletions(-)
diff --git a/src/spice-uri.c b/src/spice-uri.c
index 35d773e..36e75bb 100644
--- a/src/spice
Avoid using old values after parsing a new uri.
Related: rhbz#1335239
---
src/spice-uri.c| 3 +++
tests/test-spice-uri.c | 8
2 files changed, 11 insertions(+)
diff --git a/src/spice-uri.c b/src/spice-uri.c
index 0cc2195..35d773e 100644
--- a/src/spice-uri.c
+++ b/src/spice-uri.
Related: rhbz#1335239
---
src/spice-uri.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/spice-uri.c b/src/spice-uri.c
index e1317bd..0cc2195 100644
--- a/src/spice-uri.c
+++ b/src/spice-uri.c
@@ -22,6 +22,7 @@
#include "spice-client.h"
#include "spice-uri.h"
+#include "spice-uri-priv
Related: rhbz#1335239
---
tests/Makefile.am | 2 ++
tests/test-spice-uri.c | 64 ++
2 files changed, 66 insertions(+)
create mode 100644 tests/test-spice-uri.c
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c1d95c1..fb97138 100644
-
Hi,
these patches add ipv6 support to SpiceUri, so it can be used in SPICE_PROXY.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1335239
Pavel Grunt (4):
tests: Add test for SpiceUri
spice-uri: Add missing include
spice-uri: Set user & password to NULL when not specified
spice-uri
>
> -New message type for compressed messages has been added to the protocol
> -SPICE_SPICEVMC_CAP_DATA_COMPRESS_LZ4 capability has been added
> ---
> spice/enums.h| 10 ++
> spice/protocol.h | 4
> 2 files changed, 14 insertions(+)
>
> diff --git a/spice/enums.h b/spice/enums.
Hi,
sorry, ack.
Pavel
On Mon, 2016-05-16 at 06:06 -0400, Frediano Ziglio wrote:
> ping... again!
>
> - Original Message -
> > From: "Frediano Ziglio"
> > To: spice-devel@lists.freedesktop.org
> > Sent: Monday, May 9, 2016 12:15:15 PM
> > Subject: Re: [Spice-devel] [spice-gtk v3] Spice-
ping... again!
- Original Message -
> From: "Frediano Ziglio"
> To: spice-devel@lists.freedesktop.org
> Sent: Monday, May 9, 2016 12:15:15 PM
> Subject: Re: [Spice-devel] [spice-gtk v3] Spice-widget: Use new
> gdk_event_get_scancode if available
>
> ping
>
> - Original Message
Use some utility function to show and compute statistics.
Signed-off-by: Frediano Ziglio
---
server/display-channel.c | 131 ++-
1 file changed, 49 insertions(+), 82 deletions(-)
Changes from v2:
- make total computation same as initial patch. I'm not
Hi,
On Mon, May 16, 2016 at 09:02:16AM +0200, Fabiano Fidêncio wrote:
> On Mon, May 16, 2016 at 8:50 AM, Victor Toso wrote:
> > We are checking self->priv->error but accessing the argument GError *
> > which is NULL and leads to a segfault.
> >
> > Program received signal SIGSEGV, Segmentation fa
On Mon, May 16, 2016 at 8:50 AM, Victor Toso wrote:
> We are checking self->priv->error but accessing the argument GError *
> which is NULL and leads to a segfault.
>
> Program received signal SIGSEGV, Segmentation fault.
> spice_file_transfer_task_completed (self=self@entry=0x7fffd0006f00,
> err
73 matches
Mail list logo