diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-06-08 22:57:11 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-06-08 22:57:11 +0000 |
commit | 5243ac4fd278b0176ece84cbcec537a92a9c7290 (patch) | |
tree | 912b65f15a18410d84563ef95f0595d5b3504121 /input | |
parent | f22b20c3d40bd7571944af6a4946f756dc39f812 (diff) |
Update probe/remove callback and implement serial API
Diffstat (limited to 'input')
-rw-r--r-- | input/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/input/main.c b/input/main.c index 6a667f51..9a27a2ef 100644 --- a/input/main.c +++ b/input/main.c @@ -75,23 +75,23 @@ static GDBusSignalTable input_signals[] = { static DBusConnection *conn; -static int input_probe(const char *path) +static int input_probe(struct btd_device *device) { - DBG("path %s", path); + DBG("path %s", device->path); - if (g_dbus_register_interface(conn, path, INPUT_INTERFACE, + if (g_dbus_register_interface(conn, device->path, INPUT_INTERFACE, input_methods, input_signals, NULL, - NULL, NULL) == FALSE) + device, NULL) == FALSE) return -1; return 0; } -static void input_remove(const char *path) +static void input_remove(struct btd_device *device) { - DBG("path %s", path); + DBG("path %s", device->path); - g_dbus_unregister_interface(conn, path, INPUT_INTERFACE); + g_dbus_unregister_interface(conn, device->path, INPUT_INTERFACE); } static struct btd_device_driver input_driver = { |