From 19ce4933f3dadf3b04a2a9bd84d66d750cc010c3 Mon Sep 17 00:00:00 2001 From: Alok Barsode Date: Mon, 8 Sep 2008 17:55:14 +0530 Subject: Redefining device_get_address to take bdaddr_t as parameter. --- audio/manager.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'audio/manager.c') 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; -- cgit