summaryrefslogtreecommitdiffstats
path: root/hcid/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/device.c')
-rw-r--r--hcid/device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hcid/device.c b/hcid/device.c
index 6d99fb45..c16a6708 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -992,6 +992,12 @@ struct device *device_create(DBusConnection *conn, struct adapter *adapter,
return device;
}
+void device_remove(DBusConnection *conn, struct device *device)
+{
+ device_destroy(device, conn);
+ device_free(device);
+}
+
void device_destroy(struct device *device, DBusConnection *conn)
{
debug("Removing device %s", device->path);