summaryrefslogtreecommitdiff
path: root/prtype.c
diff options
context:
space:
mode:
Diffstat (limited to 'prtype.c')
-rw-r--r--prtype.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/prtype.c b/prtype.c
index 5889b52..96523f9 100644
--- a/prtype.c
+++ b/prtype.c
@@ -613,6 +613,28 @@ PrintEVENTFORM(const unsigned char *buf)
return 32;
}
+int
+PrintEVENT(const unsigned char *buf)
+{
+ uint8_t n = IByte(buf);
+ long e = (long) (n & 0x7f);
+ struct ValueListEntry *p;
+
+ p = TD[EVENT].ValueList;
+ while (p != NULL && p->Value != e)
+ p = p->Next;
+
+ if (p != NULL)
+ fprintf(stdout, "%s", p->Name);
+ else
+ fprintf(stdout, "**INVALID** (%d)", n);
+
+ if (n & 0x80)
+ fprintf(stdout, "\n%s%20s: %s", Leader, "source", "SendEvent");
+
+ return 1;
+}
+
/* ************************************************************ */
int