summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* spice server: try to be less brutal when changing res or when flushing the treeIzik Eidus2010-04-061-0/+5
| | | | | | | | | | | | The idea is that we can try to defer some stuff to be later send in the pipe if the pipe is not fulled yet, moreover we will then walk on the pipe using: red_clear_surface_drawables_from_pipe() and will try to remove the uneeded objects of this surface Still some room to improvment but later... Signed-off-by: Izik Eidus <ieidus@redhat.com>
* spice server: remove surface_id and surfaces_dest[3] from guest memIzik Eidus2010-04-061-74/+68
| | | | | | | | | Validate the surface_ids just once and keep them in safe memory area Make things simpler Signed-off-by: Izik Eidus <ieidus@redhat.com>
* spice: common: gdi_canvas fix gdi objects leakIzik Eidus2010-04-051-0/+1
| | | | | | | | | | | BitmapMask was used by the draw_text function as well therefore we need to mark from_surface = 0 if we want it to release the boject... (Was evil, took me few hours to understand from where the leak come...) Signed-off-by: Izik Eidus <ieidus@redhat.com>
* spice-server: when destroying a surface don`t send uneeded itemsIzik Eidus2010-04-051-1/+43
| | | | | | | Just skip the items of destroyed surface that are found in the pipe before we skip them, we check if they are needed by other users... Signed-off-by: Izik Eidus <ieidus@redhat.com>
* spice-server: remove glz objects related to surface when destroying a surfaceIzik Eidus2010-04-051-2/+32
| | | | | | | make the surface released faster in the release ring as well as clean unneeded reference into the glz Signed-off-by: Izik Eidus <ieidus@redhat.com>
* spice: reds: fix uninitlized pointerIzik Eidus2010-04-051-1/+1
| | | | Signed-off-by: Izik Eidus <ieidus@redhat.com>
* client: x11: fix a crash caused by a call to a destroyed window.Yonit Halperin2010-04-032-4/+10
| | | | | Happens when a focused window is destroyed without a focus out event, and a focus-in event occurs on another window.
* libspice: add off screens supportIzik Eidus2010-04-0322-648/+2129
| | | | Signed-off-by: Izik Eidus <ieidus@redhat.com>
* spice server: surface create/destroy protocol supportIzik Eidus2010-04-034-99/+282
| | | | | | | | | | | Now we can send commands from the server to the client to destroy surfaces (right now just the primary surface) Needed for offscreens support) Another patch`s on the way. Signed-off-by: Izik Eidus <ieidus@redhat.com>
* Rename .so spice-server.soAlexander Larsson2010-03-242-8/+8
| | | | | | | Also change include dir to "spice-server" for consistency. libspice.so conflicted with the tclspice package, and its also a clarification for when we create a spice client library.
* Add spice_strndupAlexander Larsson2010-03-242-0/+19
| | | | Also, make str(n)dup handle NULL correctly
* Get rid of more out-of-memory checksAlexander Larsson2010-03-241-47/+9
| | | | We already check this in spice_malloc now
* spice: server: Being more permissive in video identificationYonit Halperin2010-03-241-17/+29
| | | | | | In 'filter' video streaming mode, use a more permissive threshold for distinguishing 'realistic' streams from 'textaul'/'artificial' streams. The previous threshold classified streams that were scaled on the guest as artificial and thus they were not recoginized as videos.
* spice: client: fix handling of top down images in video streamsAlon Levy2010-03-241-9/+5
| | | | Top down streams arrive from x11-qxl driver.
* spice: server: avoid video streaming of small imagesYonit Halperin2010-03-241-0/+12
| | | | | | I added a lower limit to the size of images that are being streamed. The limit is only active in "filter" video streaming mode. This will prevent blurry animated icons.
* rename spice.pc to spice-server.pcAlexander Larsson2010-03-243-3/+3
|
* configure.ac: client: replace $(top_srcdir) in x11/Makefile.am (subdir config)Alexander Larsson2010-03-241-89/+92
| | | | | | | | Replace all "$(top_srcdir)/common" with "$(SPICE_COMMON_DIR)" and all "$(top_srcdir)/client" with custom "$(CLIENTDIR)" This would (after following patches) enables building the client from either spice/ (top directory) or spice/client.
* configure.ac: define SPICE_COMMON_SRCDIR, to be used by Makefile.am (subdir ↵Uri Lublin2010-03-241-2/+5
| | | | | | | | config) Note that SPICE_COMMON_SRCDIR may be overwritten by configure.ac.shared Signed-off-by: Uri Lublin <uril@redhat.com>
* autogen: exit upon errors (subdir config)Uri Lublin2010-03-241-0/+2
| | | | Signed-off-by: Uri Lublin <uril@redhat.com>
* autogen: add possibly missing AUTOMAKE definition (subdir config)Uri Lublin2010-03-241-0/+1
| | | | Signed-off-by: Uri Lublin <uril@redhat.com>
* autogen: remove copied code - srcdir and ORIGDIR (subdir config)Uri Lublin2010-03-241-7/+1
| | | | Signed-off-by: Uri Lublin <uril@redhat.com>
* Fix uninitilized memory read in stroke_fill_spans()Alexander Larsson2010-03-182-2/+10
| | | | y2 was not initialized
* new libspice api: spice_server_add_get_{sock, peer}_info()Gerd Hoffmann2010-03-182-0/+28
|
* new libspice api: spice_server_add_renderer()Gerd Hoffmann2010-03-182-1/+16
|
* client: add command line support for ciphers, ca file, and host certificate ↵Yonit Halperin2010-03-187-10/+116
| | | | subject
* Default opt flags to -O2Alexander Larsson2010-03-171-2/+2
| | | | | | | | | gcc -O3 has some code generation failures due to a combination of unaligned (packed) structs and vectorization that can cause a crash in canvas_localize_palette(). And its just safer to use -O2, which is the standard "trusted" optimization flags.
* Use nearest scaling for DRAW_ALPHA_BLEND since this is what win32 needsAlexander Larsson2010-03-171-1/+1
| | | | | DrvAlphaBlend is the only current user of DRAW_ALPHA_BLEND, and its defined to do nearest (COLORONCOLOR) scaling, not bilinear.
* Fix up empty region checks in canvas operationsAlexander Larsson2010-03-172-10/+10
| | | | | | | We rely on not passing on empty rects to the drawing operations by checking for empty regions and exiting early. However the checks were wrongly using pixman_region32_n_rects(region) == 0, whereas we should be using pixman_region32_not_empty().
* Explicitly depend on various X libraries, and -pthreadSøren Sandmann Pedersen2010-03-112-2/+11
| | | | | | | | In Fedora 13, the linker doesn't pull in DT_NEEDED libraries anymore, so we have to list the things that we depend on explicitly. This affects several X extension libraries, and also the pthread library.
* Use spice allocator in server/Alexander Larsson2010-03-119-328/+102
|
* Use the spice allocator in common/Alexander Larsson2010-03-119-116/+62
|
* New memory allocators that exit on OOM and handle multiplication overflowAlexander Larsson2010-03-117-0/+263
| | | | | | | | | Every place that does a regular malloc/calloc and aborts on failure should use spice_malloc/spice_mallo0 instead, which is leaner and cleaner. Allocations of dynamically sized arrays can use g_malloc_n or g_new etc which correctly handle multiplication overflow if some of the arguments are not trusted.
* Define __STDC_LIMIT_MACROS for c++ code to get SIZE_MAXAlexander Larsson2010-03-101-0/+1
| | | | | We need SIZE_MAX for the malloc overflow code, and its not defined in C++ unless __STDC_LIMIT_MACROS is defined.
* Define GL_GLEXT_PROTOTYPES in CFLAGS not in random places in the sourceAlexander Larsson2010-03-109-11/+2
|
* Revert "Fix possible quic_usr_more_lines_unstable() crash"Alexander Larsson2010-03-101-8/+2
| | | | | | This reverts commit 34e6a0a0d539fb49a03ec01bf11be505c88fcaa1. Turns out this wasn't needed and the crash was due to other changes.
* Update gdi canvas wrt latest changesAlexander Larsson2010-03-091-2/+2
| | | | ALIGN -> SPICE_ALIGN
* new libspice api: add spice_server_set_mouse_absolute()Gerd Hoffmann2010-03-092-0/+11
|
* new libspice api: add spice_server_set_channel_security()Gerd Hoffmann2010-03-092-0/+17
|
* new libspice api: make spice_channel_name_t part of the public api.Gerd Hoffmann2010-03-092-33/+35
|
* new libspice api: add spice_server_{get, set}_image_compression()Gerd Hoffmann2010-03-092-0/+18
| | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* new libspice api: make image_compression_t part of the public api.Gerd Hoffmann2010-03-096-56/+61
|
* new libspice api: configure listen addr, add ipv6 supporGerd Hoffmann2010-03-092-39/+74
|
* new libspice api: configure tlsGerd Hoffmann2010-03-092-2/+48
|
* new libspice api: zap function pointer indirection.Gerd Hoffmann2010-03-092-9/+40
| | | | | Make register_*_notifier calls optional, long term they should go away entriely. Add direct library calls as replacement.
* new libspice api: configure port + ticketGerd Hoffmann2010-03-092-0/+54
| | | | | | | | | Add new functions to configure spice port and ticketing. Yes, this is incomplete, it includes just the most important bits to get something up'n'running. These functions are supposed to replace both spice_parse_args() and the monitor interaction via qterm interface.
* new libspice api: alloc, initi and free spice server instances.Gerd Hoffmann2010-03-092-6/+40
| | | | | | The implementation can't handle multiple spice server instances at the same time right now. The API allows this though, so if we fixup the implementation some day we don't have to change the API.
* Fix possible quic_usr_more_lines_unstable() crashGerd Hoffmann2010-03-091-2/+8
| | | | | | | | quic_usr_more_lines_unstable() assumes it can allways copy a complete scanline. Well, it can't. In case the screen rectangle which needs updating has an x-offset greater than zero *and* includes the last scanline of the screen it will overflow the source buffer by x-offset * bytes-per-pixel bytes.
* Use macros from <spice/macros.h> rather than duplicate themAlexander Larsson2010-03-0923-219/+128
|
* Move draw_rop3 to canvas_baseAlexander Larsson2010-03-082-96/+94
|
* Move canvas_draw_stroke to canvas_baseAlexander Larsson2010-03-082-455/+450
|