summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-11-23Remove binary dependencyc3dFrediano Ziglio3-7/+4
2017-11-23Separate SpiceStream into new filesFrediano Ziglio4-182/+223
2017-11-23Move write_all into a new utility moduleFrediano Ziglio4-21/+56
2017-11-23Move out command handling from SpiceStreamFrediano Ziglio1-6/+9
2017-11-23SAVEFrediano Ziglio1-8/+7
2017-11-23Revert read_command_from_stdinFrediano Ziglio1-2/+1
The device should handle the device, not interactive commands
2017-11-23Move streaming mutex to SpiceStreamFrediano Ziglio1-1/+1
2017-11-23Revert ::write_all changeFrediano Ziglio1-3/+8
2017-11-23Move all stream-related functions within SpiceStream classChristophe de Dinechin1-38/+50
This incidentally fixes a race condition processing X events, where we could possibly start sending cursor events to the stream before it was actually open. Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
2017-11-23Use RAII to cleanup stream in case of exception or returnChristophe de Dinechin1-12/+20
This lets us get rid of C-style 'goto done' in do_capture. Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
2017-11-22Report reason when there is an error loading the pluginChristophe de Dinechin1-1/+2
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-21Remove X11 dependency from send_cursorFrediano Ziglio1-11/+17
Allows a better encapsulation in the future Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-11-16Use true/false for bool valueFrediano Ziglio1-2/+2
Follow up due to read_command declaration change. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-11-14Remove plugin settings usageFrediano Ziglio1-3/+0
Not really maintainable to add all plugins options here. We should came up with a way to print settings dynamically. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe de Dinechin <dinechin@redhat.com>
2017-11-13Use mnemonic to check for cursor limitsFrediano Ziglio1-1/+2
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
2017-11-10Switch 'blocking' flag to boolChristophe de Dinechin1-1/+1
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-10style: Use C++ style for declaring structsChristophe de Dinechin1-4/+6
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-10style: Remove useless whitespaceChristophe de Dinechin1-4/+2
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-09tests: Fix hexdump.sh when builddir != srcdirChristophe Fergeau1-6/+9
This script currently expects the reference file and the generated file to both be in the same directory, which is not the case when doing a build with builddir != srcdir (or when running make distcheck) Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-09build: Don't use * wildcard in Makefile.amChristophe Fergeau1-1/+8
automake does not support this, see https://www.gnu.org/software/automake/manual/html_node/Wildcards.html and this was causing weird failures when running make distcheck (automake looking for *.in files in $builddir rather than $srcdir, and then an unwanted hexdump\*.out file created in $builddir, but not cleaned). Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-08spec: Add missing Requires to the -devel packageChristophe Fergeau1-0/+1
It needs pkg-config to be installed since it installs a .pc file. Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-08spec: Use %{buildroot} rather than $RPM_BUILD_ROOTChristophe Fergeau1-3/+3
This is more consistent with how other RPM macros are used (%{release}, %{version}, ...) Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-08build: Generate .xz tarballs rather than bz2Christophe Fergeau2-2/+2
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-08build: Install .pc file to ${libdir}, not ${sharedir}Christophe Fergeau2-2/+2
The .pc file defines a plugin installation location, which will be arch dependent, so the .pc file belongs in this arch ${libdir}, not in the 'noarch' ${sharedir} Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-08build: Remove AM_MAINTAINER_MODEChristophe Fergeau1-1/+0
For once, the default automake behaviour is better than the one this macro adds... See https://blogs.gnome.org/desrt/2011/09/08/am_maintainer_mode-is-not-cool/ for details: « what this macro means is that changes to your Makefile.am will not automatically result in the Makefile being regenerated unless –enable-maintainer-mode is given to ./configure » Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-08build: Adjust READMEChristophe Fergeau1-14/+5
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-11-08Update copyright license to Apache 2Frediano Ziglio4-13/+204
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-10-20Initial public commitFrediano Ziglio44-0/+2454