summaryrefslogtreecommitdiffstats
path: root/hcid/device.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-07-09 13:19:43 +0530
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 10:34:42 -0300
commita2335a65bb61313b3e46be861c90ca8bdb786eb8 (patch)
tree0b3a6bc85393de6d4608013b6cb3eb2b1ba9d361 /hcid/device.c
parent46fd7beaa5b27f74e64d77449247e5459d7a3084 (diff)
Adding device_get_agent.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
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 008afa7e..87f9d80c 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -952,6 +952,14 @@ const gchar *device_get_path(struct device *device)
return device->path;
}
+struct agent *device_get_agent(struct device *device)
+{
+ if (!device)
+ return NULL;
+
+ return device->agent;
+}
+
int btd_register_device_driver(struct btd_device_driver *driver)
{
const char **uuid;