summaryrefslogtreecommitdiff
path: root/print11.c
diff options
context:
space:
mode:
Diffstat (limited to 'print11.c')
-rw-r--r--print11.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/print11.c b/print11.c
index e29ac23..7e0cc72 100644
--- a/print11.c
+++ b/print11.c
@@ -954,6 +954,23 @@ MappingNotifyEvent (
}
void
+UnknownGenericEvent (
+ const unsigned char *buf)
+{
+ long n;
+
+ PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* GenericEvent */;
+ if (Verbose < 1)
+ return;
+ PrintField(buf, 1, 1, EXTENSION, "extension");
+ printfield (buf, 2, 2, CARD16, "sequence number");
+ printfield (buf, 4, 4, DVALUE4(n), "event length");
+ PrintField(buf, 2, 8, CARD16, "event type");
+ n = ILong (&buf[4]) + 5;
+ (void) PrintList (&buf[12], n, CARD32, "data");
+}
+
+void
UnknownEvent (
const unsigned char *buf)
{