From 555fcc9b4bf67e923708af8de46aa91b7077f050 Mon Sep 17 00:00:00 2001 From: Alok Barsode Date: Wed, 9 Jul 2008 18:12:19 +0530 Subject: Renaming device to btd_device and making the necessary changes in plugins. Signed-off-by: Alok Barsode --- network/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'network') diff --git a/network/main.c b/network/main.c index f18223cc..219c4417 100644 --- a/network/main.c +++ b/network/main.c @@ -85,9 +85,10 @@ static DBusConnection *conn; static int network_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, NETWORK_INTERFACE, + if (g_dbus_register_interface(conn, path, NETWORK_INTERFACE, network_methods, network_signals, NULL, device, NULL) == FALSE) return -1; @@ -97,9 +98,10 @@ static int network_probe(struct btd_device *device) static void network_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, NETWORK_INTERFACE); + g_dbus_unregister_interface(conn, path, NETWORK_INTERFACE); } static struct btd_device_driver network_driver = { -- cgit