diff options
author | Alok Barsode <alok.barsode@azingo.com> | 2008-07-09 12:57:13 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-28 10:34:17 -0300 |
commit | 46fd7beaa5b27f74e64d77449247e5459d7a3084 (patch) | |
tree | 1b9d312654022718b0e9368774bdbd919557736d /hcid/dbus-service.c | |
parent | aec749f0732638f182c4b50fb59d6c905a80d42d (diff) |
Adding device_get_path.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r-- | hcid/dbus-service.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index f6946052..edb3ab0c 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -79,6 +79,7 @@ int service_req_auth(const bdaddr_t *src, const bdaddr_t *dst, struct agent *agent; char address[18]; gboolean trusted; + const gchar *dev_path; adapter = manager_find_adapter(src); if (!adapter) @@ -112,7 +113,9 @@ int service_req_auth(const bdaddr_t *src, const bdaddr_t *dst, auth->cb = cb; auth->user_data = user_data; - return agent_authorize(agent, device->path, uuid, agent_auth_cb, auth); + dev_path = device_get_path(device); + + return agent_authorize(agent, dev_path, uuid, agent_auth_cb, auth); } int service_cancel_auth(const bdaddr_t *src, const bdaddr_t *dst) |