Commit Graph

805 Commits

Author SHA1 Message Date
Alon Levy
17ba06da2c client/smartcard: ignore VSC_Init 2011-02-10 10:34:47 +02:00
Alon Levy
0d6550ed60 server/smartcard: ignore VSC_Init from client 2011-02-10 10:34:42 +02:00
Alon Levy
21d1ec600b server/smartcard: print instead of assert on bad reader_id in smartcard_char_device_on_message_from_device 2011-02-10 10:34:37 +02:00
Alon Levy
b05c744f4a server/smartcard: libcacard uses network byte order, so we must too 2011-02-10 10:34:32 +02:00
Alon Levy
d7cf75f68c client/smartcard: s/reader_id_t/uint32_t/ (libcacard changed) 2011-02-10 10:34:26 +02:00
Alon Levy
ed5e2fc942 server/smartcard: libcacard removed ReaderAddResponse 2011-02-10 10:34:16 +02:00
Alon Levy
efa3704dbc server/smartcard: s/reader_id_t/uint32_t/ (libcacard changed) 2011-02-10 10:20:49 +02:00
Alon Levy
9de4c94a5d server/red_worker: fix used but uninitialized warning (gcc 4.6.0) 2011-02-07 18:51:50 +02:00
Hans de Goede
504306681c spicec: Remove spice-client watermark (rhbz#662450)
This patch stops us from drawing the spice client watermark at the top of
the virtual machine view. We have had requests through several channels to
remove this as it has little added value, and is seen as annoying by some.
Given that we now also have a bugzilla for this I think it is time we really
remove it.
(cherry picked from commit 392ed65dda)
2011-02-02 10:15:04 +02:00
Uri Lublin
fd4ee559a3 spice-client migration: fix minor for old migration support.
For not too old spice-migration, minor is 1.
For older (ancient) spice-migration, minor is 0.

Affects only VM migration while a spice client is connected.
2011-01-27 18:31:56 +02:00
Alon Levy
7b4e4f278a client/windows: don't allocate console unless required 2011-01-27 17:24:01 +02:00
Alon Levy
fe3b3d3937 client: fix broken vs2008 build 2011-01-27 17:23:56 +02:00
Alon Levy
bfdd2371f8 client: --help should not need platform initialization
separate initialization into before command line parsing and after,
call later only if command line parsing succeeds (in particular, it
"fails" if --help is given).
2011-01-27 17:23:51 +02:00
Alon Levy
3615be639b demarshaller/marshaller fix gcc 4.6.0
python_modules/demarshal.py and marshal.py fixes for gcc 4.6.0
warning about set but unused variables. The fixes disable creating
of variables mem_size when they are not used (demarshall) and
declaring a src variable when the message doesn't use it (marshal).

You need to touch *.proto after applying this (should add a Makefile
dependency).
2011-01-27 12:49:11 +02:00
Alon Levy
f414992e9b codegen: avoid creating out if not used (fix gcc 4.6.0 warning) 2011-01-27 12:49:00 +02:00
Alon Levy
c89c708888 client: gcc 4.6.0: two more unused variable fixes 2011-01-27 12:48:53 +02:00
Alon Levy
fc1b89dd5c client/cegui: cegui 0.6.0 gcc 4.6.0 related fix
cegui doesn't include stddef required for ptrdiff_t type, we
include it for it.
2011-01-27 12:48:49 +02:00
Alon Levy
61c53ef9d8 client/glz_decoder.cpp: gcc 4.6.0 unused fixes 2011-01-27 12:48:44 +02:00
Alon Levy
1bb56f5f46 client/display_channel: gcc 4.6.0 unused fixes 2011-01-27 12:48:40 +02:00
Alon Levy
143452477d common/sw_canvas: remove unused error val
This is the only unused var change I'll want to revisit eventually,
I'm submitting anyway since it doesn't change current behavior. I'm
talking about ignoring the return value from canvas creation. Adding
a print is possible but I didn't test (may be too verbose, also
preferable to be a debug print if so, and we don't have that option
in the code atm - probably an environment variable will do, or adding
some spice_server_set_logging_level api, maybe even
spice_server_set_logging_fd?)
2011-01-27 12:48:35 +02:00
Alon Levy
bd1ae4a6e1 common/canvas_base.c: remove unused variables 2011-01-27 12:48:30 +02:00
Alon Levy
54c91e89fb client/server: warning fixes (gcc 4.6.0)
gcc 4.6.0 added "[-Werror=unused-but-set-variable]", this and the next
few fixes tend to that. Mostly harmless.
2011-01-27 12:48:25 +02:00
Alon Levy
a7b66f77ba client/server: add missing USE_TUNNEL
disable some code that only makes sense when USE_TUNNEL is defined
in client and server channel security level setting.
2011-01-25 17:17:35 +02:00
Alon Levy
079acd9912 client/server: add missing smartchannel channel security handling
The name to channel id mapping for the smartcard channel is missing,
add it in client and server.
2011-01-25 17:17:29 +02:00
Hans de Goede
5c4fb47825 Update license header for server/red_parse_qxl.c
This one mistakenly had a GPL header rather then an LGPL header.
2011-01-21 21:35:23 +01:00
Hans de Goede
7e790a2659 Drop unnecessary X11 and alsa requires from spice-server.pc 2011-01-21 21:34:52 +01:00
Hans de Goede
50a4db1710 Release 0.7.2 2011-01-19 15:04:56 +01:00
Hans de Goede
09a40fabf2 server: remove dep on CEGUI 2011-01-19 15:04:44 +01:00
Alon Levy
fafda4f588 client: CEGUI: search for CEGUI-0.6 to work in F15 (rawhide) 2011-01-19 14:40:03 +01:00
Alon Levy
d51e213eab client: log subject-host mismatch, and raise ssl warnings to errors 2011-01-17 20:29:33 +02:00
Marc-André Lureau
e5bfed8194 client inputs: stop blinking keyboard when out of focus
We could introduce another boolean to prevent changes, or just reuse
_active_modifiers_event = true to prevent further update.

