summaryrefslogtreecommitdiffstats
path: root/client/debug.h
diff options
context:
space:
mode:
authorIzik Eidus <ieidus@redhat.com>2010-04-03 05:34:48 +0300
committerIzik Eidus <ieidus@redhat.com>2010-04-03 05:34:48 +0300
commit27a8ec1ef476a13734c33f01653af22cc0432800 (patch)
tree6c88d3526cd5d71f24eaf519e46e5899f8b1ee65 /client/debug.h
parente9b5846704a65a8e8b59bea65e4711f5e137d2b6 (diff)
downloadspice-27a8ec1ef476a13734c33f01653af22cc0432800.tar.gz
spice-27a8ec1ef476a13734c33f01653af22cc0432800.tar.xz
spice-27a8ec1ef476a13734c33f01653af22cc0432800.zip
spice server: surface create/destroy protocol support
Now we can send commands from the server to the client to destroy surfaces (right now just the primary surface) Needed for offscreens support) Another patch`s on the way. Signed-off-by: Izik Eidus <ieidus@redhat.com>
Diffstat (limited to 'client/debug.h')
-rw-r--r--client/debug.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/debug.h b/client/debug.h
index 1c6f6a42..ce8fc98e 100644
--- a/client/debug.h
+++ b/client/debug.h
@@ -92,6 +92,11 @@ LOG4CPP_LOGGER("spice")
ON_PANIC(); \
}
+#define PANIC_ON(x) if ((x)) { \
+ LOG(FATAL, "%s panic %s\n", __FUNCTION__, #x); \
+ ON_PANIC(); \
+}
+
#define DBGLEVEL 1000
#define DBG(level, format, ...) { \