diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-08-26 21:45:45 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-10-02 22:16:09 -0700 |
commit | 95a436f7efd7061a15e3be533c56e573aac2db92 (patch) | |
tree | c6d28a9dac6e96c8401e26d722c98ca12011016d /x11.h | |
parent | 8b26ded773e1cd4890e93836692ecc9f136c5efd (diff) | |
download | xscope-95a436f7efd7061a15e3be533c56e573aac2db92.tar.gz |
Refactor error printing to use common functions
All errors currently recognized by xscope fall into two forms,
with or without a 32-bit value to print as a bad value, so use
common implementations for those two forms so we can stop
duplicating that code for every new extension-defined error.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'x11.h')
-rw-r--r-- | x11.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -656,4 +656,9 @@ uint32_t getreqlen(FD fd, const unsigned char *buf) { /* Constant defined in Generic Event Protocol 1.0 for event type */ #define Event_Type_Generic 35 +/* Routines for printing the two common forms of error responses */ +extern void printErrorWithValue(const unsigned char *buf, + short FieldType, const char *desc); +extern void printErrorNoValue(const unsigned char *buf); + #endif /* XSCOPE_X11_H */ |