summaryrefslogtreecommitdiff
path: root/tools/shared.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-10-06 15:35:44 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-10-06 16:12:17 +1000
commit4f282688acdab2cd388866e4afdd9c76237f43e7 (patch)
tree342827563ca1b81fe73b0394db32fa931e0dcfca /tools/shared.h
parent7244e36b501b5c13bfed085cd57db5a3d2d0f5f3 (diff)
downloadlibinput-4f282688acdab2cd388866e4afdd9c76237f43e7.tar.gz
tools: print the libinput_dispatch() counter for debugging messages
The messages with priority DEBUG refer to the various internal state machines updating, so it's useful to know when they did so. Let's count up every time we trigger libinput_dispatch() so we know how the messages group together. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/shared.h')
-rw-r--r--tools/shared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/shared.h b/tools/shared.h
index 730e1a45..471c3995 100644
--- a/tools/shared.h
+++ b/tools/shared.h
@@ -132,4 +132,6 @@ tools_list_device_quirks(struct quirks_context *ctx,
void (*callback)(void *userdata, const char *str),
void *userdata);
+void
+tools_dispatch(struct libinput *libinput);
#endif