summaryrefslogtreecommitdiff
path: root/rcm-server-main.h
blob: 12907fcc11d39ce8e484e937efa9c4a3f275cbc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef foorcmserverhfoo
#define foorcmserverhfoo

struct device {
	char *name;
	char *path;
	char *input_name;
	char *driver_name;
	char *keymap_name;
	char *dev_name;
	char *error;
	int lirc_fd;
	sd_event_source *lirc_ev;
	int evdev_fd;
	sd_event_source *evdev_ev;
	struct libevdev *evdev_dev;
	struct manager *mgr;
	struct list_head list;
	struct list_head keymaps;
};

struct manager {
	sd_bus *bus;
	sd_event *event;
	struct udev *udev;
	struct udev_monitor *udev_mon;
	sd_event_source *udev_ev;
	struct list_head devices;
	unsigned num_devices;
	void *db;
	int db_ifd;
	sd_event_source *db_ifd_ev;
};

#endif