Alon Levy
2fcd35b073
server/red_channel: add more ack api
2011-03-02 17:27:51 +02:00
Alon Levy
766bb420bb
server: use red_channel_get_message_serial
2011-03-02 17:27:51 +02:00
Alon Levy
17b6a58f1e
server/red_channel (all): makes red_channel_reset_send_data private
...
ready the way for handling ack messages in RedChannel.
2011-03-02 17:27:51 +02:00
Alon Levy
cd99a0b4b3
server/red_worker: use red_channel
2011-03-02 17:27:50 +02:00
Alon Levy
ce3efca360
server/red_channe: make hold_item take a channel arg
2011-03-02 17:27:50 +02:00
Alon Levy
73858b93dc
server/red_worker: introduce red_peer_handle_outgoing and OutgoingHandler
...
From red_channel.
2011-03-02 17:27:50 +02:00
Alon Levy
29a7bcd596
server/red_worker: introduce common_channel_config_socket
2011-03-02 17:27:50 +02:00
Alon Levy
beba2c7206
server/red_worker: line width fix
2011-03-02 17:27:50 +02:00
Alon Levy
724348ce49
server/red_worker: don't push to NULL channel (called from device input)
2011-03-02 17:27:50 +02:00
Alon Levy
705254b399
server/red_worker: introduce red_channel_pipe_clear
...
No more common_release_pipe_item
2011-03-02 17:27:50 +02:00
Alon Levy
a0a9718423
server/red_worker: add red_channel_push
2011-03-02 17:27:50 +02:00
Alon Levy
111cf51103
server/red_worker: add send_item
2011-03-02 17:27:50 +02:00
Alon Levy
f7a99f858e
server/red_worker: red_channel renames
...
The renames are part of refactoring red_worker's RedChannel to reuse
red_channel.h's RedChannel at the end.
s/red_send_data/red_channel_send/
s/red_pipe_get/red_channel_pipe_get/
s/recive_data/incoming/
s/red_receive/red_channel_receive/
s/channel_handle_message/red_channel_handle_message/
s/channel_is_connected/red_channel_is_connected/
s/red_pipe_add_type/red_channel_pipe_add_type/
2011-03-02 17:27:49 +02:00
Alon Levy
b3ea0bec3d
server/red_tunnel_worker: use message_serial setter and getter
...
fixes breakage in --enable-tunnel compilation.
2011-03-02 17:27:49 +02:00
Hans de Goede
15b8252289
x11: Use _exit rather then exit on X errors (rhbz#680763)
...
This avoids us trying to restore the original resolution when we're fullscreen
and an X error happens. As restoring fullscreen is a bad idea then as this
involves making more X calls, which can get us stuck (in side an XLockDisplay
call for example).
2011-03-01 18:08:20 +02:00
Uri Lublin
e9ee6cf914
client: exit nicely for --controller with no SPICE_XPI_SOCKET (rhbz#644292)
...
When starting spicec with --controller, SPICE_XPI_SOCKET environment
variable must be defined so spicec and the controller can be connected.
2011-03-01 17:58:47 +02:00
Hans de Goede
0c88a60ecc
Fix keyb modifiers not syncing from client to client os (rhbz#679467)
2011-03-01 16:12:32 +02:00
Marc-André Lureau
8f9cbd19db
server: add SASL support
...
We introduce 2 public functions to integrate with the library user.
spice_server_set_sasl() - turn on SASL
spice_server_set_sasl_appname() - specify the name of the app (It is
used for where to find the default configuration file)
The patch for QEMU is on its way.
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
f4dddc50f0
server: add auth mechanism selection
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
4f983b2c9c
server: add reds_channel_dispose()
...
Try to have a common base dispose() method for channels. For now, it
just free the caps.
Make use of it in snd_worker, and in sync_write() - sync_write() is
going to have default caps later on.
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
09c01c9516
server: simplify and constify sync_write()
...
+ symplify, improving style of code using it.
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
37dbb8aec9
server: pull out reds_handle_link(), for future reuse
...
+ a couple of indent, style change
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
414e1de720
build: add --with-sasl
...
Using cyrus SASL library (same as gtk-vnc/qemu).
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
2bbb4fca0c
common: add SpiceBuffer - based on qemu-vnc Buffer
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
2ced8996c8
server/reds: make writev fallback more generic
...
We are going to reuse it for SASL/SSF encode write().
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
76dc27f08a
server: rename s/peer/stream
...
This is stylish change again. We are talking about a RedStream object,
so let's just name the variable "stream" everywhere, to avoid
confusion with a non existent RedPeer object.
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
1a4923c210
server/reds: remove the void* ctx field
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:35 +01:00
Marc-André Lureau
fc5d7f7625
server: use the new reds_stream_{read,write}
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-28 16:36:28 +01:00
Marc-André Lureau
f32503258f
server: remove cb_free, not needed anymore
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 18:26:19 +01:00
Marc-André Lureau
07d6dd6108
server: use reds_{link,stream}_free()
...
Be carefull removing the watch before, like __release_link
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 18:26:19 +01:00
Marc-André Lureau
fca602124d
server: use reds_stream_remove_watch() helper
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 18:26:18 +01:00
Marc-André Lureau
b79e7320de
server: add reds_stream_{read,write,free,remove_watch}()
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 18:26:15 +01:00
Marc-André Lureau
d47912241f
server: s/RedsStreamContext/RedsStream
...
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 16:55:22 +01:00
Marc-André Lureau
29be54f6d3
server/reds: remove unused readv
...
Let's not bother with it since nobody uses it, and it's not implemented for SSL anyway
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 16:55:22 +01:00
Marc-André Lureau
0e64e2d02c
build: make it silent
...
This patch make it easier to spot warnings in compilation. It should
work with older versions of automake that don't support silent rules.
If you want verbose build, make V=1.
Signed-off-by: Uri Lublin <uril@redhat.com>
https://bugs.freedesktop.org/show_bug.cgi?id=34795
2011-02-27 16:55:22 +01:00
Arnon Gilboa
a76fce5514
client/windows: use SPICE_PROTOCOL_DIR in project include dirs
...
instead of ..\..\..\spice-protocol. Relative path to another git tree is a bit
ugly, since it requires spice-protocol to be in a specific location.
SPICE_PROTOCOL_DIR should also be used in windows qxl and vdagent instead of
SPICE_COMMON_DIR, which is an old and confusing name, due to the common
directory in spice git repo.
2011-02-13 12:23:47 +02:00
Alon Levy
0f4a0aa07e
server/tests/basic_event_loop: fix bzero warning
2011-02-11 19:13:03 +02:00
Alon Levy
2f9d1e7715
tests/migrate.py: refactor to allow importing for later use
2011-02-11 19:13:03 +02:00
Hans de Goede
81f0f04ddc
Drop static_title.bmp from windows/Makefile.am
2011-02-11 15:36:43 +01:00
Alon Levy
0b687d9b23
server/red_worker: cursor_channel_send_item: don't downcast
2011-02-11 15:32:21 +02:00
Alon Levy
bb7cbceb97
server/red_worker: match channel_release_pipe_item_proc to red_channel
2011-02-11 15:32:21 +02:00
Alon Levy
53f5cf43ce
server/red_worker: introduce an outgoing struct around out_bytes_counter
2011-02-11 15:32:21 +02:00
Alon Levy
d7521edac1
server/red_worker: renames to add channel_ prefix and consistent sig
...
s/disconnect_channel_proc/channel_disconnect_proc/
s/release_item_proc/channel_release_pipe_item_proc/
s/handle_message_proc/channel_handle_parsed_proc/
Adds RedChannel* channel as first parameter to hold_pipe_item_proc
2011-02-11 15:32:21 +02:00
Alon Levy
f8d3345ef7
server/red_worker: split cursor_channel_send_item
...
Split from cursor_channel_push
2011-02-11 15:32:21 +02:00
Alon Levy
67b3bf20d0
server/red_worker: use red_channel begin_send_message
...
s/red_begin_send_message/red_channel_begin_send_message/
2011-02-11 15:32:21 +02:00
Alon Levy
7d53a51da0
server/red_worker: add red_channel_init_send_data
...
Changes semantics of send to always hold/release regardless of block, like
red_channel. A hold is just a reference count increment or nop.
2011-02-11 15:32:21 +02:00
Alon Levy
859aa15806
server/red_worker: split display_channel_send_item
...
Split it out of display_channel_push.
2011-02-11 15:32:21 +02:00
Alon Levy
f8262c80ad
server/red_worker: extract common_release_pipe_item from red_pipe_clear
2011-02-11 15:32:21 +02:00
Alon Levy
e588176dab
server/red_worker: use red_channel pipe add versions
...
s/red_pipe_add/red_channel_pipe_add/
s/red_pipe_add_after/red_channel_pipe_add_after/
2011-02-11 15:32:21 +02:00
Alon Levy
a0a958c77b
server/red_worker: shorten some lines using alias variables
2011-02-11 15:32:21 +02:00