blob: e310a49b625ceaff80e02840100f560c4317ae4a (
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
|
#ifndef _SEATD_BACKEND_H
#define _SEATD_BACKEND_H
#include "libseat.h"
struct libseat_impl;
struct libseat_seat_listener;
struct libseat {
const struct libseat_impl *impl;
};
struct named_backend {
const char *name;
const struct libseat_impl *backend;
};
struct libseat_impl {
struct libseat *(*open_seat)(struct libseat_seat_listener *listener, void *data);
int (*disable_seat)(struct libseat *seat);
int (*close_seat)(struct libseat *seat);
const char *(*seat_name)(struct libseat *seat);
int (*open_device)(struct libseat *seat, const char *path, int *fd);
int (*close_device)(struct libseat *seat, int device_id);
int (*switch_session)(struct libseat *seat, int session);
int (*get_fd)(struct libseat *seat);
int (*dispatch)(struct libseat *seat, int timeout);
};
#endif
|