diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-12-18 15:02:45 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-12-23 10:50:31 +1000 |
commit | 3628f7016e3c457b0384549c3f4fe9299002f6a0 (patch) | |
tree | 6e0c5b1c0888b2d0ce466da780b48dcb70547f70 /tools/shared.h | |
parent | e205615c9817caf3e9bb0f97c1da80ca6569d7f2 (diff) | |
download | libinput-3628f7016e3c457b0384549c3f4fe9299002f6a0.tar.gz |
tools: move opening the backend to the shared lib too
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 fa7c5efe..04d13697 100644 --- a/tools/shared.h +++ b/tools/shared.h @@ -23,6 +23,8 @@ #ifndef _SHARED_H_ #define _SHARED_H_ +#include <libinput.h> + enum tools_backend { BACKEND_DEVICE, BACKEND_UDEV @@ -39,6 +41,8 @@ struct tools_options { void tools_init_options(struct tools_options *options); int tools_parse_args(int argc, char **argv, struct tools_options *options); +struct libinput* tools_open_backend(struct tools_options *options, + const struct libinput_interface *interface); void tools_usage(); |