summaryrefslogtreecommitdiffstats
path: root/input/device.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-04-12 09:59:15 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-04-12 09:59:15 +0000
commite3aec1dd412fc0adb0587edf750979e4d18906b0 (patch)
tree67224966c44b0670b12f934b998cc167c518b94f /input/device.h
parent1f6bcd79a30ce899eec1245956c48876831439eb (diff)
Keep the device structure local
Diffstat (limited to 'input/device.h')
-rw-r--r--input/device.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/input/device.h b/input/device.h
index 398e3751..b156b985 100644
--- a/input/device.h
+++ b/input/device.h
@@ -21,31 +21,11 @@
*
*/
-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 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 **ppath);
int fake_input_register(DBusConnection *conn, bdaddr_t *src,
bdaddr_t *dst, uint8_t ch, const char **ppath);
int input_device_unregister(DBusConnection *conn, const char *path);
+
+int input_device_get_bdaddr(DBusConnection *conn, const char *path,
+ bdaddr_t *src, bdaddr_t *dst);