diff options
author | Alok Barsode <alok.barsode@azingo.com> | 2008-07-09 18:12:19 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-28 10:36:35 -0300 |
commit | 555fcc9b4bf67e923708af8de46aa91b7077f050 (patch) | |
tree | b8da503d323c7a33d2db61badfa4e16823eb747b /input | |
parent | ea245383ac6650cbf34c327ed095d956b84ac5fb (diff) |
Renaming device to btd_device and making the
necessary changes in plugins.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'input')
-rw-r--r-- | input/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/input/main.c b/input/main.c index b269c76e..713335ee 100644 --- a/input/main.c +++ b/input/main.c @@ -78,9 +78,10 @@ static DBusConnection *conn; static int input_probe(struct btd_device *device) { - DBG("path %s", device->path); + const gchar *path = device_get_path(device); + DBG("path %s", path); - if (g_dbus_register_interface(conn, device->path, INPUT_INTERFACE, + if (g_dbus_register_interface(conn, path, INPUT_INTERFACE, input_methods, input_signals, NULL, device, NULL) == FALSE) return -1; @@ -90,9 +91,10 @@ static int input_probe(struct btd_device *device) static void input_remove(struct btd_device *device) { - DBG("path %s", device->path); + const gchar *path = device_get_path(device); + DBG("path %s", path); - g_dbus_unregister_interface(conn, device->path, INPUT_INTERFACE); + g_dbus_unregister_interface(conn, path, INPUT_INTERFACE); } static struct btd_device_driver input_driver = { |