From 5243ac4fd278b0176ece84cbcec537a92a9c7290 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 8 Jun 2008 22:57:11 +0000 Subject: Update probe/remove callback and implement serial API --- input/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'input') 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 = { -- cgit