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' },
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)