summaryrefslogtreecommitdiffstats
path: root/audio/manager.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-09-08 13:39:38 +0530
committerAlok Barsode <alok.barsode@azingo.com>2008-09-08 14:31:43 +0530
commit2a8fb41c4c57b24a22f3adaab472b416faae122e (patch)
tree930c56d79ffd39c5143ccb07b817b38c558fc1bb /audio/manager.c
parent9de95d439b89c8003d953d0f82b94edc27c50bbc (diff)
Redefining adapter_get_address to take bdaddr_t as parameter.
Diffstat (limited to 'audio/manager.c')
-rw-r--r--audio/manager.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/audio/manager.c b/audio/manager.c
index d824548e..a53d2d19 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -673,14 +673,13 @@ 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 *source, *destination;
+ const char *destination;
bdaddr_t src, dst;
struct audio_device *dev;
- source = adapter_get_address(adapter);
+ adapter_get_address(adapter, &src);
destination = device_get_address(device);
- str2ba(source, &src);
str2ba(destination, &dst);
dev = manager_find_device(&dst, NULL, FALSE);
@@ -728,11 +727,9 @@ static struct audio_adapter *get_audio_adapter(struct btd_adapter *adapter)
{
struct audio_adapter *adp;
const gchar *path = adapter_get_path(adapter);
- const char *source;
bdaddr_t src;
- source = adapter_get_address(adapter);
- str2ba(source, &src);
+ adapter_get_address(adapter, &src);
adp = find_adapter(adapters, path);
if (!adp) {