summaryrefslogtreecommitdiff
path: root/src
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-10-20Initial public commitFrediano Ziglio22-0/+1282