chiark / gitweb /
Offsets: In button zone code, cope with negative "pos" values
[xf86-input-mtrack.git] / include / common.h
index 1021067c3147dc0463feb7bcade1a6f94eff8ad4..b774ead444e756544904442dc3a77a8143823ce0 100644 (file)
@@ -33,6 +33,7 @@
 #include <xf86Xinput.h>
 #include <errno.h>
 #include <mtdev-mapping.h>
+#include <mtdev-plumbing.h>
 #include <stdint.h>
 #include <sys/time.h>
 
@@ -51,6 +52,7 @@ typedef unsigned int bitmask_t;
 #define SETBIT(m, x) (m |= BITMASK(x))
 #define CLEARBIT(m, x) (m &= ~BITMASK(x))
 #define MODBIT(m, x, b) ((b) ? SETBIT(m, x) : CLEARBIT(m, x))
+#define PRBITMASK "0x%x"
 
 #define ABSVAL(x) ((x) < 0 ? -1*(x) : (x))
 #define MINVAL(x, y) ((x) < (y) ? (x) : (y))