On Thu, Feb 15, 2018 at 05:06:19PM +0100, Christophe de Dinechin wrote:
> From: Christophe de Dinechin
>
> Signed-off-by: Christophe de Dinechin
> ---
> docs/spice_style.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git
On Thu, Feb 15, 2018 at 05:06:21PM +0100, Christophe de Dinechin wrote:
> From: Christophe de Dinechin
>
> The objective of these guidelines is that:
> - We avoid introducing new warnings
> - We know how to fix old ones
>
> Changes since v3:
> - Put 'controversial'
> > On 15 Feb 2018, at 11:00, Frediano Ziglio wrote:
> >
> > From: Christophe de Dinechin
> >
> > Signed-off-by: Christophe de Dinechin
> > ---
> > Change since v1:
> > - do not clash with possible short 'b' option.
> > ---
> >
The shortlog is not really good..
On Thu, Feb 15, 2018 at 05:06:23PM +0100, Christophe de Dinechin wrote:
> From: Christophe de Dinechin
>
> This attempts to find a wording that takes into account the existing
> practice, notably in the server.
>
> Signed-off-by:
>
> > On 9 Feb 2018, at 17:59, Frediano Ziglio wrote:
> >
>
>
> > +
> > +// read part of the message till we get all
> > +if (dev->msg_len < dev->hdr.size) {
> > +dev->msg = g_realloc(dev->msg, dev->hdr.size);
> > +
On Thu, Feb 15, 2018 at 05:06:17PM +0100, Christophe de Dinechin wrote:
> From: Christophe de Dinechin
>
> Changes since v3:
> - Integrate comments about performance impact and solution
> - Integrate comments about impact of a failed assertion
> - Add prohibition against
On Thu, Feb 15, 2018 at 05:06:14PM +0100, Christophe de Dinechin wrote:
> From: Christophe de Dinechin
>
> There are two use cases for this .clang-format:
>
> 1. Local reformatting of source code, e.g. using Emacs clang-format.el
> package.
>This is basically a wawy to
On Thu, Feb 15, 2018 at 05:06:25PM +0100, Christophe de Dinechin wrote:
> From: Christophe de Dinechin
>
> Change since v3:
> - This particular aspect is controversial, so it was put in a separate patch.
This has been nack'ed by multiple people already, please don't resend
> On 16 Feb 2018, at 10:07, Christophe Fergeau wrote:
>
> On Thu, Feb 15, 2018 at 05:06:14PM +0100, Christophe de Dinechin wrote:
>> From: Christophe de Dinechin
>>
>> There are two use cases for this .clang-format:
>>
>> 1. Local reformatting of
From: Marc-André Lureau
Hi,
Here are a few patches related to spice schemes URI handling. They
introduce a spice+tls:// form (see related man page update and patch
for details).
cheers
v2:
- add a patch to report warning with original uri for clarity
- accept
From: Marc-André Lureau
spice:// has a weird scheme encoding, where it can accept both plain
and tls ports with URI query parameters. However, it's not very
convenient nor very common to use (who really want to mix plain & tls
channels?).
Instead, let's introduce
On Thu, Feb 15, 2018 at 05:06:17PM +0100, Christophe de Dinechin wrote:
> From: Christophe de Dinechin
>
> Changes since v3:
> - Integrate comments about performance impact and solution
> - Integrate comments about impact of a failed assertion
> - Add prohibition against
>
> > On 6 Feb 2018, at 10:51, Frediano Ziglio wrote:
> >
> >>>
> >>> On 5 Feb 2018, at 15:29, Lukáš Hrázký wrote:
> >>>
> >>> The static registration (that is, having a static list of pointers to
> >>> static plugin variables and calling a generic
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
src/spice-session.c | 31 +++
tests/session.c | 20 ++--
2 files changed, 33 insertions(+), 18 deletions(-)
diff --git
> On 16 Feb 2018, at 10:12, Christophe Fergeau wrote:
>
> On Thu, Feb 15, 2018 at 05:06:17PM +0100, Christophe de Dinechin wrote:
>> From: Christophe de Dinechin
>>
>> Changes since v3:
>> - Integrate comments about performance impact and solution
>>
On Fri, Feb 16, 2018 at 11:13:06AM +0100, marcandre.lur...@redhat.com wrote:
> From: Marc-André Lureau
>
> spice:// has a weird scheme encoding, where it can accept both plain
> and tls ports with URI query parameters. However, it's not very
> convenient nor very
From: Marc-André Lureau
Before:
(lt-spicy:18372): GSpice-WARNING **: 10:57:21.246: Double set of 'port' in URI
'spice://foo'
After:
(lt-spicy:18654): GSpice-WARNING **: 10:57:21.246: Double set of 'port' in URI
'spice://foo:23?port=24'
Signed-off-by: Marc-André
On Fri, Feb 16, 2018 at 10:40:58AM +0100, Christophe de Dinechin wrote:
>
>
> > On 16 Feb 2018, at 10:12, Christophe Fergeau wrote:
> >
> > On Thu, Feb 15, 2018 at 05:06:17PM +0100, Christophe de Dinechin wrote:
> >> From: Christophe de Dinechin
> >>
>
> From: Marc-André Lureau
>
> Before:
> (lt-spicy:18372): GSpice-WARNING **: 10:57:21.246: Double set of 'port' in
> URI 'spice://foo'
>
> After:
> (lt-spicy:18654): GSpice-WARNING **: 10:57:21.246: Double set of 'port' in
> URI 'spice://foo:23?port=24'
>
>
Signed-off-by: Frediano Ziglio
---
spice-streaming-agent.spec.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/spice-streaming-agent.spec.in b/spice-streaming-agent.spec.in
index 99b1f52..d137840 100644
--- a/spice-streaming-agent.spec.in
+++
> On 16 Feb 2018, at 10:05, Christophe Fergeau wrote:
>
> On Thu, Feb 15, 2018 at 05:06:19PM +0100, Christophe de Dinechin wrote:
>> From: Christophe de Dinechin
>>
>> Signed-off-by: Christophe de Dinechin
>> ---
>>
From: Marc-André Lureau
They couldn't not be introduced before, because the test needs both
parsing and generation.
Signed-off-by: Marc-André Lureau
---
tests/session.c | 24 +++-
1 file changed, 23 insertions(+), 1
>
> From: Christophe de Dinechin
>
> Without this, GCC complains about signed / unsigned comparisons:
>
> mjpeg-fallback.cpp:121:24: warning: comparison between signed and unsigned
> integer expressions [-Wsign-compare]
> if (win_info.width != last_width ||
>
> From: Christophe de Dinechin
>
> As per e-mail discussions (https://patchwork.freedesktop.org/patch/200629/),
> using std::string for C-style string constants is against C++ good practices,
> see
>
>
> From: Christophe de Dinechin
>
> Without this header, clang complains with messages such as:
>
> concrete-agent.cpp:62:37: error: invalid operands to binary expression
> ('const std::string' (aka 'const basic_string allocator >') and 'const char
>
> From: Christophe de Dinechin
>
> Get rid of C-style 'goto done' in do_capture.
> Get rid of global streamfd, pass it around (cleaned up in later patch)
> Fixes a race condition, make sure we only use stream after opening
>
> Signed-off-by: Christophe de Dinechin
>
> From: Christophe de Dinechin
>
> Signed-off-by: Christophe de Dinechin
> ---
> src/spice-streaming-agent.cpp | 7 +--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/src/spice-streaming-agent.cpp
> On 16 Feb 2018, at 17:40, Frediano Ziglio wrote:
>
>>
>> From: Christophe de Dinechin
>>
>> Get rid of C-style 'goto done' in do_capture.
>> Get rid of global streamfd, pass it around (cleaned up in later patch)
>> Fixes a race condition, make sure
From: Christophe de Dinechin
The streaming agent started as C code. This series converts
the style to something that is more usual for C++, notably:
- Adds encapsulation and RAII for resources such as the stream
- Splits functionality into several classes with clear roles
-
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index
From: Christophe de Dinechin
- The Stream class now deals with locking and sending messages
- The Message<> template class deals with the general writing mechanisms
- Three classes, FormatMessage, FrameMessage and X11CursorMessage represent
individual messages
The various
From: Christophe de Dinechin
As per e-mail discussions (https://patchwork.freedesktop.org/patch/200629/),
using std::string for C-style string constants is against C++ good practices,
see
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 47 +--
1 file changed, 27 insertions(+), 20 deletions(-)
diff --git a/src/spice-streaming-agent.cpp
From: Christophe de Dinechin
This is not a really nice abstraction at this point, but still a step in the
right way
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 14 +-
1 file changed, 9 insertions(+), 5
>
> From: Christophe de Dinechin
>
> Signed-off-by: Christophe de Dinechin
> ---
> src/spice-streaming-agent.cpp | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 28 ++--
1 file changed, 18 insertions(+), 10 deletions(-)
diff --git a/src/spice-streaming-agent.cpp
From: Christophe de Dinechin
Get rid of C-style 'goto done' in do_capture.
Get rid of global streamfd, pass it around (cleaned up in later patch)
Fixes a race condition, make sure we only use stream after opening
Signed-off-by: Christophe de Dinechin
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 47 ++-
1 file changed, 28 insertions(+), 19 deletions(-)
diff --git a/src/spice-streaming-agent.cpp
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 86 +++
1 file changed, 47 insertions(+), 39 deletions(-)
diff --git a/src/spice-streaming-agent.cpp
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/concrete-agent.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/concrete-agent.cpp b/src/concrete-agent.cpp
index 891c09b..ac37788 100644
--- a/src/concrete-agent.cpp
From: Christophe de Dinechin
This class will need to be moved to a separate file in a later patch.
This is done in two steps to make the evolution of the code easier to track,
as well as to facilitate later 'git bisect'
Signed-off-by: Christophe de Dinechin
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 99 ++-
1 file changed, 60 insertions(+), 39 deletions(-)
diff --git a/src/spice-streaming-agent.cpp
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/spice-streaming-agent.cpp | 21 +
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/src/spice-streaming-agent.cpp
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/concrete-agent.hpp| 4
src/spice-streaming-agent.cpp | 14 ++
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/concrete-agent.hpp
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
src/mjpeg-fallback.cpp| 2 +-
src/spice-streaming-agent.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mjpeg-fallback.cpp
> On 16 Feb 2018, at 17:43, Frediano Ziglio wrote:
>
>>
>> From: Christophe de Dinechin
>>
>> Signed-off-by: Christophe de Dinechin
>> ---
>> src/spice-streaming-agent.cpp | 4 +---
>> 1 file changed, 1 insertion(+), 3
From: Christophe de Dinechin
Signed-off-by: Christophe de Dinechin
---
autogen.sh | 9 +
1 file changed, 9 insertions(+)
create mode 100755 autogen.sh
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 000..afa3e39
---
From: Christophe de Dinechin
This series eliminates warnings reported by GCC and instantiation
failures reported by clang due to missing header.
Christophe de Dinechin (2):
Add missing header
Eliminate signed/unsigned warning
src/concrete-agent.cpp| 1 +
From: Christophe de Dinechin
Without this, GCC complains about signed / unsigned comparisons:
mjpeg-fallback.cpp:121:24: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
if (win_info.width != last_width || win_info.height !=
From: Christophe de Dinechin
Without this header, clang complains with messages such as:
concrete-agent.cpp:62:37: error: invalid operands to binary expression ('const
std::string' (aka 'const basic_string') and 'const char *')
On Fri, Feb 16, 2018 at 04:18:19PM +0100, Christophe de Dinechin wrote:
> From: Christophe de Dinechin
>
> Signed-off-by: Christophe de Dinechin
> ---
> autogen.sh | 9 +
> 1 file changed, 9 insertions(+)
> create mode 100755 autogen.sh
>
>
> On 16 Feb 2018, at 12:51, Frediano Ziglio wrote:
>
> Signed-off-by: Frediano Ziglio
> ---
> spice-streaming-agent.spec.in | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/spice-streaming-agent.spec.in b/spice-streaming-agent.spec.in
> index
On Tue, 2018-02-13 at 13:58 +, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio
> ---
> server/stream-device.c | 38 +-
> 1 file changed, 37 insertions(+), 1 deletion(-)
>
> diff --git a/server/stream-device.c
On Tue, 2018-02-13 at 13:58 +, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio
> ---
> server/stream-device.c | 165
> ++---
> 1 file changed, 158 insertions(+), 7 deletions(-)
>
> diff --git a/server/stream-device.c
On Tue, 2018-02-13 at 15:54 +, Frediano Ziglio wrote:
> If messages are sent together by the agent the device is reading
> only part of the data. This cause Qemu to not poll for new data and
> stream_device_read_msg_from_dev won't be called again.
> This can cause a stall. To avoid this
> On Tue, 2018-02-13 at 13:58 +, Frediano Ziglio wrote:
> > Signed-off-by: Frediano Ziglio
> > ---
> > server/stream-device.c | 165
> > ++---
> > 1 file changed, 158 insertions(+), 7 deletions(-)
> >
> > diff --git
On Fri, 2018-02-16 at 17:17 -0500, Frediano Ziglio wrote:
> > On Tue, 2018-02-13 at 13:58 +, Frediano Ziglio wrote:
> > > Signed-off-by: Frediano Ziglio
> > > ---
> > > server/stream-device.c | 165
> > > ++---
> > > 1 file
59 matches
Mail list logo