Commit Graph

50 Commits

Author SHA1 Message Date
Uri Lublin
a85232b0b9 spice: Adding README to all subdirs
Also adding some information to toplevel (spice) README
And do not touch README when running autogen.sh

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-02-01 14:26:03 +02:00
Yaniv Kamay
e02374c544 change version to 0.4.2 2010-01-10 23:30:40 +02:00
Uri Lublin
ea8fce17e2 spice: config: Add DISTRIBUTION and PATCHID to configure summary
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 23:28:42 +02:00
Uri Lublin
a311054422 spice: add COPYING file to all subdirs (subdir config)
GPL2

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 21:47:11 +02:00
Yaniv Kamay
54535ba04e add patch id and distro name to version string 2010-01-10 20:16:32 +02:00
Uri Lublin
236b692a78 spice: autogen.sh: call autogen.sh.shared separately from subdirs (subdir config)
Move original autogen.sh to autogen.sh.shared
Create links in each subdir (subdir/autogen.sh --> ../autogem.sh.shared)
Make new autogen.sh which simply
  1. cd subdir && ./autogen.sh
  2. run autogen.sh.shared for the current dir (spice)
Update all Makefile.am accordingly (dist-hook).

Signed-off-by: Yaniv Kamay <ykamay@rehdat.com>
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:46:45 +02:00
Uri Lublin
cf60cddbdd spice: configure: mv ffmpeg_inc.h.in from common/ to client/
Moved  common/win/ffmpeg_inc.h      to   client/windows/
Moved  common/linux/ffmpeg_inc.h.in to   client/x11/
Copied common/linux/ffmpeg_inc.h.in to   server/
Update *configure.ac and */Makefile.am accordingly (* is
for {common,server,client}

Signed-off-by: Yaniv Kamay <ykamay@rehdat.com>
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:46:36 +02:00
Uri Lublin
4569295e5c client/x11/Makefile.am: make CLIENT_DIR $(top_srcdir) instead of ..
Enables out-of-directory configure & compile

Signed-off-by: Yaniv Kamay <ykamay@rehdat.com>
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:46:27 +02:00
Uri Lublin
ecc4e7d2cf spice: subdirs: support ./autogen.sh in a "make dist" tarball (subdir config)
Each subdir (common, client and server) can "make dist".
This commit adds configure.ac.shared and autogen.sh to the tar file.
Above files are copied from .. (spice/ directory)

Also added configure.ac.shared (which is not part of "distribution" tarball)
that only imports ../configure.ac.shared such that ./autogen.sh still
works (on "git directories").

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:46:19 +02:00
Uri Lublin
bfba2971bc spice: client: Makefile.am: add missing files to file-list (subdir config)
The follwing files exist in client directory but not in RED_COMMON_SRCS,
thus they are not part of distribution tarball (make dist).
Adding them fixes building the spice client out of a distribution tarball.

Those files are:
icon.h
process_loop.h
red_gdi_canvas.cpp
red_gdi_canvas.h
red_pixmap_gdi.h
gdi_canvas.cpp

Similarly, the following files were added to spicec_SOURCES in
client/x11/Makefile.am:
event_sources_p.h
2010-01-10 19:45:15 +02:00
Uri Lublin
203c85c4ff client: remove '../common' from #include directive (subdir config)
We compile with -I$(COMMON_DIR) (which currently is ../common), so there is
no need for that.

Later we would like to be able to have a different COMMON_DIR.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:45:08 +02:00
Uri Lublin
f82bb9cc0c Add client/configure.ac (subdir config)
Enables running ./configure in client/ (as well as autoreconf or autogen.sh)

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:44:51 +02:00
Uri Lublin
ae9a42d6c4 configure.ac: client: replace $(top_srcdir) in x11/Makefile.am (subdir config)
Replace all "$(top_srcdir)/common" with "$(SPICE_COMMON_DIR)"
and     all "$(top_srcdir)/client" with ".." (relative to x11)

This would (after following patches) enables building the client from
either spice/ (top directory) or spice/client.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:44:34 +02:00
Yaniv Kamay
6d9026c4b4 client: add Platform::term_printf
Platform::term_printf is a variant of printf that
on windows dynamically opens console in order to
have visible output during command line processing.
2010-01-10 13:41:08 +02:00
Yaniv Kamay
0bd3b58bc9 client: fix logger init mix-up
enable log rotate in case RED_DEBUG is not defined
and disable log rotate in case RED_DEBUG is defined
2010-01-10 13:40:53 +02:00
Yaniv Kamay
db5375a5f8 client: move log file to spicec appdata dir 2010-01-10 13:40:31 +02:00
Arnon Gilboa
15fff174eb spice: menu additons
-functions: set_name, remove_command, remove_sub, clear
-item state & enum
-add state support in RedWindow insert_command & insert_menu
2010-01-07 13:09:26 +02:00
Arnon Gilboa
185fe4777c spice: add missing break 2010-01-06 17:23:47 +02:00
Yonit Halperin
e38a619007 server,client: server authentication for secured channels. #527411 #549673.
3 available mechanisms:  by public key, by host name, and by certificate subject name.
    In the former method, chain of trust verification is not performed.
    The CA certificate files are looked for under <spice-config-dir>/spice_truststore.pem

    windows <spice-config-dir>=%APPDATA%\spicec\
    linux <spice-config-dir>=$HOME/.spicec
2010-01-06 16:06:46 +02:00
Yaniv Kamay
68fa759dc4 client: use spice icon instead-of solidice icon 2010-01-04 21:18:57 +02:00
Yaniv Kamay
fc5c668f46 client: restore gl_fbo and gl_pbuff canavas type options 2010-01-03 18:16:14 +02:00
Arnon Gilboa
4202ee3945 spice: position mouse in primary monitor center after full screen toggle
-move _focused & _pointer_in_window from RedWindow to RedWindow_p's
-move shadow focus & cursor handling to sync()
-add reset_cursor_pos() to Platform
-Monitor set_mode()/restore() use virtual do_set_mode()/do_restore()
2010-01-03 17:55:32 +02:00
Arnon Gilboa
8ce343daa0 spice: on_activate_screen generates on_key_down for any modifier pressed
-call SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc...) only once, in RedWindow::init()
-add Application::cleanup_globals() & RedWindow::cleanup()
-cleanup LowLevelKeyboardProc()
2010-01-03 17:51:17 +02:00
Yaniv Kamay
87f35921c3 win client: change avcodec version to 51 2010-01-03 17:50:36 +02:00
Yaniv Kamay
1c87b17283 client: new static title image 2010-01-03 17:48:09 +02:00
Izik Eidus
6333e034a3 spice: fix ssl compiling errors
(openssl api was changed, so lets have ifdef to compile in all cases)

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-03 17:47:13 +02:00
Izik Eidus
6b065f80de spice: client: add checks to see if it is safe to use XShem.
Beacuse that XShem internal checks wont fail when using the spice client
from remote, we are adding check on the socket family to see if it is
unix domain socket and fail in case it is not.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-03 17:47:04 +02:00
Yaniv Kamay
173ff6fe0f add missing alt_image.c to Makefile.am 2010-01-03 17:37:50 +02:00
Arnon Gilboa
03f23b870e spice: pass modifiers stroke events down the hook chain 2010-01-03 17:37:33 +02:00
Arnon Gilboa
702b92cdb8 spice: add [pid:tid] to log lines 2010-01-03 17:37:20 +02:00
Arnon Gilboa
18270e0235 spice: on toggle_full_screen, generate on_key_down if shift is still pressed 2010-01-03 17:37:05 +02:00
Arnon Gilboa
ba04ac69c6 spice: show splash screen on disconnect only on debug 2010-01-03 17:36:49 +02:00
Yaniv Kamay
6031cb8276 client: change jitter buffer size to 300ms 2010-01-03 17:36:17 +02:00
Yonit Halperin
0d93ce342c spice client: sticky Alt activation when holding an Alt key
Additional changes that were required for the feature:
    1) focusing on the pointed window in full screen mode
    2) In X11 - handling events that occur during keyboard ungrabbing
    3) In X11 - handling Leave/Enter Notify events that occur during keyboard grabbing/ungrabbing
    4) In X11 - fix for focus events that are handled in the wrong order (happens when
       focus events occur during grabbing the keyboard)
    5) In X11 - ignoring key release events during key holding
    6) In Windows - synchronizing keyboard release events that occured during a modal loop
