diff options
author | Alok Barsode <alok.barsode@azingo.com> | 2008-09-08 17:55:14 +0530 |
---|---|---|
committer | Alok Barsode <alok.barsode@azingo.com> | 2008-09-08 17:55:14 +0530 |
commit | 19ce4933f3dadf3b04a2a9bd84d66d750cc010c3 (patch) | |
tree | 2cb709fd575d0cb31428d0cb2b5d6265ffb8b035 /audio/manager.c | |
parent | 2a8fb41c4c57b24a22f3adaab472b416faae122e (diff) |
Redefining device_get_address to take bdaddr_t as parameter.
Diffstat (limited to 'audio/manager.c')
-rw-r--r-- | audio/manager.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/audio/manager.c b/audio/manager.c index a53d2d19..8ad5dd37 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -673,14 +673,11 @@ static int audio_probe(struct btd_device *device, GSList *records) { struct btd_adapter *adapter = device_get_adapter(device); const gchar *path = device_get_path(device); - const char *destination; bdaddr_t src, dst; struct audio_device *dev; adapter_get_address(adapter, &src); - destination = device_get_address(device); - - str2ba(destination, &dst); + device_get_address(device, &dst); dev = manager_find_device(&dst, NULL, FALSE); if (!dev) { @@ -698,12 +695,11 @@ static int audio_probe(struct btd_device *device, GSList *records) static void audio_remove(struct btd_device *device) { struct audio_device *dev; - const char *destination = device_get_address(device); - bdaddr_t dst; + bdaddr_t bdaddr; - str2ba(destination, &dst); + device_get_address(device, &bdaddr); - dev = manager_find_device(&dst, NULL, FALSE); + dev = manager_find_device(&bdaddr, NULL, FALSE); if (!dev) return; |