diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-05-23 15:07:31 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-06-02 12:21:35 +1000 |
commit | 328bc99d3b1bbe199015be287faca094fa3fe423 (patch) | |
tree | abf24e4c7ef04ed92318f06e77db62c0bb8ec4f7 /tools/shared.h | |
parent | 1332d883f30e526c091da5e38d24ca6374099f0c (diff) | |
download | libinput-328bc99d3b1bbe199015be287faca094fa3fe423.tar.gz |
tools: add "libinput measure touchpad-tap"
This is the first tool of many more to come to enable users to gather
information aobut their devices and/or usage of these devices. Previously,
these required the users to record events, submit them to a bugzilla, have me
run various scripts over it and then decree that the scripts have spoken.
Push some of this into the hands of the users so they can query the numbers
locally and start investigating (or at least get an idea of what's happening).
This tool measures the time deltas between touch up and touch down and prints
a basic summary, together with the ability to print a dat file with the data
for visualization by e.g. gnuplot. Eventually, more of the current analysis
scripts will be moved into this or other helpers.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/shared.h')
-rw-r--r-- | tools/shared.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/shared.h b/tools/shared.h index 0fb8c28d..0a39484e 100644 --- a/tools/shared.h +++ b/tools/shared.h @@ -71,5 +71,9 @@ struct libinput* tools_open_backend(struct tools_context *context); void tools_device_apply_config(struct libinput_device *device, struct tools_options *options); void tools_usage(const char *command); +int tools_exec_command(const char *prefix, int argc, char **argv); + +bool find_touchpad_device(char *path, size_t path_len); +bool is_touchpad_device(const char *devnode); #endif |