Go to file
Marc-André Lureau 4a8383728a Use a log handler to modify abort() behaviour
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.
2012-03-15 02:01:07 +01:00
win Remove trailing whitespace from end of lines 2012-01-13 18:11:59 +02:00
.gitignore update gitignore 2012-03-14 20:26:33 +01:00
backtrace.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
backtrace.h common/backtrace: for mingw32 no pipe/wait_pid, just disable 2012-01-13 17:42:23 +02:00
bitops.h common/bitops: mingw32: reorder so __GNUC__ define is checked first 2012-01-13 17:42:23 +02:00
canvas_base.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
canvas_base.h Death to all TABs 2012-01-13 18:11:58 +02:00
canvas_utils.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
canvas_utils.h Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
draw.h mingw: use uintptr_t when converting a pointer to an int 2012-03-04 10:50:38 +02:00
gdi_canvas.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
gdi_canvas.h Death to all TABs 2012-01-13 18:11:58 +02:00
gl_canvas.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
gl_canvas.h Death to all TABs 2012-01-13 18:11:58 +02:00
gl_utils.h Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
glc.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
glc.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
lines.c Remove casts from void * with xrealloc() calls 2012-01-13 18:11:58 +02:00
lines.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
log.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
log.h Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
lz_common.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
lz_compress_tmpl.c Remove trailing whitespace from end of lines 2012-01-13 18:11:59 +02:00
lz_config.h common: use INLINE instead of inline 2011-05-12 15:21:08 +03:00
lz_decompress_tmpl.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
lz.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
lz.h Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
macros.h Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
Makefile.am Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
marshaller.c Add casts for compatibility purposes 2012-02-14 10:44:49 +02:00
marshaller.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
mem.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
mem.h mingw: don't try to redefine alloca 2012-03-04 10:50:39 +02:00
messages.h Send name & uuid to capable clients 2012-03-05 18:19:07 +01:00
mutex.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
ogl_ctx.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
ogl_ctx.h Remove trailing blank lines 2012-01-13 18:11:59 +02:00
pixman_utils.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
pixman_utils.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
quic_config.h Remove trailing blank lines 2012-01-13 18:11:59 +02:00
quic_family_tmpl.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
quic_rgb_tmpl.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
quic_tmpl.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
quic.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
quic.h Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
rect.h Remove trailing blank lines 2012-01-13 18:11:59 +02:00
region.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
region.h Remove trailing blank lines 2012-01-13 18:11:59 +02:00
ring.h Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
rop3.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
rop3.h Remove trailing blank lines 2012-01-13 18:11:59 +02:00
spice_common.h Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
ssl_verify.c common: fix ssl_verify windows build errors 2011-05-12 15:13:40 +03:00
ssl_verify.h mingw: workaround weird openssl build failure 2012-03-04 10:50:39 +02:00
sw_canvas.c Use a log handler to modify abort() behaviour 2012-03-15 02:01:07 +01:00
sw_canvas.h Death to all TABs 2012-01-13 18:11:58 +02:00