summaryrefslogtreecommitdiffstats
path: root/hcid/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/device.c')
-rw-r--r--hcid/device.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hcid/device.c b/hcid/device.c
index 87f9d80c..06c5db4f 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -960,6 +960,14 @@ struct agent *device_get_agent(struct device *device)
return device->agent;
}
+void device_set_agent(struct device *device, struct agent *agent)
+{
+ if (!device)
+ return;
+
+ device->agent = agent;
+}
+
int btd_register_device_driver(struct btd_device_driver *driver)
{
const char **uuid;