spice-common/common
Marc-André Lureau c1403ee6bf 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-20 15:30:23 +01:00
..
win Remove trailing whitespace from end of lines 2012-03-20 15:25:55 +01:00
.gitignore update gitignore 2012-03-20 15:30:23 +01:00
backtrace.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
backtrace.h common/backtrace: for mingw32 no pipe/wait_pid, just disable 2012-03-20 15:25:55 +01:00
bitops.h common/bitops: mingw32: reorder so __GNUC__ define is checked first 2012-03-20 15:25:55 +01:00
canvas_base.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
canvas_base.h Death to all TABs 2012-03-20 15:25:55 +01:00
canvas_utils.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
canvas_utils.h Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
draw.h mingw: use uintptr_t when converting a pointer to an int 2012-03-20 15:25:56 +01:00
gdi_canvas.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
gdi_canvas.h Death to all TABs 2012-03-20 15:25:55 +01:00
gl_canvas.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
gl_canvas.h Death to all TABs 2012-03-20 15:25:55 +01:00
gl_utils.h Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
glc.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
glc.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
lines.c Remove casts from void * with xrealloc() calls 2012-03-20 15:25:55 +01:00
lines.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
log.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
log.h Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
lz_common.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
lz_compress_tmpl.c Remove trailing whitespace from end of lines 2012-03-20 15:25:55 +01:00
lz_config.h common: use INLINE instead of inline 2012-03-20 15:25:53 +01:00
lz_decompress_tmpl.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
lz.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
lz.h Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
macros.h Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
Makefile.am Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
marshaller.c Add casts for compatibility purposes 2012-03-20 15:25:55 +01:00
marshaller.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
mem.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
mem.h mingw: don't try to redefine alloca 2012-03-20 15:25:56 +01:00
messages.h Send name & uuid to capable clients 2012-03-20 15:25:56 +01:00
mutex.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
ogl_ctx.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
ogl_ctx.h Remove trailing blank lines 2012-03-20 15:25:55 +01:00
pixman_utils.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
pixman_utils.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
quic_config.h Remove trailing blank lines 2012-03-20 15:25:55 +01:00
quic_family_tmpl.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
quic_rgb_tmpl.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
quic_tmpl.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
quic.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
quic.h Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
rect.h Remove trailing blank lines 2012-03-20 15:25:55 +01:00
region.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
region.h Remove trailing blank lines 2012-03-20 15:25:55 +01:00
ring.h Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
rop3.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
rop3.h Remove trailing blank lines 2012-03-20 15:25:55 +01:00
spice_common.h Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
ssl_verify.c common: fix ssl_verify windows build errors 2012-03-20 15:25:53 +01:00
ssl_verify.h mingw: workaround weird openssl build failure 2012-03-20 15:25:56 +01:00
sw_canvas.c Use a log handler to modify abort() behaviour 2012-03-20 15:30:23 +01:00
sw_canvas.h Death to all TABs 2012-03-20 15:25:55 +01:00