diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-10-05 10:17:01 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-05 11:30:03 +0300 |
commit | b95ea6f347ca5a8fdca639a5c9760b7d866bbceb (patch) | |
tree | 5321fe5dd7aa04db73dcafd92e270e9028e692e0 | |
parent | 8a9762e7ce1080821586a250c1bc9734635e8828 (diff) | |
download | bluez-b95ea6f347ca5a8fdca639a5c9760b7d866bbceb.tar.gz |
device: Make device_get_address return const pointer
-rw-r--r-- | src/device.c | 2 | ||||
-rw-r--r-- | src/device.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c index 72cae3b19..1c65b6887 100644 --- a/src/device.c +++ b/src/device.c @@ -2312,7 +2312,7 @@ struct btd_adapter *device_get_adapter(struct btd_device *device) return device->adapter; } -bdaddr_t *device_get_address(struct btd_device *device) +const bdaddr_t *device_get_address(struct btd_device *device) { return &device->bdaddr; } diff --git a/src/device.h b/src/device.h index f919af4fc..0c16c189e 100644 --- a/src/device.h +++ b/src/device.h @@ -64,7 +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); -bdaddr_t *device_get_address(struct btd_device *device); +const 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); |