aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-19 17:28:09 +0200
committerMattias Andrée <maandree@kth.se>2020-06-19 17:28:13 +0200
commit70d5b2d027a3a28e2b5051f94e8d339224fd4435 (patch)
tree8e978fca0b9fcd336e42fce23db8d5fb1bb548ba
parentMinor fixes (diff)
downloadlibaxl-70d5b2d027a3a28e2b5051f94e8d339224fd4435.tar.gz
libaxl-70d5b2d027a3a28e2b5051f94e8d339224fd4435.tar.bz2
libaxl-70d5b2d027a3a28e2b5051f94e8d339224fd4435.tar.xz
Add support for synthetic events
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libaxl_receive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libaxl_receive.c b/libaxl_receive.c
index 2d79f64..797ba06 100644
--- a/libaxl_receive.c
+++ b/libaxl_receive.c
@@ -245,6 +245,7 @@ libaxl_receive(LIBAXL_CONTEXT *restrict ctx, union libaxl_input *restrict msgp,
}
code = *(uint8_t *)inbuf;
+ code &= 0x7F; /* Synthetic events have the highest bit set. */
if (code == LIBAXL_REPLY) {
n = (uint64_t)ntohl(*(uint32_t *)&inbuf[4]);