Additionaly this patch restore the keyboard state when focusing out,
which is fine when dealing with full remote desktop, but should be
reconsidered if/when SPICE supports remote windows managed by client
window manager for instance, imho.
2011-01-17 20:29:33 +02:00
Alon Levy
f0e27a2636 common, canvas_get_jpeg_alpha: let top_down be any value
Allow top_down flag to have any value, only ASSERT it is positive
when needs to be positive and zero otherwise. Allows older server
bug of sending 4 instead of 1 in top down flag to not affect newer
clients (previous patch fixes server).
2011-01-17 18:48:50 +02:00
Alon Levy
2a9f35a98f server/red_worker: use 1, not 4 when lz_encoding a top down image 2011-01-17 18:48:50 +02:00
Alon Levy
c002a0784f server: remove dep on libcacard
Only the client needs this, and erronously using SPICE_REQUIRES
results in libcacard dep in spice-server.pc, which is then dragged
into qemu when linking, beeing used instead of the builtin libcacard.
2011-01-17 18:48:50 +02:00
Alon Levy
609105a276 client/cmd_line_parser: fix wrong reporting of bad argument in --bla=val case
We use get_opt_long, which allows non ambiguous abbreviations, but
since we didn't like that we have code that checks for abbreviations and
issues an error. But that code only handled separate argument and key like:
--bla value
and didn't handle them in the same arguemnts, like:
--bla=value
This patch fixes that, and gives a slightly better error report (it still
contains the =value part though)
2011-01-17 18:48:50 +02:00
Alon Levy
d0fa80641d configure.ac: use AC_LANG_SOURCE in AC_COMPILE_IFELSE, silence remaining warnings 2011-01-17 18:48:50 +02:00
Hans de Goede
998218be17 Release 0.7.1 2010-12-17 14:18:14 +01:00
Hans de Goede
abbc024b09 Makefiles: fix server/tests/test_util.h not being included in make dist 2010-12-17 14:14:45 +01:00
Hans de Goede
504ffab58d server: Update SPICE_SERVER_VERSION 2010-12-17 13:53:33 +01:00
Hans de Goede
9435aaf17c Update NEWS
The NEWS file wrongly mentioned mingw32 support, but this is only present
in master, not in the 0.8 branch.
2010-12-17 11:15:05 +01:00
Hans de Goede
36542d3ef5 Release 0.7.0 2010-12-16 17:26:38 +01:00
Hans de Goede
85ebe4fc4d spicec-x11: Let the window manager place our window the 1st time (rhbz#662407)
The problem is that RedWindow::show calls the XLib MoveWindow function
on the window after it has been mapped, moving it to the location in
_show_pos. This is seen by the window manager as the application saying
I know exactly where I want my window to be placed, don't do placing for
me. Which causes the client window to always be shown at pos 0x0, even
though that may not be the best location.

What this patch does is:
1) It makes RedWindow::show not call MoveWindow when a window is
   first created normally and then shown
