libinput
0.11.0
A wrapper library for input devices
|
libinput does not open file descriptors to devices directly, instead open_restricted() and close_restricted() are called for each path that must be opened. More...
#include <libinput.h>
Data Fields | |
int(* | open_restricted )(const char *path, int flags, void *user_data) |
Open the device at the given path with the flags provided and return the fd. More... | |
void(* | close_restricted )(int fd, void *user_data) |
Close the file descriptor. More... | |
libinput does not open file descriptors to devices directly, instead open_restricted() and close_restricted() are called for each path that must be opened.
void(* libinput_interface::close_restricted)(int fd, void *user_data) |
Close the file descriptor.
fd | The file descriptor to close |
user_data | The user_data provided in libinput_udev_create_context() |
int(* libinput_interface::open_restricted)(const char *path, int flags, void *user_data) |
Open the device at the given path with the flags provided and return the fd.
path | The device path to open |
flags | Flags as defined by open(2) |
user_data | The user_data provided in libinput_udev_create_context() |