summaryrefslogtreecommitdiff
path: root/print11.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-08-12 16:40:09 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-08-12 16:50:41 -0700
commitb90bb97a5b8686ba050835724c6b299a0cfb0305 (patch)
tree81d76426bb76ba03565a4b45ed537ed84834dd85 /print11.c
parentf65c809fb7c269c2bf450274f424feab85ea95cb (diff)
downloadxscope-b90bb97a5b8686ba050835724c6b299a0cfb0305.tar.gz
Add GenericEvent support
Allows extensions to register their own decoders for GenericEvents, though none do, since XInput isn't decoded yet Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
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)
{