mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 19:20:05 +01:00
test: move the interface declaration up
No functional changes, just some prep work. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
967911791f
commit
3f500b657f
1 changed files with 17 additions and 18 deletions
|
|
@ -267,6 +267,23 @@ litest_log_handler(enum libinput_log_priority pri,
|
|||
vfprintf(stderr, format, args);
|
||||
}
|
||||
|
||||
static int
|
||||
open_restricted(const char *path, int flags, void *userdata)
|
||||
{
|
||||
return open(path, flags);
|
||||
}
|
||||
|
||||
static void
|
||||
close_restricted(int fd, void *userdata)
|
||||
{
|
||||
close(fd);
|
||||
}
|
||||
|
||||
struct libinput_interface interface = {
|
||||
.open_restricted = open_restricted,
|
||||
.close_restricted = close_restricted,
|
||||
};
|
||||
|
||||
static const struct option opts[] = {
|
||||
{ "list", 0, 0, 'l' },
|
||||
{ "verbose", 0, 0, 'v' },
|
||||
|
|
@ -335,24 +352,6 @@ litest_run(int argc, char **argv) {
|
|||
return failed;
|
||||
}
|
||||
|
||||
static int
|
||||
open_restricted(const char *path, int flags, void *userdata)
|
||||
{
|
||||
return open(path, flags);
|
||||
}
|
||||
|
||||
static void
|
||||
close_restricted(int fd, void *userdata)
|
||||
{
|
||||
close(fd);
|
||||
}
|
||||
|
||||
const struct libinput_interface interface = {
|
||||
.open_restricted = open_restricted,
|
||||
.close_restricted = close_restricted,
|
||||
};
|
||||
|
||||
|
||||
static struct input_absinfo *
|
||||
merge_absinfo(const struct input_absinfo *orig,
|
||||
const struct input_absinfo *override)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue