aboutsummaryrefslogtreecommitdiffstats
path: root/logind.h
blob: 5c97702ffaeb467f64294f9e88c000cfc57fcc62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdbool.h>
#include <inttypes.h>

#include <libudev.h>
#include <libinput.h>

extern const struct libinput_interface libinput_if_logind;

int logind_init(bool take_control,
                void (*suspend)(void),
                void (*resume)(void));
int logind_dbus_fd(void);
void logind_dbus_input(void);
int logind_switch_vt(int vt);
int logind_take_control(void);
int logind_release_control(void);
int logind_open(const char *path, int flags, void *user_data);
void logind_close(int fd, void *user_data);

int device_open(const char *device);