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:
Vinicius Costa Gomes 2010-12-21 19:26:32 -02:00 committed by Johan Hedberg
parent 5ae3733f9c
commit ed2fd82805
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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;

View File

@ -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);