summaryrefslogtreecommitdiffstats
path: root/network/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-08 22:57:11 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-08 22:57:11 +0000
commit5243ac4fd278b0176ece84cbcec537a92a9c7290 (patch)
tree912b65f15a18410d84563ef95f0595d5b3504121 /network/main.c
parentf22b20c3d40bd7571944af6a4946f756dc39f812 (diff)
Update probe/remove callback and implement serial API
Diffstat (limited to 'network/main.c')
-rw-r--r--network/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/network/main.c b/network/main.c
index edfd0757..8e18dd99 100644
--- a/network/main.c
+++ b/network/main.c
@@ -82,23 +82,23 @@ static GDBusSignalTable network_signals[] = {
static DBusConnection *conn;
-static int network_probe(const char *path)
+static int network_probe(struct btd_device *device)
{
- DBG("path %s", path);
+ DBG("path %s", device->path);
- if (g_dbus_register_interface(conn, path, NETWORK_INTERFACE,
+ if (g_dbus_register_interface(conn, device->path, NETWORK_INTERFACE,
network_methods, network_signals, NULL,
- NULL, NULL) == FALSE)
+ device, NULL) == FALSE)
return -1;
return 0;
}
-static void network_remove(const char *path)
+static void network_remove(struct btd_device *device)
{
- DBG("path %s", path);
+ DBG("path %s", device->path);
- g_dbus_unregister_interface(conn, path, NETWORK_INTERFACE);
+ g_dbus_unregister_interface(conn, device->path, NETWORK_INTERFACE);
}
static struct btd_device_driver network_driver = {