libinput  0.7.0
A wrapper library for input devices
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
libinput_interface Struct Reference

#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...
 

Field Documentation

void(* libinput_interface::close_restricted)(int fd, void *user_data)

Close the file descriptor.

Parameters
fdThe file descriptor to close
user_dataThe 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.

Parameters
pathThe device path to open
flagsFlags as defined by open(2)
user_dataThe user_data provided in libinput_udev_create_context()
Returns
the file descriptor, or a negative errno on failure.

The documentation for this struct was generated from the following file: