summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Update git.mk to upstream versionMarc-André Lureau2012-08-091-18/+30
| | | | wget https://raw.github.com/behdad/git.mk/master/git.mk
* build-sys: fix make distcheckMarc-André Lureau2012-07-162-2/+4
| | | | | - don't try to overwrite read-only enums.h - DIST_SUBDIRS is no longer needed
* support multiple monitors in single display channelAlon Levy2012-07-123-0/+32
| | | | | | See spice-protocol commit for details: da908f89b581fd4725da997fdaea209f8e6548f6 support multiple monitors on a single display channel
* spice-protocol/spice/enums.h: rebuild from spice.protoAlon Levy2012-07-081-1/+4
| | | | | | | | | | | | | | This file was hand generated until now, resulting in the wierd situation where it is different for spice-gtk and spice-server even though they both use the same spice-common and spice-protocol (or at least close) versions. This patch generates the enums.h files from spice-common. While that file is actually in the spice-protocol submodule, it cannot be generated from spice-protocol since it lacks access to spice.proto and spice_codegen.py. So in affect whenvever it will differ the spice-protocol module will become dirty and hence hopefully commited with the new enums.h. enums.h is generated from spice.proto is a superset of that generated from spice1.proto.
* common/log.h: add spice_infoAlon Levy2012-07-051-0/+6
|
* Fix a gcc warningMarc-André Lureau2012-06-301-3/+6
| | | | warning: suggest explicit braces to avoid ambiguous 'else'
* Fix invalid macro usageMarc-André Lureau2012-06-301-1/+1
|
* ssl: more verbose output when SSL verification failsChristophe Fergeau2012-06-251-9/+32
| | | | This should make SSL connection failures easier to diagnose.
* update spice-protocol for smartcard enums fixAlon Levy2012-06-221-0/+0
| | | | | d5d26cac49e0a0b6069f10eeeea3a49e4f4ed321 broke spice-common by depending on a local commit, fix it by depending on the now pushed commit.
* Makefile.am: now that spice_codegen.py is used add *.pyc to ignored files in ↵Alon Levy2012-06-201-0/+2
| | | | root
* Makefile.am: fix .gitignore not being generated in spice-protocol/spiceAlon Levy2012-06-201-1/+1
| | | | | | By adding spice-protocol to SUBDIRS configure and make will be called in it. Spotted by Marc-André.
* updated spice-protocol for smartcard enums non conflict with libcacardAlon Levy2012-06-201-0/+0
|
* smartcard: build fixes for spice serverAlon Levy2012-06-142-4/+4
| | | | | | | Define different enums that have a SPICE_ prefix to not conflict with same value enums from libcacard/vsccard_common.h, and continue to use the same SPICE_MSG_SMARTCARD_DATA and SPICE_MSGC_SMARTCARD_DATA enum that is used by the server and clients (spice-gtk, spicec) alike.
* python_modules/ptypes.py/EnumBaseType.c_enumname: add missing return to fix ↵Alon Levy2012-06-141-1/+1
| | | | | | | | | | broken enums generation Fixes the resulting enums.h from the invocation of: ./spice_codegen.py --generate-enums spice.proto spice-protocol/spice/enums.h Right now any enum will contain None as the enum members, with this fix it will contain the real enum members, i.e. SPICE_FOO.
* ssl-verify: add a bit of run-time checksMarc-André Lureau2012-05-171-0/+5
| | | | | Even if they are not public functions, those conditions can be reached in a invalid state.
* video streaming: add support for frames of different sizesYonit Halperin2012-05-024-6/+36
| | | | | | | | | rhbz #813826, #815426 Add SPICE_MSG_DISPLAY_STREAM_DATA_SIZED, for stream_data message that also contains the size and destination box of the data. The server can send such messages only to clients with SPICE_DISPLAY_CAP_SIZED_STREAM.
* region: add region_extentsYonit Halperin2012-05-022-0/+13
|
* rect: add rect_debugYonit Halperin2012-05-021-0/+11
|
* rect: add rect_get_areaYonit Halperin2012-05-021-0/+10
|
* rect: add rect_containsYonit Halperin2012-05-021-0/+11
|
* Set the clip type to reflect the on wire type.Jeremy White2012-04-261-1/+1
|
* Add missing struct field initializersDaniel P. Berrange2012-04-252-4/+6
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* move variable decleration to head of code blockAric Stewart2012-04-181-1/+1
| | | | Signed-off-by: Aric Stewart <aric@codeweavers.com>
* allow log.c to compile under MSVC++Aric Stewart2012-04-181-0/+12
|
* add padding member to SpiceMsgEmptyAric Stewart2012-04-181-0/+1
| | | | | | | | Empty structures are undefined in C, gcc handles them without issue assigning a size of 0. However MSVC++ generates a hard error (C2015) this allows messages.h to be included in c files compiled by MSVC++. Signed-off-by: Aric Stewart <aric@codeweavers.com>
* Add a return value to the default case in create_bitmap to satisfy VC++Aric Stewart2012-04-171-1/+1
|
* demarshall: add missing parens in BE read_xxx functionsChristophe Fergeau2012-04-061-1/+1
| | | | The missing parens causes build to fail on big-endian machines
* Update spice-protocol submoduleChristophe Fergeau2012-04-041-0/+0
| | | | We need the USB redirection controller messages
* configure.ac: lower required autoconf version to 2.63Hans de Goede2012-04-031-1/+1
| | | | | | So that one can autogen.sh on RHEL-6. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* update submodule spice-protocolYonit Halperin2012-04-031-0/+0
| | | | | | added the disable-effects and color-depth options to the controller Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
* Bypass certicate verification failure if PUBKEY check onlyMarc-André Lureau2012-03-301-0/+7
| | | | | | | During switch-host migration, only PUBKEY verification is required. Couldn't it just load the certificate again for the new session? perhaps, but that's they way the code used to work until I introduced a regression in spice commit d46f9d3f4e006d3bca9b99fac25169b17e7ac803.
* ssl-verify: improve logging report in case of errorsMarc-André Lureau2012-03-301-30/+40
| | | | Use the log.h system, and report a bit more information in the debug level
* Fix harmless warnings in quic_encode()Marc-André Lureau2012-03-281-3/+3
| | | | | | | | | | | | | | | | The quic code has been changed recently this way: - ASSERT(encoder->usr, line); + if (line == NULL) { + spice_warn_if_reached(); + return QUIC_ERROR; + } It appears that the only caller of quic_encode() gives a NULL line and rely on the more_lines() callback to return new lines instead. Adjust the code accordingly, adding a few more checks to verify the caller gives/returns correct values.
* build-sys: split client marshallers in seperate libMarc-André Lureau2012-03-251-13/+16
|
* build-sys: make it a seperately buildable spice-common libraryMarc-André Lureau2012-03-2216-29/+644
| | | | | | | - autotoolize - fix headers inclusion - generate gitignores - workaround serverSMARTCARD support with dirty hack...
* spice.proto: fix demarshaller crash with name messageMarc-André Lureau2012-03-211-1/+1
| | | | | | | | | | | | It turned out the demarshaller wasn't allocating enough space to memcpy the name. In order to take into account the size of a variable array, it needs to be marked with the @end tag so that the "extra_size" is added to the allocated memory. It would be nice if the demarshaller would somehow fail if this wasn't set explicitly, or do the right thing by default. @end the name so that demarshaller
* codegen: ifdef/endif function declaration tooMarc-André Lureau2012-03-211-0/+2
| | | | | | Compile out part that we are not supporting. In the future, we might want to declare a fake type and an empty function to keep API compatibility
* codegen: include headers locallyMarc-André Lureau2012-03-212-2/+3
|
* codegen: struct marshallers are not current function helperMarc-André Lureau2012-03-212-3/+4
| | | | | This solves the issue of struct_marshallers being included within the current ifdef/endif body, although they are independant functions.
* use new @ifdef directive for smartcard messagesChristophe Fergeau2012-03-201-1/+1
| | | | | | We don't want to conditionally compile the smartcard messages depending on whether USE_SMARTCARD is set or not, we can now use the @ifdef attribute for that.
* add smartcard bits to spice.protoChristophe Fergeau2012-03-201-4/+73
|
* spice_codegen: Always write a channels entry for an ifdef-ed channelHans de Goede2012-03-202-0/+11
| | | | | | | | | | | | | | | | | Before this patch, if a channel is defined conditionally in spice.proto (because it depends on external headers like the smartcard channel), spice_codegen would write an entry to the channels array in spice_get_*_channel_parser which would only take up a place in the array if the ifdef condition is true, thus moving up all other intializers one place when it is not true. This was causing issues (crashes) when building spice-gtk with the combination of usbredir support enabled and smartcard support disabled. This patch fixes this by adding #else { NULL, 0 }, to the generated code. Thanks to coolper chen <lixin.chen@saicocch.com> for reporting this! Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* handle @ifdef on messages and channelsChristophe Fergeau2012-03-202-7/+43
|
* allow attributes on channel elements in .proto filesChristophe Fergeau2012-03-202-2/+4
| | | | | | We want to be able to add an @ifdef annotation to optional messages For example, we want to compile in the smartcard messages only if libcacard is available
* add ifdef/endif methods to spice code generatorChristophe Fergeau2012-03-201-0/+12
| | | | | These methods will be needed to be able to make some fields optional in spice.proto
* fix copy & paste error in ptypes.pyChristophe Fergeau2012-03-201-3/+1
|
* Add SPICE_ATTR_NORETURN and use it for a few functionsMarc-André Lureau2012-03-202-1/+10
|
* Fix build with SPICE_DISABLE_ABORTMarc-André Lureau2012-03-201-0/+1
|
* Remove need for SPICE_CANVAS_INTERNALMarc-André Lureau2012-03-208-32/+0
| | | | Why is this useful?
* fix void* arithmeticMarc-André Lureau2012-03-201-1/+1
| | | | marshaller.c:528:50: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]