diff options
author | Izik Eidus <ieidus@redhat.com> | 2010-04-03 05:34:48 +0300 |
---|---|---|
committer | Izik Eidus <ieidus@redhat.com> | 2010-04-03 05:34:48 +0300 |
commit | 27a8ec1ef476a13734c33f01653af22cc0432800 (patch) | |
tree | 6c88d3526cd5d71f24eaf519e46e5899f8b1ee65 /client/debug.h | |
parent | e9b5846704a65a8e8b59bea65e4711f5e137d2b6 (diff) |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/debug.h b/client/debug.h index 1c6f6a4..ce8fc98 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, ...) { \ |