Commit Graph

693 Commits

Author SHA1 Message Date
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
Arnon Gilboa
8a7e6fef27 spicec: do not call connect_secure when connect_unsecure fails due to protocol version mismatch (v2)
If connect_unsecure failed due to protocol version mismatch, don't try to
connect_secure with the same version, but retry (connect_secure or
connect_unsecure) with older version. catch (...) is handled by caller
at RedChannel::run().

This solves the following bug: when "new" Spice client (protocol version 2)
with given secure_port connects to "old" server which is not using the same
secure_port (or not using a secure_port at all), the client exits immediately.

In this scenario, the client first tries to use Spice protocol version 2 to
connect the unsecure port, and altough this fails due to version mismatch, it
tries to connect to the secure port with the same protocol version 2, which is
a wrong behavior, fails due to socket error 10061 (WSAECONNREFUSED -
Connection refused) and handled mistakenly by immediate exit, instead of
retrying with protocol version 1.
2010-12-07 14:34:22 +02:00
Alon Levy
9dfeeaefbe client/smartcard: add files to Makefile.am for make dist 2010-12-07 13:31:44 +02:00
Alon Levy
7e0a1dfa75 smartcard: configure option --enable-smartcard 2010-12-07 13:31:44 +02:00
Alon Levy
d99ec6c35b smartcard: server side (not enabled yet) 2010-12-07 13:31:42 +02:00
Alon Levy
757686384f smartcard: client: add keyboard shortcuts for remove/insert virtual card 2010-12-07 13:31:31 +02:00
Alon Levy
a2afcde061 smartcard: client side (not enabled yet) 2010-12-07 13:31:31 +02:00
Alon Levy
611e542c6c smartcard: add to spice.proto 2010-12-07 13:31:30 +02:00
Alon Levy
7461ee17cf server: add spice_server_char_device_remove_interface 2010-12-07 13:31:28 +02:00
Alon Levy
5220e0a706 server: print subtype when adding CHAR_DEVICE interfaces 2010-12-06 18:09:15 +02:00
Alon Levy
0ac9ca51f4 server: add static to spice_server_char_device_add_interface 2010-12-06 18:09:15 +02:00
Alon Levy
beca39aa87 spice codegen: fix copy-o, no such variable value 2010-12-06 18:09:15 +02:00
Alon Levy
b2f1b80a63 server: fix print text on vdagent interface addition 2010-12-06 18:09:14 +02:00