summaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2012-10-05 10:16:58 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-05 11:27:45 +0300
commited6a8af4a31d00bd8a3b5aeb6f22b929f8637d6c (patch)
treea5cb07a0a27f3fef3926b2a33b08d6d829eb5aba /src/device.h
parent4c34fcd00be61a1b9a659358eb5f6318f0fe2150 (diff)
device: Convert device_get_address into simple getter
This allow to remove number of local variables used only to get device address and pass it as pointer later on. bdaddr_type parameter is also removed as there is device_get_addr_type already present which can be used to get it if needed.
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/device.h b/src/device.h
index 462b9a12..f919af4f 100644
--- a/src/device.h
+++ b/src/device.h
@@ -64,8 +64,7 @@ void btd_device_add_uuid(struct btd_device *device, const char *uuid);
void device_probe_profile(gpointer a, gpointer b);
void device_remove_profile(gpointer a, gpointer b);
struct btd_adapter *device_get_adapter(struct btd_device *device);
-void device_get_address(struct btd_device *device, bdaddr_t *bdaddr,
- uint8_t *bdaddr_type);
+bdaddr_t *device_get_address(struct btd_device *device);
void device_set_addr_type(struct btd_device *device, uint8_t bdaddr_type);
uint8_t device_get_addr_type(struct btd_device *device);
const gchar *device_get_path(struct btd_device *device);