diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-03-14 18:44:00 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-03-14 18:44:00 +0000 |
commit | f53dce601c8b8ee28bc8b5d354aaa56b454b1a71 (patch) | |
tree | c3fa8f8ff06a6c919ee9c04ffd892235e87a93b3 /input/device.h | |
parent | 48a57eed7fbb29716c9961fb6ac21ec4ba4d9717 (diff) |
Add basic fake HID infrastructure support
Diffstat (limited to 'input/device.h')
-rw-r--r-- | input/device.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/input/device.h b/input/device.h index 92ca6896..aef4a915 100644 --- a/input/device.h +++ b/input/device.h @@ -24,6 +24,19 @@ #define L2CAP_PSM_HIDP_CTRL 0x11 #define L2CAP_PSM_HIDP_INTR 0x13 +struct device; + +struct fake_input { + int flags; + GIOChannel *io; + int uinput; /* uinput socket */ + int rfcomm; /* RFCOMM socket */ + uint8_t ch; /* RFCOMM channel number */ + gboolean (*connect) (struct device *dev); + int (*disconnect) (struct device *dev); + void *priv; +}; + int input_device_register(DBusConnection *conn, bdaddr_t *src, bdaddr_t *dst, struct hidp_connadd_req *hidp, const char **ppath); int fake_input_register(DBusConnection *conn, bdaddr_t *src, @@ -33,9 +46,7 @@ int input_device_unregister(DBusConnection *conn, const char *path); gboolean input_device_is_registered(bdaddr_t *src, bdaddr_t *dst); int input_device_set_channel(bdaddr_t *src, bdaddr_t *dst, int psm, int nsk); - int input_device_close_channels(bdaddr_t *src, bdaddr_t *dst); - int input_device_connadd(bdaddr_t *src, bdaddr_t *dst); int l2cap_connect(bdaddr_t *src, bdaddr_t *dst, |