mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 05:04:18 +08:00
Add the btd_ prefix to device_add_service
This is needed to keep consistency, as device_add_service would be used from outside the core bluetoothd.
This commit is contained in:
parent
5ae3733f9c
commit
ed2fd82805
@ -606,7 +606,7 @@ static void register_primary(struct gatt_service *gatt)
|
||||
NULL, NULL, prim, NULL);
|
||||
DBG("Registered: %s", prim->path);
|
||||
|
||||
device_add_service(gatt->dev, prim->path);
|
||||
btd_device_add_service(gatt->dev, prim->path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2382,7 +2382,7 @@ void device_set_renewed_key(struct btd_device *device, gboolean renewed)
|
||||
device->renewed_key = renewed;
|
||||
}
|
||||
|
||||
void device_add_service(struct btd_device *device, const char *path)
|
||||
void btd_device_add_service(struct btd_device *device, const char *path)
|
||||
{
|
||||
if (g_slist_find_custom(device->services, path, (GCompareFunc) strcmp))
|
||||
return;
|
||||
|
@ -55,7 +55,7 @@ void device_probe_drivers(struct btd_device *device, GSList *profiles);
|
||||
const sdp_record_t *btd_device_get_record(struct btd_device *device,
|
||||
const char *uuid);
|
||||
GSList *btd_device_get_primaries(struct btd_device *device);
|
||||
void device_add_service(struct btd_device *device, const char *path);
|
||||
void btd_device_add_service(struct btd_device *device, const char *path);
|
||||
void device_add_primary(struct btd_device *device, struct att_primary *prim);
|
||||
void btd_device_add_uuid(struct btd_device *device, const char *uuid);
|
||||
struct btd_adapter *device_get_adapter(struct btd_device *device);
|
||||
|
Loading…
Reference in New Issue
Block a user