2) It makes RedWindow::show still call MoveWindow when:
   -when the window has been shown before, and was hidden for some
    reason (controller interface), and is now being re-shown
    so that it ends up being re-shown at its old position
   -when the window is a fullscreen window (screen.cpp always
    calls move on the window before showing it to set its position)
   -when the user switch from windowed mode -> fullscreen ->
    windowed mode again, to make sure that the windowed mode window
    is shown in the same position as before switching to fullscreen
    mode
2010-12-16 16:23:56 +01:00
Hans de Goede
546a21b7f3 spicec-x11: Add a class hint to our window managet hints
This helps people who want to tell their windowmanager to do something special
with spicec, like make it sticky, or whatever, see:
https://bugzilla.redhat.com/show_bug.cgi?id=662452#c4
2010-12-16 16:23:45 +01:00
Hans de Goede
29a2988f15 spicec: Add a --title cmdline option (rhbz#662452) 2010-12-16 16:23:33 +01:00
Alon Levy
5cea338954 server/red_worker: fix worker->drawable_count
drawable_count was becoming negative. It tracks the number of
items in the worker->current_list ring. It was decremented correctly,
but incremented only in several cases. The cases it wasn't incremented
where:
 red_current_add_equal found an equivalent drawable
by moving the increment to where the item is added to current_list, in
__current_add_drawable, the accounting remains correct.

This has no affect other then correct accounting, as drawable_count isn't
used for anything.
2010-12-16 16:23:04 +01:00
Alon Levy
2b83fe700b client/smartcard: external cac card library name and version changed 2010-12-16 16:22:39 +01:00
Gerd Hoffmann
bca5403370 move chardevs out of experimental
While we are at it:  There is no reason for chardev
support to stay in the experimental area, so move it out.
qemu should not need the "spice-experimental.h" file.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 7bbc2ba090)
2010-12-16 09:17:42 +01:00
Gerd Hoffmann
215cd7f903 move switch-host migration out of experimental
seamless stays in the experimental area.
comments updates too.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 6acb817071)
2010-12-16 09:17:35 +01:00
Gerd Hoffmann
697c91db80 client migration: switch host
Implement server-side support for switch-host client migration.  Client
side support is present already in the tree.

Setting the migration information is done using the existing
spice_server_migrate_info() function.  A new
spice_server_migrate_switch() function has been added which triggers
sending out the switch-host message.

Seamless migration functions are left there for now.
spice_server_migrate_start() has been chamnged to just fail
unconditionally though as seamless migration is broken anyway.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 4b1ea4e102)
2010-12-16 09:17:29 +01:00
Gerd Hoffmann
14fef1954f server: improve error handling
We should pass up errors instead of aborting.  Do that at least
for bind() failures which actually happen in real live due to the
tcp port being busy.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit aafd8eea74)
2010-12-09 22:06:58 +01:00