From 12ea3fe7e2628d564e27843762f1cf613b821582 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 14 Dec 2012 11:14:12 +0200 Subject: [PATCH] core: Rename write_device_services according to what it actually does --- src/device.c | 2 +- src/storage.c | 2 +- src/storage.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device.c b/src/device.c index 7bde9701b..16ab3817c 100644 --- a/src/device.c +++ b/src/device.c @@ -2874,7 +2874,7 @@ static void store_services(struct btd_device *device) struct btd_adapter *adapter = device->adapter; char *str = primary_list_to_string(device->primaries); - write_device_services(adapter_get_address(adapter), &device->bdaddr, + write_device_primaries(adapter_get_address(adapter), &device->bdaddr, device->bdaddr_type, str); g_free(str); diff --git a/src/storage.c b/src/storage.c index eb0630741..c622ff1bb 100644 --- a/src/storage.c +++ b/src/storage.c @@ -338,7 +338,7 @@ int read_device_pairable(const bdaddr_t *bdaddr, gboolean *mode) return 0; } -int write_device_services(const bdaddr_t *sba, const bdaddr_t *dba, +int write_device_primaries(const bdaddr_t *sba, const bdaddr_t *dba, uint8_t bdaddr_type, const char *services) { char filename[PATH_MAX + 1], key[20]; diff --git a/src/storage.h b/src/storage.h index 4a4a3db06..e26753a89 100644 --- a/src/storage.h +++ b/src/storage.h @@ -40,7 +40,7 @@ int delete_record(const gchar *src, const gchar *dst, uint8_t dst_type, const uint32_t handle); sdp_record_t *find_record_in_list(sdp_list_t *recs, const char *uuid); int read_device_pairable(const bdaddr_t *local, gboolean *mode); -int write_device_services(const bdaddr_t *sba, const bdaddr_t *dba, +int write_device_primaries(const bdaddr_t *sba, const bdaddr_t *dba, uint8_t bdaddr_type, const char *services); int write_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba, uint8_t bdaddr_type, uint16_t handle, -- 2.47.3