2010-01-03 17:34:26 +02:00
Izik Eidus
f046cd839d spice: client: gl: fix glx support.
Just move around touch_context and untouch_context to be at the right
places.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-03 17:21:41 +02:00
Izik Eidus
95a9bcb917 client: fix colormap handling.
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-03 17:21:27 +02:00
Yonit Halperin
eb85aae81f spice client: calling the timers during modal loop in Windows 2010-01-03 17:21:06 +02:00
Yonit Halperin
74db5629bd spice client: fixed missing AutoRef 2010-01-03 17:19:59 +02:00
Yonit Halperin
9b12f7ca8c spice client: remove timer interface from platform - use Application (via ProcessLoop interface). 2010-01-03 17:19:35 +02:00
Yonit Halperin
71567dabe3 spice client: cosmetic changes 2010-01-03 17:19:03 +02:00
Yonit Halperin
219105794b spice client: Transfer all channels run loop from EventsLoop class to ProcessLoop class 2010-01-03 17:18:37 +02:00
Yonit Halperin
78f8d4b9e8 spice client: creating a general process loop.
The process loop is responsible for: 1) waiting for events 2) timers 3) events queue for
actions that should be performed in the context of the thread and are pushed from other threads.
The benefits:
1) remove duplicity: till now, there was one implementaion of events loop for the channels and
another one for the main thread.
2) timers can be executed on each thread and not only on the main thread.
3) events can be pushed to each thread and not only to the main thread.
In this commit, only the main thread was modified to use the new process loop.
2010-01-03 17:17:06 +02:00
Yaniv Kamay
83efc81f30 move to intermediate version 0.4.1 2009-12-30 21:34:50 +02:00
Yaniv Kamay
a15be0e2c4 change version to 0.4.0 2009-10-27 14:41:31 +02:00
Yaniv Kamay
bac204a1e4 fix bad initialization of XDisplay in case crt have more then one output 2009-10-27 13:34:36 +02:00
Yaniv Kamay
402a201ce6 fix build on Debian 2009-10-27 13:29:39 +02:00
Yaniv Kamay
7498ef3b66 remove ogl canvas option from command line 2009-10-25 15:30:05 +02:00
Izik Eidus
916255044f spice: move create and destroy of the canvas to new place
work around for xlib threaded bugs

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2009-10-25 14:34:04 +02:00
Izik Eidus
85bcce8331 spice xclient: move xsync() to be at the right place.
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2009-10-25 13:52:18 +02:00
Yaniv Kamay
c1b79eb035 fresh start 2009-10-14 15:06:41 +02:00