summaryrefslogtreecommitdiffstats
path: root/common/spice_common.h
Commit message (Collapse)AuthorAgeFilesLines
* server: add prefix argument to red_printf_debugAlon Levy2011-11-071-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 Levy2011-11-071-1/+1
|
* common: introduce red_printf_debugAlon Levy2011-08-231-0/+10
|
* common: add backtrace via gstack or glibc backtraceAlon Levy2011-07-191-0/+2
| | | | | | Add a backtrace printing function copied from xserver os/backtrace.c that uses gstack, and if that isn't found then glibc's backtrace. Used in ASSERT, tested on F15.
* move get_time_stamp to main_channel.cChristophe Fergeau2011-05-031-7/+0
| | | | | There is only one user of get_time_stamp from spice_common.h so it's not really useful to keep it there.
* use standard do { } while (0) for spice_common.h macrosChristophe Fergeau2011-05-031-11/+11
|
* move WARN and WARN_ONCE to spice_common.hChristophe Fergeau2011-05-031-0/+2
|
* common,server: use ASSERT from spice_common.hChristophe Fergeau2011-05-031-0/+1
| | | | | | | spice_common.h provides an ASSERT macro, no need to duplicate it in many places. For now client/debug.h keeps its own copy since debug.h and spice_common.h have clashes on other macros which are trickier to unify.
* use foo(void) instead of foo() in prototypesChristophe Fergeau2011-05-021-1/+1
| | | | | In C, the latter isn't a prototype for a function with no arg, but declares a function with an undefined number of args.
* server/common: introduce common/spice_common.hAlon Levy2011-03-021-0/+70
move all the ASSERT/PANIC/PANIC_ON/red_error/red_printf* macros to a common file to be used with ring.h that is going to be used externally (by spice-gtk).