summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* usb-acl-helper: bring the cancellable backgtaskFabiano Fidêncio2016-02-171-5/+4
| | | | | | Don't try to use the cancellable from the GTask. There are several cases where we need to take care of disconnecting the cancellable and the GTask is already finished, leading us to a SEGV.
* wocky-http-proxy: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-31/+17
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* win-usb-driver-install: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-48/+42
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* vmcstream: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-77/+52
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* usb-device-manager: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-31/+27
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* usb-acl-helper: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-41/+32
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* spice-pulse: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-58/+34
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* spice-gstaudio: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-30/+14
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* spice-channel: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-19/+13
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* smartcard-manager: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-24/+14
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* channel-usbredir: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-171-21/+17
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* channel-port: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-161-1/+2
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* channel-main: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-161-49/+33
| | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward.
* channel-base: Use GTask instead of GSimpleAsyncResultFabiano Fidêncio2016-02-162-19/+16
| | | | | | | | | | | Instead of using GSimpleAsyncResult, use the new GTask API, which is much more straightforward. For using the new GTask API, let's bump GIO (part of GLib) dependency version to 2.36, which is safe based on major distro support: - Debian Jessie: glib-2.42 - RHEL-7.1: glib-2.40 - SLES12: glib-2.38 - Ubuntu LTS 14.04: glib-2.40
* gtk: add spice-widget GL scanout supportMarc-André Lureau2016-02-166-21/+779
| | | | | | | | | | | | | | | | Hook to spice-glib events to show the GL scanout. The opengl context is created with egl, and is currently x11-only (supporting wayland with bare-egl doesn't seem trivial). Using GtkGLArea is left for a future series, since SpiceDisplay widget is a GtkDrawingArea and can't be replaced without breaking ABI. Furthermore, GtkGLArea won't work on non-egl contexts, so this approach is necessary on gtk+ < 3.16 or X11 (because gdk/x11 uses glx). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
* glib: add local GL scanout supportMarc-André Lureau2016-02-136-3/+196
| | | | | | | | | | | | | | Add spice-glib support for gl scanout messages. A note about SpiceGlScanout: it is struct with scanout details, registered as a boxed type, with associated gl-scanout property. That way, it doesn't need a seperate signal for change notification and the current scanout can be retrieve with gobject getter. Since boxed property are always duplicated by g_object_get(), an additional spice_display_get_gl_scanout() method returns the current scanout without duplication (that's what spice-gtk display widget will use). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* build-sys: check for epoxy-egl supportMarc-André Lureau2016-02-131-0/+26
| | | | | | | The following code requires epoxy with egl support. Check for pkg-config and egl headers. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* Add spice_channel_unix_read_fd()Marc-André Lureau2016-02-132-0/+71
| | | | | | Utility function used in the messages with socket ancillary fd. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* build-sys: bump to spice-protocol 0.12.11Marc-André Lureau2016-02-131-1/+1
| | | | | | Needed for GL messages Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
* typo: s/GTask/GSimpleAsyncResultFabiano Fidêncio2016-02-121-1/+1
| | | | | | | | | Seems that I messed up with cd0c1008316e90bce925e1448ffcabb366e88f8f while rebasing my GTask series on top of this patch, causing a build breakage due to non-intentional insertion of a GTask replacing a GSimpleAsyncResult. Acked-by: Pavel Grunt <pgrunt@redhat.com>
* Use #ifdef {HAVE,USE}_FOO instead of #if {HAVE,USE}_FOOFabiano Fidêncio2016-02-127-26/+26
| | | | | | | | | | | | | | | | | | | While "#if USE_FOO" checks for the value of the variable USE_FOO, "#ifdef" checks whether USE_FOO is defined or not. It means, if we had something like: #define USE_FOO 0, we would have: #if USE_FOO /* Any code in here would NOT be compiled */ #endif #ifdef USE_FOO /* Any code in here would be compiled */ #endif No problem was faced on spice-gtk till now because either USE_FOO is not defined or defined as 1, but let's try to have it standardized. Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
* gtk: replace configure-event for size-allocateMarc-André Lureau2016-02-031-7/+4
| | | | | | | | | | For size-allocate, it's simpler to connect to the signal rather than override the default signal handler since there is no automatic chaining to parent handler otherwise. Doing this removes the need to have a window. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Victor Toso <victortoso@redhat.com>
* usb-device-{manager,widget}: Add counter of free channelsFabiano Fidêncio2016-01-222-5/+47
| | | | | | | | | | As the message showed when the last usbredir channel is taken can be a bit confusing, let's add a counter of free channels to the widget's label. In order to add the counter, a new property for SpiceUsbDeviceManager was introduced ("free-channels"). Related: rhbz#1298772
* Remove GSLice usageFabiano Fidêncio2016-01-227-21/+22
| | | | | It's being slowly deprecated in glib https://bugzilla.gnome.org/show_bug.cgi?id=754687
* gstaudio: set output parameter to NULL on errorVictor Toso2016-01-191-0/+4
| | | | | | | | This is not really triggered in the current code but this is usually expected in case of errors; Also, the same function on record side already does this. Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
* build-sys: silence vala deprecated function usage warningsMarc-André Lureau2016-01-141-0/+1
| | | | | | | This silence usage of deprecated glib declarations from vala generated code. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* Update spice-commonMarc-Andre Lureau2016-01-141-0/+0
| | | | | | | | | | | | | | | This is an update to fix build issues with spice-protocol.git. generated_server_demarshallers.c: In function ‘parse_msgc_display_gl_draw_done’: generated_server_demarshallers.c:767:23: error: ‘SpiceMsgcDisplayGlDrawDone’ undeclared (first use in this function) mem_size = sizeof(SpiceMsgcDisplayGlDrawDone); ... Also needed for upcoming gl-scanout messages. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
* channel-main: remove unused header rect.hVictor Toso2016-01-071-1/+0
| | | | | | | It was included in be8ff99571478deb5c8d116134f65ed2b788dbd3 but with no use. Acked-by: Marc-André Lureau <mlureau@redhat.com>
* build-sys: remove xrandrMarc-André Lureau2016-01-042-8/+0
| | | | | | Not needed anymore (probably since gnome-rr was removed in 30986505b) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* Grab keyboard based on session focus.snir sheriber2015-12-213-2/+44
| | | | | | | | | | | | | | | | | | | | When using multiple monitors moving mouse between monitors releases keyboard grab. Reproduce bug -Open multiple monitors remote-viewer session -Click on one of the monitors to get focus & keyboard-grab -Move mouse to another monitor and try keyboard command (do not click) At this point all keyboard commands are being executed on the client machine instead of the remote machine I added keyboard_has_focus and mouse_has_pointer variables at the session and now these properties are being tested for the session instead for the current widget (works also when using alt-tab). Resolves: rhbz#1275231 Acked-by: Pavel Grunt <pgrunt@redhat.com>
* ppc: Fix spicy-screenshot colors on BE machinesLukas Venhoda2015-12-211-0/+6
| | | | | | Save screenshot in proper endianess xRGB on LE machine and BGRx on BE machine Acked-by: Pavel Grunt <pgrunt@redhat.com>
* ppc: Fix colors on ppc when using GLZLukas Venhoda2015-12-211-1/+1
| | | | | Fixes color order on PowerPC when using GLZ image compression. Acked-by: Pavel Grunt <pgrunt@redhat.com>
* ppc: Fix message endianessFabiano Fidêncio2015-12-211-24/+37
|
* ppc: Fix header endianessFabiano Fidêncio2015-12-211-10/+10
|
* build-sys: Use sasl check from spice-commonPavel Grunt2015-12-182-45/+2
| | | | | | Support only libsasl2 providing libsasl2.pc file Acked-by: Christophe Fergeau <cfergeau@redhat.com>
* Call spice_marshaller_flush on message writeJavier Celaya2015-12-101-0/+1
| | | | | | | | | spice_marshaller_flush must be called before writing a message to calculate pointer offsets. This is only an issue when ptr submarshallers are used, which currently is only used by Tunnel::service_add. Since this is disabled by default, this buug is not going to be hit by the current codebase.
* gst: Fix typo in preprocessor symbolChristophe Fergeau2015-12-091-2/+2
| | | | | When the GStreamer backend is used, HAVE_GSTAUDIO is defined, not HAVE_GST_AUDIO.
* smartcard: Fix compilation with older libcacardChristophe Fergeau2015-12-092-0/+8
| | | | | | | | e0c2182937 dropped some #include from channel-smartcard.c and spicy.c as they were redundant with the headers already included from spice-common/common/messages.h. While this is true for the newer libcacard.h header, we need to include more headers to support older libcacard, or compilation breaks.
* spice-gtk: Recover from GStreamer audio initialization errorsFrancois Gouget2015-12-091-5/+7
| | | | | | | gst_init() will terminate the program in case of a failure so it's better to use gst_init_check() so we can recover from errors. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
* build-sys: Warn about missing GStreamer 1.0 audio runtime elementsFrancois Gouget2015-12-081-1/+5
| | | | | | | | Their absence should not be reported as an error since they are not needed for the build, but the developer will need them to test the code so it's appropriate to warn him. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
* build-sys: Check for GStreamer 1.0 audio with SPICE_CHECK_GSTREAMER()Christophe Fergeau2015-12-081-11/+8
| | | | Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
* build-sys: Allow simultaneous support for Pulse and GStreamer audioFrancois Gouget2015-12-083-40/+46
| | | | | | | | | | Rather than GStreamer/PulseAudio backend being mutually exclusive at compile-time, this commit allows to enable both at the same time. PulseAudio will then be favoured, with a fallback to GStreamer if it's not available. Note that --with-audio is kept for backward compatibility. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
* Use libcacard.h if possibleMarc-André Lureau2015-12-083-10/+5
| | | | | | Drop unneeded includes (that are already undirectly included). Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
* Remove unmaintained spicy.nsisMarc-André Lureau2015-12-084-236/+3
| | | | | | Remove gtkrc too, and cleanup EXTRA_DIST ($(desktop_in_files) is unused) Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
* Update spice-commonMarc-André Lureau2015-12-081-0/+0
| | | | For new libcacard.h usage
* Fix use after free of uriMarc-André Lureau2015-12-081-1/+1
| | | | | | | | "path" points to "uri" memory, move free(uri) later. Found thanks to valgrind :) Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
* Update spice-common submoduleChristophe Fergeau2015-11-251-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | The next commit is going to use SPICE_WARNING which was added recently to spice-common This submodule update changes: Christophe Fergeau (5): build-sys: Add gio-2.0 to SPICE_CHECK_GLIB2 build-sys: Fix error in SPICE_CHECK_LZ4 description build-sys: Set automake conditional in SPICE_CHECK_SMARTCARD build-sys: Rename SUPPORT_GL to HAVE_GL build-sys: Add missing # to comment Francois Gouget (3): build-sys: Add the SPICE_WARNING() and SPICE_PRINT_MESSAGES m4 macros build-sys: Add SPICE_CHECK_GSTREAMER() build-sys: Add SPICE_CHECK_GSTREAMER_ELEMENTS() Lukas Venhoda (4): ssl-verify: Only check addr length when using IP addr m4: Require glib version >= 2.22 ssl-verify: Changed IPv4 hostname to IPv6 canvas_base: Remove redundant switch case block
* build-sys: Use SPICE_WARNING() to issue the DBus warningFrancois Gouget2015-11-251-3/+3
| | | | Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
* build-sys: Prefix the configure audio GStreamer variables with GSTAUDIO_Francois Gouget2015-11-242-11/+11
| | | | | | | | This lets us avoid naming conflicts when using GStreamer for other purposes. Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Acked-by: Victor Toso <victortoso@redhat.com>
* file transfer: send cancel message when user cancels a transferJay.han2015-11-191-1/+2
| | | | | | | | | When a user cancel's a file transfer, we should send a STATUS_CANCELED message rather than an STATUS_ERROR message. The latter triggers a bug in the vdagent where the file remains opened by the vdagent in the guest and cannot be removed. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>