summaryrefslogtreecommitdiffstats
path: root/input/device.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-03-19 15:17:15 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-03-19 15:17:15 +0000
commitd307da66278af3505e2bb1a35de4ef2ccefb9a6d (patch)
treeba04f5771d37c51dfec34d11c1db36ddbe09ab91 /input/device.h
parenta798bf638f53dacb92d23265a0d228886e8bd5f0 (diff)
input: moving "struct input_device" to device.h
Diffstat (limited to 'input/device.h')
-rw-r--r--input/device.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/input/device.h b/input/device.h
index b51056e2..604d7b79 100644
--- a/input/device.h
+++ b/input/device.h
@@ -21,6 +21,29 @@
*
*/
+struct fake_input {
+ GIOChannel *io;
+ int rfcomm; /* RFCOMM socket */
+ int uinput; /* uinput socket */
+ uint8_t ch; /* RFCOMM channel number */
+};
+
+struct pending_connect {
+ DBusConnection *conn;
+ DBusMessage *msg;
+};
+
+struct input_device {
+ bdaddr_t src;
+ bdaddr_t dst;
+ char *name;
+ uint8_t major;
+ uint8_t minor;
+ struct hidp_connadd_req hidp; /* FIXME: Use dynamic alloc? */
+ struct fake_input *fake;
+ struct pending_connect *pending_connect;
+};
+
int input_device_register(DBusConnection *conn, bdaddr_t *src, bdaddr_t *dst,
struct hidp_connadd_req *hidp, const char **path);
int fake_input_register(DBusConnection *conn, bdaddr_t *src,