diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-05-25 10:12:26 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-06-02 12:21:35 +1000 |
commit | e9fc59efc853485cb6be0041d8d56a9c4c0642fd (patch) | |
tree | d3943c881faeaea97aad12c8027a1ea51b56b553 /tools/shared.h | |
parent | 67000f1ae63372d9c11f5966c07297081f412ee7 (diff) | |
download | libinput-e9fc59efc853485cb6be0041d8d56a9c4c0642fd.tar.gz |
tools: switch the libinput tool to be an exec-ing tool
Chaining args together inside a single binary would be nice, but it gets nasty
quickly (as I found out adding 3, 4 extra commands). Switch over to using a
git-style exec-ing command where libinput merely changes argv[0] and then
executes whatever it assembled. And those binaries can hide in libexec so they
don't clutter up the global namespace.
This also makes it a lot easier to write man pages, adopt the same style as
git uses.
Compatibilty wrapper scripts are provided for libinput-list-devices and
libinput-debug events. These warn the user about the changed command, then
exec the new one. Expect these wrappers to be removed at some point in the
future.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/shared.h')
-rw-r--r-- | tools/shared.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/shared.h b/tools/shared.h index 03838e14..f3a10db9 100644 --- a/tools/shared.h +++ b/tools/shared.h @@ -36,7 +36,8 @@ enum tools_backend { }; struct tools_options { - struct global_options global_options; + bool verbose; + bool quiet; enum tools_backend backend; const char *device; /* if backend is BACKEND_DEVICE */ const char *seat; /* if backend is BACKEND_UDEV */ |