summaryrefslogtreecommitdiffstats
path: root/hcid/device.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-07-09 13:48:28 +0530
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 10:35:07 -0300
commit9f94306bcd017a6acb152685c940ed6d027a98c7 (patch)
treee4c95b7da99fe1b95a0d0f3cff75b8354b25259f /hcid/device.c
parentd8b1e6017c0198bc996f9f9518037d69902b7830 (diff)
Adding device_is_busy.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'hcid/device.c')
-rw-r--r--hcid/device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hcid/device.c b/hcid/device.c
index 06c5db4f..49017707 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -968,6 +968,11 @@ void device_set_agent(struct device *device, struct agent *agent)
device->agent = agent;
}
+gboolean device_is_busy(struct device *device)
+{
+ return device->discov_active ? TRUE : FALSE;
+}
+
int btd_register_device_driver(struct btd_device_driver *driver)
{
const char **uuid;