1TS_OPEN_RESTRICTED(3) tslib TS_OPEN_RESTRICTED(3)
2
3
4
6 ts_open_restricted - use a custom function for opening the touchâ
7 screen's input device file
8
10 #include <tslib.h>
11
12 int (*ts_open_restricted)(const char *path, int flags, void *user_data);
13
14
15
17 ts_open_restricted() is useful if libts should not be run as root. If
18 such a function is implemented by the user and assigned to the
19 ts_open_restricted pointer, it will be called by ts_open() instead of
20 the open() system call directly.
21
22 It should open the input device at path with flags while user_data is
23 currently unused.
24
25
27 the touchscreen input device' file descriptor
28
29
31 ts_close_restricted(3), ts_open(3), ts_setup(3), ts_close(3),
32 ts.conf(5)
33
34
35
36 TS_OPEN_RESTRICTED(3)