summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* build: replace INCLUDES with AM_CPPFLAGSMarc-André Lureau2012-03-201-1/+1
| | | | Fix warning `INCLUDES' is the old name for `AM_CPPFLAGS' (or `*_CPPFLAGS')
* Add missing includes & make some functions staticDaniel P. Berrange2012-03-202-3/+3
| | | | | | | | | A number of functions were used without prior declaration. In some cases this was due to missing include files. In other cases the functions should have just been static. Ideally this would allow -Wmissing-declarations to be enabled, but the files generated by spice_codegen.py will still trip up on this.
* Add printf format annotations to all '...' functionsDaniel P. Berrange2012-03-206-14/+16
| | | | | | | | | | To allow the compile to detect incorrect printf formats, any var-args function should have a format annotation * common/macros.h: Helper to define ATTR_PRINTF for code which can't depend on glib * common/canvas_base.c, common/lz.h, common/macros.h: Annotate some var-args methods
* Fix some integer range checks which always evaluate falseDaniel P. Berrange2012-03-201-2/+2
| | | | | | | | | There are some integer range checks which always evaluate false due to use of unsigned integer types. One of these would prevent detection of encoding errors from celt. The others are simply no-ops. * common/pixman_utils.c: SpiceROP is an enum & thus unsigned
* Avoid warnings about empty conditional statement bodiesDaniel P. Berrange2012-03-201-6/+9
| | | | | | | | | | | | Add extra {} braces around if/else statements which only call SPICE_DEBUG to avoid: ../common/ssl_verify.c: In function 'verify_pubkey': ../common/ssl_verify.c:87:50: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] ../common/ssl_verify.c: In function 'verify_hostname': ../common/ssl_verify.c:254:53: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] ../common/ssl_verify.c: In function 'verify_subject': ../common/ssl_verify.c:381:41: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
* build: remove 'win' directoryMarc-André Lureau2012-03-2013-1643/+0
| | | | Let's use the only included file directly instead.
* messages.h: add smartcard bitsChristophe Fergeau2012-03-201-0/+22
|
* Add client_marshallers.h client_demarshallers.h from spice-gtkMarc-André Lureau2012-03-203-0/+104
| | | | spice-gtk uses a more up to date version of client/marshallers.h and client/demarshallers.h
* Use SPICE_{BEGIN,END}_DECLSMarc-André Lureau2012-03-2025-154/+93
|
* add const to arrays in marshalling functionsChristophe Fergeau2012-03-202-2/+2
|
* ssl_verify: include <string.h>Christophe Fergeau2012-03-201-0/+1
| | | | | ssl_verify.c is using memcmp which comes from string.h, this was breaking compilation with -Werror -Wall on Mac OS X
* ssl_verify: comment X509_NAME undefMarc-André Lureau2012-03-201-0/+3
|
* Use a log handler to modify abort() behaviourMarc-André Lureau2012-03-2028-553/+820
| | | | | | | | | | | | | | | Be more library friendly, by not aborting in library errors. spice_common now includes a proper log handler that will abort by default when reaching a warning. SPICE_ABORT_LEVEL can be changed to modify run-time abort level. SPICE_DEBUG_LEVEL can be changed to be more verbose. By default, only log level more importants than WARNING. Only memory-related functions are allowed to abort(), since they are not recoverable errors in the library.
* update gitignoreMarc-André Lureau2012-03-201-0/+3
|
* common: remove unnecessary outdated c++ debugMarc-André Lureau2012-03-201-3/+0
|
* common: ring.h should include stddef for NULL usageMarc-André Lureau2012-03-201-0/+1
|
* Send name & uuid to capable clientsbefore-split2Marc-André Lureau2012-03-202-0/+19
| | | | | | | | | Add spice_server_set_name() and spice_server_set_uuid() that allows the client to identify a Spice server (useful to associate settings with a particular server) The SPICE_MSG_MAIN_NAME and SPICE_MSG_MAIN_UUID messages are only sent to capable clients, announcing SPICE_MAIN_CAP_NAME_AND_UUID.
* demarshal: fixed-size array are missing __nelementsMarc-André Lureau2012-03-201-1/+1
| | | | | | A message with a fixed-size array, such as uint8 uuid[16] will generate an invalid code, missing the __nelements variable. Make sure that variable is defined.
* mingw: workaround weird openssl build failureChristophe Fergeau2012-03-201-0/+1
| | | | | | If X509_NAME isn't undefined before including x509v3.h, very weird compilation error occurs. It seems to be caused by duplicate definitions for this symbols coming from wincrypto.h
* mingw: don't try to redefine allocaChristophe Fergeau2012-03-201-0/+2
| | | | | mingw already has a #define alloca __builtin_alloca so trying to redefine it triggers a warning.
* mingw: use uintptr_t when converting a pointer to an intChristophe Fergeau2012-03-202-5/+5
| | | | | | win64 uses 32 bit long, so we cannot use a long to hold a 64 bit pointer. Thankfully, there's a [u]intptr_t type available exactly for these uses.
* Remove extra '\n' from red_printf() callsDan McGee2012-03-201-1/+1
| | | | | | | red_printf() takes care of adding a newline to all messages; remove the extra newline from all messages and macros that were doubling them up. Signed-off-by: Dan McGee <dpmcgee@gmail.com>
* Add casts for compatibility purposesDan McGee2012-03-201-1/+1
| | | | | | | | | | | Some non-Linux platforms return a (caddr_t *) result for the return value of mmap(), which is very unfortunate. Add a (void *) cast to explicitly avoid the warning when compiling with -Werror. For the IO vector related stuff, signed vs. unsigned comes into play so adding a (void *) cast here is technically correct for all platforms. Signed-off-by: Dan McGee <dpmcgee@gmail.com>
* Update .gitignore with a few more generated filesDan McGee2012-03-201-0/+1
| | | | Signed-off-by: Dan McGee <dpmcgee@gmail.com>
* Remove trailing whitespace from end of linesDaniel P. Berrange2012-03-2010-38/+37
|
* Add missing includes of config.hDaniel P. Berrange2012-03-201-1/+1
| | | | Not all files were including config.h
* Remove unused backup fileDaniel P. Berrange2012-03-201-1413/+0
| | | | | The common/glc.c.save file appears to be a obsolete copy of glc.c
* Remove trailing blank linesDaniel P. Berrange2012-03-2021-21/+0
| | | | Remove any blank lines at the end of all source files
* Fix up copyright decl to always use 'Copyright (C) Red Hat, Inc.'Daniel P. Berrange2012-03-204-4/+4
| | | | A couple of files were missing '(C)' in the copyright header
* Remove casts from void * with xrealloc() callsDaniel P. Berrange2012-03-201-12/+10
| | | | | The xrealloc() function returns void*, so the return value never needs to be cast
* Remove useless if() before free()Daniel P. Berrange2012-03-207-31/+12
| | | | | The free() function allows NULL to be passed in, so any code which puts a if() before free() is wasting time
* Death to all TABsDaniel P. Berrange2012-03-207-90/+90
| | | | | | Source files should all use spaces instead of tabs for indentation. Update the few files not already in compliance
* common/ssl_verify: special case to WIN32 that isn't MINGW32Alon Levy2012-03-201-1/+1
|
* common/bitops: mingw32: reorder so __GNUC__ define is checked firstAlon Levy2012-03-201-14/+14
|
* common/backtrace: for mingw32 no pipe/wait_pid, just disableAlon Levy2012-03-202-4/+23
|
* client/windows: fix several assigned but not used errorsAlon Levy2012-03-201-15/+9
|
* client/common: mingw32: workaround HAVE_STDLIB_H redefined in jconfig.hAlon Levy2012-03-202-0/+6
|
* spice.proto: add SPICE_MSG_LIST to base channelYonit Halperin2012-03-201-0/+1
|
* codegen: Fix enums.h generationHans de Goede2012-03-202-2/+7
| | | | | | | | | | | | | With the new usbredir code we have the new concept of the abstract / generic spicevmc channel type (which just tunnels data from a qemu chardev), and we've the usbredir channel, which is the only current user of this. This was reflected in the protocols enum in spice-protocol.h by a manual edit done by me, my bad. This patch teaches spice.proto about the relation between the abstract spicevmc channel and the usbredir channel and modifies codegen to deal with this. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* server: add prefix argument to red_printf_debugAlon Levy2012-03-201-2/+2
| | | | | printed before function name. No central location for prefixes. Adding "WORKER", "ASYNC", "MAIN" since those were the current users.
* common/spice_common.h: red_printf_debug: fix wrong signAlon Levy2012-03-201-1/+1
|
* spice.proto: add SPICE_MSG_MAIN_MIGRATE_END & SPICE_MSGC_MAIN_MIGRATE_ENDYonit Halperin2012-03-201-0/+4
| | | | (cherry picked from commit cfbd07710562e522179ae5a7085a789489a821bb branch 0.8)
* server,proto: tell the clients to connect to the migration target before ↵Yonit Halperin2012-03-202-3/+4
| | | | | | | | | | | | | | | migraton starts (1) send SPICE_MSG_MAIN_MIGRATE_BEGIN upon spice_server_migrate_connect (to all the clients that support it) (2) wait for SPICE_MSGC_MAIN_MIGRATE_(CONNECTED|CONNECT_ERROR) from all the relevant clients, or a timeout, in order to complete client_migrate_info monitor command (cherry picked from commit 5560c56ef05c74da5e0e0825dc1f134019593cad branch 0.8; Was modified to support the separation of main channel from reds, and multiple clients) Conflicts: server/reds.c
* server: fix function prototypesChristophe Fergeau2012-03-202-5/+5
| | | | | | | | Several functions in server/ were not specifying an argument list, ie they were declared as void foo(); When compiling with -Wstrict-prototypes, this leads to: test_playback.c:93:5: erreur: function declaration isn’t a prototype [-Werror=strict-prototypes]
* add C++ guards to backtrace.hChristophe Fergeau2012-03-201-0/+6
| | | | | Without these, spice_backtrace() can't be used from the C++ client code.
* fix memory leak in error pathChristophe Fergeau2012-03-201-1/+2
| | | | Issue found by the Coverity scanner
* spice.proto: add comment for origin of STYLED and START_WITH_GAPAlon Levy2012-03-201-0/+5
|
* common: introduce red_printf_debugAlon Levy2012-03-201-0/+10
|
* common/ring: RING_FOREACH_SAFE: use shorter version from qemuAlon Levy2012-03-201-5/+3
|
* server: Add a usbredir channelHans de Goede2012-03-201-0/+8
|