{
struct btd_profile *profile = btd_service_get_profile(service);
- DBG("%s profile %s", device_get_path(data->dev), profile->name);
+ DBG("%s profile %s", btd_device_get_path(data->dev), profile->name);
btd_service_connect(service);
}
{
struct btd_profile *profile = btd_service_get_profile(service);
- DBG("%s profile %s", device_get_path(data->dev), profile->name);
+ DBG("%s profile %s", btd_device_get_path(data->dev), profile->name);
btd_service_disconnect(service);
}
return;
DBG("Device %s identified for auto-reconnection",
- device_get_path(dev));
+ btd_device_get_path(dev));
reconnect->timer = g_timeout_add_seconds(reconnect->timeout,
reconnect_timeout,
{
struct btd_device *dev = btd_service_get_device(service);
- DBG("path %s", device_get_path(dev));
+ DBG("path %s", btd_device_get_path(dev));
source_init(service);
{
struct btd_device *dev = btd_service_get_device(service);
- DBG("path %s", device_get_path(dev));
+ DBG("path %s", btd_device_get_path(dev));
return sink_init(service);
}
struct btd_device *dev = btd_service_get_device(service);
struct btd_adapter *adapter = device_get_adapter(dev);
struct a2dp_server *server;
- const char *path = device_get_path(dev);
+ const char *path = btd_device_get_path(dev);
DBG("path %s", path);
static int a2dp_source_disconnect(struct btd_service *service)
{
struct btd_device *dev = btd_service_get_device(service);
- const char *path = device_get_path(dev);
+ const char *path = btd_device_get_path(dev);
DBG("path %s", path);
struct btd_device *dev = btd_service_get_device(service);
struct btd_adapter *adapter = device_get_adapter(dev);
struct a2dp_server *server;
- const char *path = device_get_path(dev);
+ const char *path = btd_device_get_path(dev);
DBG("path %s", path);
static int a2dp_sink_disconnect(struct btd_service *service)
{
struct btd_device *dev = btd_service_get_device(service);
- const char *path = device_get_path(dev);
+ const char *path = btd_device_get_path(dev);
DBG("path %s", path);
player = g_new0(struct avrcp_player, 1);
player->sessions = g_slist_prepend(player->sessions, session);
- path = device_get_path(session->dev);
+ path = btd_device_get_path(session->dev);
mp = media_player_controller_create(path, id);
if (mp == NULL)
static int avrcp_connect(struct btd_service *service)
{
struct btd_device *dev = btd_service_get_device(service);
- const char *path = device_get_path(dev);
+ const char *path = btd_device_get_path(dev);
DBG("path %s", path);
static int avrcp_disconnect(struct btd_service *service)
{
struct btd_device *dev = btd_service_get_device(service);
- const char *path = device_get_path(dev);
+ const char *path = btd_device_get_path(dev);
DBG("path %s", path);
{
struct btd_device *dev = btd_service_get_device(service);
- DBG("path %s", device_get_path(dev));
+ DBG("path %s", btd_device_get_path(dev));
return control_init_target(service);
}
{
struct btd_device *dev = btd_service_get_device(service);
- DBG("path %s", device_get_path(dev));
+ DBG("path %s", btd_device_get_path(dev));
return control_init_remote(service);
}
{
struct control *control = user_data;
DBusConnection *conn = btd_get_dbus_connection();
- const char *path = device_get_path(dev);
+ const char *path = btd_device_get_path(dev);
switch (new_state) {
case AVCTP_STATE_DISCONNECTED:
struct control *control = data;
DBG("Unregistered interface %s on path %s", AUDIO_CONTROL_INTERFACE,
- device_get_path(control->dev));
+ btd_device_get_path(control->dev));
if (control->session)
avctp_disconnect(control->session);
struct btd_device *dev = btd_service_get_device(service);
g_dbus_unregister_interface(btd_get_dbus_connection(),
- device_get_path(dev),
+ btd_device_get_path(dev),
AUDIO_CONTROL_INTERFACE);
}
control = g_new0(struct control, 1);
if (!g_dbus_register_interface(btd_get_dbus_connection(),
- device_get_path(dev),
+ btd_device_get_path(dev),
AUDIO_CONTROL_INTERFACE,
control_methods, NULL,
control_properties, control,
}
DBG("Registered interface %s on path %s", AUDIO_CONTROL_INTERFACE,
- device_get_path(dev));
+ btd_device_get_path(dev));
control->dev = dev;
control->avctp_id = avctp_add_state_cb(dev, state_changed, control);
sink->state = new_state;
- DBG("State changed %s: %s -> %s", device_get_path(dev),
+ DBG("State changed %s: %s -> %s", btd_device_get_path(dev),
str_state[old_state], str_state[new_state]);
for (l = sink_callbacks; l != NULL; l = l->next) {
{
struct btd_device *dev = btd_service_get_device(service);
- DBG("%s", device_get_path(dev));
+ DBG("%s", btd_device_get_path(dev));
sink_free(service);
}
struct btd_device *dev = btd_service_get_device(service);
struct sink *sink;
- DBG("%s", device_get_path(dev));
+ DBG("%s", btd_device_get_path(dev));
sink = g_new0(struct sink, 1);
source->state = new_state;
- DBG("State changed %s: %s -> %s", device_get_path(dev),
+ DBG("State changed %s: %s -> %s", btd_device_get_path(dev),
str_state[old_state], str_state[new_state]);
for (l = source_callbacks; l != NULL; l = l->next) {
{
struct btd_device *dev = btd_service_get_device(service);
- DBG("%s", device_get_path(dev));
+ DBG("%s", btd_device_get_path(dev));
source_free(service);
}
struct btd_device *dev = btd_service_get_device(service);
struct source *source;
- DBG("%s", device_get_path(dev));
+ DBG("%s", btd_device_get_path(dev));
source = g_new0(struct source, 1);
DBusMessageIter *iter, void *data)
{
struct media_transport *transport = data;
- const char *path = device_get_path(transport->device);
+ const char *path = btd_device_get_path(transport->device);
dbus_message_iter_append_basic(iter, DBUS_TYPE_OBJECT_PATH, &path);
transport->configuration = g_new(uint8_t, size);
memcpy(transport->configuration, configuration, size);
transport->size = size;
- transport->path = g_strdup_printf("%s/fd%d", device_get_path(device),
- fd++);
+ transport->path = g_strdup_printf("%s/fd%d",
+ btd_device_get_path(device),
+ fd++);
transport->fd = -1;
uuid = media_endpoint_get_uuid(endpoint);
csc->location = value;
g_dbus_emit_property_changed(btd_get_dbus_connection(),
- device_get_path(csc->dev),
+ btd_device_get_path(csc->dev),
CYCLINGSPEED_INTERFACE, "Location");
}
struct watcher *w = data;
struct measurement *m = user_data;
struct csc *csc = m->csc;
- const char *path = device_get_path(csc->dev);
+ const char *path = btd_device_get_path(csc->dev);
DBusMessageIter iter;
DBusMessageIter dict;
DBusMessage *msg;
controlpoint_property_reply(req, rsp_code);
g_dbus_emit_property_changed(btd_get_dbus_connection(),
- device_get_path(csc->dev),
+ btd_device_get_path(csc->dev),
CYCLINGSPEED_INTERFACE, "Location");
break;
}
csc->cadapter = cadapter;
if (!g_dbus_register_interface(btd_get_dbus_connection(),
- device_get_path(device),
+ btd_device_get_path(device),
CYCLINGSPEED_INTERFACE,
cyclingspeed_device_methods,
NULL,
cadapter->devices = g_slist_remove(cadapter->devices, csc);
g_dbus_unregister_interface(btd_get_dbus_connection(),
- device_get_path(device),
+ btd_device_get_path(device),
CYCLINGSPEED_INTERFACE);
}
DBusMessageIter *iter, void *data)
{
struct hdp_channel *chan = data;
- const char *path = device_get_path(chan->dev->dev);
+ const char *path = btd_device_get_path(chan->dev->dev);
dbus_message_iter_append_basic(iter, DBUS_TYPE_OBJECT_PATH, &path);
&fd, DBUS_TYPE_INVALID);
g_dbus_send_message(conn, reply);
- g_dbus_emit_signal(conn, device_get_path(dc_data->hdp_chann->dev->dev),
+ g_dbus_emit_signal(conn, btd_device_get_path(dc_data->hdp_chann->dev->dev),
HEALTH_DEVICE, "ChannelConnected",
DBUS_TYPE_OBJECT_PATH, &dc_data->hdp_chann->path,
DBUS_TYPE_INVALID);
if (hdp_chan->mdep != HDP_MDEP_ECHO)
g_dbus_emit_signal(btd_get_dbus_connection(),
- device_get_path(dev->dev),
+ btd_device_get_path(dev->dev),
HEALTH_DEVICE, "ChannelDeleted",
DBUS_TYPE_OBJECT_PATH, &hdp_chan->path,
DBUS_TYPE_INVALID);
hdp_chann->edata = g_new0(struct hdp_echo_data, 1);
hdp_chann->path = g_strdup_printf("%s/chan%d",
- device_get_path(hdp_chann->dev->dev),
+ btd_device_get_path(hdp_chann->dev->dev),
hdp_chann->mdlid);
dev->channels = g_slist_append(dev->channels,
if (!dev->sdp_present) {
const char *path;
- path = device_get_path(dev->dev);
+ path = btd_device_get_path(dev->dev);
g_dbus_unregister_interface(btd_get_dbus_connection(),
path, HEALTH_DEVICE);
}
goto end;
}
- g_dbus_emit_signal(btd_get_dbus_connection(), device_get_path(dev->dev),
+ g_dbus_emit_signal(btd_get_dbus_connection(), btd_device_get_path(dev->dev),
HEALTH_DEVICE, "ChannelConnected",
DBUS_TYPE_OBJECT_PATH, &chan->path,
DBUS_TYPE_INVALID);
dev->fr = hdp_channel_ref(chan);
g_dbus_emit_property_changed(btd_get_dbus_connection(),
- device_get_path(dev->dev), HEALTH_DEVICE,
+ btd_device_get_path(dev->dev), HEALTH_DEVICE,
"MainChannel");
end:
if (dev->ndc->mdep != HDP_MDEP_ECHO)
g_dbus_emit_signal(btd_get_dbus_connection(),
- device_get_path(dev->dev),
+ btd_device_get_path(dev->dev),
HEALTH_DEVICE, "ChannelConnected",
DBUS_TYPE_OBJECT_PATH, &dev->ndc->path,
DBUS_TYPE_INVALID);
hdp_device->mcl = mcap_mcl_ref(mcl);
hdp_device->mcl_conn = TRUE;
- DBG("New mcl connected from %s", device_get_path(hdp_device->dev));
+ DBG("New mcl connected from %s", btd_device_get_path(hdp_device->dev));
hdp_set_mcl_cb(hdp_device, NULL);
}
hdp_device = l->data;
hdp_device->mcl_conn = TRUE;
- DBG("MCL reconnected %s", device_get_path(hdp_device->dev));
+ DBG("MCL reconnected %s", btd_device_get_path(hdp_device->dev));
hdp_set_mcl_cb(hdp_device, NULL);
}
hdp_device = l->data;
hdp_device->mcl_conn = FALSE;
- DBG("Mcl disconnected %s", device_get_path(hdp_device->dev));
+ DBG("Mcl disconnected %s", btd_device_get_path(hdp_device->dev));
}
static void mcl_uncached(struct mcap_mcl *mcl, gpointer data)
/* the Bluetooth daemon won't notify when the device shall */
/* be removed. Then we have to remove the HealthDevice */
/* interface manually */
- path = device_get_path(hdp_device->dev);
+ path = btd_device_get_path(hdp_device->dev);
g_dbus_unregister_interface(btd_get_dbus_connection(),
path, HEALTH_DEVICE);
DBG("Mcl uncached %s", path);
for (l = to_delete; l; l = l->next) {
const char *path;
- path = device_get_path(dev->dev);
+ path = btd_device_get_path(dev->dev);
g_dbus_unregister_interface(btd_get_dbus_connection(),
path, HEALTH_DEVICE);
}
/* notify the channel created at MCAP level */
if (hdp_chann->mdep != HDP_MDEP_ECHO)
g_dbus_emit_signal(btd_get_dbus_connection(),
- device_get_path(hdp_chann->dev->dev),
+ btd_device_get_path(hdp_chann->dev->dev),
HEALTH_DEVICE, "ChannelConnected",
DBUS_TYPE_OBJECT_PATH, &hdp_chann->path,
DBUS_TYPE_INVALID);
DBUS_TYPE_INVALID);
g_dbus_send_message(conn, reply);
- g_dbus_emit_signal(conn, device_get_path(hdp_chann->dev->dev),
+ g_dbus_emit_signal(conn, btd_device_get_path(hdp_chann->dev->dev),
HEALTH_DEVICE, "ChannelConnected",
DBUS_TYPE_OBJECT_PATH, &hdp_chann->path,
DBUS_TYPE_INVALID);
dev->fr = hdp_channel_ref(hdp_chann);
g_dbus_emit_property_changed(btd_get_dbus_connection(),
- device_get_path(dev->dev), HEALTH_DEVICE,
+ btd_device_get_path(dev->dev), HEALTH_DEVICE,
"MainChannel");
}
struct hdp_device *device = data;
DBG("Unregistered interface %s on path %s", HEALTH_DEVICE,
- device_get_path(device->dev));
+ btd_device_get_path(device->dev));
remove_channels(device);
if (device->ndc != NULL) {
static struct hdp_device *create_health_device(struct btd_device *device)
{
struct btd_adapter *adapter = device_get_adapter(device);
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
struct hdp_device *dev;
GSList *l;
return;
hdp_dev = l->data;
- path = device_get_path(hdp_dev->dev);
+ path = btd_device_get_path(hdp_dev->dev);
g_dbus_unregister_interface(btd_get_dbus_connection(),
path, HEALTH_DEVICE);
}
struct watcher *w = data;
struct measurement *m = user_data;
struct heartrate *hr = m->hr;
- const char *path = device_get_path(hr->dev);
+ const char *path = btd_device_get_path(hr->dev);
DBusMessageIter iter;
DBusMessageIter dict;
DBusMessage *msg;
hr->hradapter = hradapter;
if (!g_dbus_register_interface(btd_get_dbus_connection(),
- device_get_path(device),
+ btd_device_get_path(device),
HEART_RATE_INTERFACE,
heartrate_device_methods,
NULL,
hradapter->devices = g_slist_remove(hradapter->devices, hr);
g_dbus_unregister_interface(btd_get_dbus_connection(),
- device_get_path(device), HEART_RATE_INTERFACE);
+ btd_device_get_path(device),
+ HEART_RATE_INTERFACE);
}
static int heartrate_adapter_probe(struct btd_profile *p,
{
struct btd_device *device = btd_service_get_device(service);
struct btd_profile *p = btd_service_get_profile(service);
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
const sdp_record_t *rec = btd_device_get_record(device, p->remote_uuid);
struct btd_adapter *adapter = device_get_adapter(device);
struct input_device *idev;
int input_device_register(struct btd_service *service)
{
struct btd_device *device = btd_service_get_device(service);
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
struct input_device *idev;
int err;
GIOChannel *io;
void input_device_unregister(struct btd_service *service)
{
struct btd_device *device = btd_service_get_device(service);
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
struct input_device *idev = btd_service_get_user_data(service);
struct uhid_event ev;
static int hog_probe(struct btd_service *service)
{
struct btd_device *device = btd_service_get_device(service);
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
GSList *primaries, *l;
DBG("path %s", path);
static void hog_remove(struct btd_service *service)
{
struct btd_device *device = btd_service_get_device(service);
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
DBG("path %s", path);
{
struct network_conn *nc = data;
DBusConnection *conn = btd_get_dbus_connection();
- const char *path = device_get_path(nc->peer->device);
+ const char *path = btd_device_get_path(nc->peer->device);
g_dbus_emit_property_changed(conn, path,
NETWORK_PEER_INTERFACE, "Connected");
{
struct network_conn *nc = user_data;
- info("Network: disconnect %s", device_get_path(nc->peer->device));
+ info("Network: disconnect %s", btd_device_get_path(nc->peer->device));
connection_destroy(NULL, user_data);
}
local_connect_cb(nc, 0);
conn = btd_get_dbus_connection();
- path = device_get_path(nc->peer->device);
+ path = btd_device_get_path(nc->peer->device);
g_dbus_emit_property_changed(conn, path,
NETWORK_PEER_INTERFACE, "Connected");
struct network_peer *peer = data;
DBG("Unregistered interface %s on path %s",
- NETWORK_PEER_INTERFACE, device_get_path(peer->device));
+ NETWORK_PEER_INTERFACE, btd_device_get_path(peer->device));
peers = g_slist_remove(peers, peer);
peer_free(peer);
struct network_peer *peer = conn->peer;
uint16_t id = get_service_id(service);
- DBG("%s id %u", device_get_path(device), id);
+ DBG("%s id %u", btd_device_get_path(device), id);
peer->connections = g_slist_remove(peer->connections, conn);
connection_free(conn);
return;
g_dbus_unregister_interface(btd_get_dbus_connection(),
- device_get_path(device),
+ btd_device_get_path(device),
NETWORK_PEER_INTERFACE);
}
peer = g_new0(struct network_peer, 1);
peer->device = btd_device_ref(device);
- path = device_get_path(device);
+ path = btd_device_get_path(device);
if (g_dbus_register_interface(btd_get_dbus_connection(), path,
NETWORK_PEER_INTERFACE,
struct network_conn *nc;
uint16_t id = get_service_id(service);
- DBG("%s id %u", device_get_path(device), id);
+ DBG("%s id %u", btd_device_get_path(device), id);
peer = find_peer(peers, device);
if (!peer) {
if (!condev)
return;
- path = device_get_path(condev->device);
+ path = btd_device_get_path(condev->device);
alert_level_str = get_alert_level_string(alert_level);
DBG("alert %s remote %s", alert_level_str, path);
if (!condev->device)
return;
- path = device_get_path(condev->device);
+ path = btd_device_get_path(condev->device);
alert_level_str = get_alert_level_string(condev->alert_level);
DBG("alert %s remote %s", alert_level_str, path);
{
struct monitor *monitor = user_data;
struct btd_device *device = monitor->device;
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
if (status != 0) {
error("Link Loss Write Request failed: %s",
static gboolean immediate_timeout(gpointer user_data)
{
struct monitor *monitor = user_data;
- const char *path = device_get_path(monitor->device);
+ const char *path = btd_device_get_path(monitor->device);
monitor->immediateto = 0;
static void immediate_written(gpointer user_data)
{
struct monitor *monitor = user_data;
- const char *path = device_get_path(monitor->device);
+ const char *path = btd_device_get_path(monitor->device);
g_free(monitor->fallbacklevel);
monitor->fallbacklevel = NULL;
static void attio_disconnected_cb(gpointer user_data)
{
struct monitor *monitor = user_data;
- const char *path = device_get_path(monitor->device);
+ const char *path = btd_device_get_path(monitor->device);
g_attrib_unref(monitor->attrib);
monitor->attrib = NULL;
static struct monitor *register_monitor(struct btd_device *device)
{
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
struct monitor *monitor;
char *level;
static void cleanup_monitor(struct monitor *monitor)
{
struct btd_device *device = monitor->device;
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
if (monitor->immediate != NULL || monitor->txpower != NULL)
return;
{
struct btd_device *device = data;
struct reporter_adapter *radapter = user_data;
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
DBG("unregister on device %s", path);
static void register_reporter_device(struct btd_device *device,
struct reporter_adapter *radapter)
{
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
DBG("register on device %s", path);
}
g_dbus_emit_property_changed(btd_get_dbus_connection(),
- device_get_path(t->dev),
+ btd_device_get_path(t->dev),
THERMOMETER_INTERFACE, name);
}
{
struct watcher *w = data;
struct measurement *m = user_data;
- const char *path = device_get_path(m->t->dev);
+ const char *path = btd_device_get_path(m->t->dev);
DBusMessageIter iter;
DBusMessageIter dict;
DBusMessage *msg;
static int thermometer_register(struct btd_device *device,
struct gatt_primary *tattr)
{
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
struct thermometer *t;
struct btd_adapter *adapter;
struct thermometer_adapter *tadapter;
tadapter->devices = g_slist_remove(tadapter->devices, t);
g_dbus_unregister_interface(btd_get_dbus_connection(),
- device_get_path(t->dev), THERMOMETER_INTERFACE);
+ btd_device_get_path(t->dev),
+ THERMOMETER_INTERFACE);
}
static const GDBusMethodTable thermometer_manager_methods[] = {
{
const struct btd_device *device = a;
const char *path = b;
- const char *dev_path = device_get_path(device);
+ const char *dev_path = btd_device_get_path(device);
return strcasecmp(dev_path, path);
}
if (g_slist_find(adapter->connect_list, device)) {
DBG("ignoring already added device %s",
- device_get_path(device));
+ btd_device_get_path(device));
return 0;
}
if (!(adapter->supported_settings & MGMT_SETTING_LE)) {
error("Can't add %s to non-LE capable adapter connect list",
- device_get_path(device));
+ btd_device_get_path(device));
return -ENOTSUP;
}
adapter->connect_list = g_slist_append(adapter->connect_list, device);
- DBG("%s added to %s's connect_list", device_get_path(device),
+ DBG("%s added to %s's connect_list", btd_device_get_path(device),
adapter->system_name);
if (!(adapter->current_settings & MGMT_SETTING_POWERED))
if (!g_slist_find(adapter->connect_list, device)) {
DBG("device %s is not on the list, ignoring",
- device_get_path(device));
+ btd_device_get_path(device));
return;
}
adapter->connect_list = g_slist_remove(adapter->connect_list, device);
- DBG("%s removed from %s's connect_list", device_get_path(device),
- adapter->system_name);
+ DBG("%s removed from %s's connect_list",
+ btd_device_get_path(device), adapter->system_name);
if (!adapter->connect_list) {
stop_passive_scanning(adapter);
adapter->connections = g_slist_remove(adapter->connections, device);
if (device_is_temporary(device) && !device_is_retrying(device)) {
- const char *path = device_get_path(device);
+ const char *path = btd_device_get_path(device);
DBG("Removing temporary device %s", path);
btd_adapter_remove_device(adapter, device);
goto next;
}
- dev_path = device_get_path(device);
+ dev_path = btd_device_get_path(device);
if (agent_authorize_service(auth->agent, dev_path, auth->uuid,
agent_auth_cb, adapter, NULL) < 0) {
void *user_data, GDestroyNotify destroy)
{
struct agent_request *req;
- const char *dev_path = device_get_path(device);
+ const char *dev_path = btd_device_get_path(device);
int err;
if (agent->request)
GDestroyNotify destroy)
{
struct agent_request *req;
- const char *dev_path = device_get_path(device);
+ const char *dev_path = btd_device_get_path(device);
int err;
if (agent->request)
void *user_data, GDestroyNotify destroy)
{
struct agent_request *req;
- const char *dev_path = device_get_path(device);
+ const char *dev_path = btd_device_get_path(device);
int err;
if (agent->request)
GDestroyNotify destroy)
{
struct agent_request *req;
- const char *dev_path = device_get_path(device);
+ const char *dev_path = btd_device_get_path(device);
int err;
if (agent->request)
uint32_t passkey, uint16_t entered)
{
DBusMessage *message;
- const char *dev_path = device_get_path(device);
+ const char *dev_path = btd_device_get_path(device);
message = dbus_message_new_method_call(agent->owner, agent->path,
AGENT_INTERFACE, "DisplayPasskey");
void *user_data, GDestroyNotify destroy)
{
struct agent_request *req;
- const char *dev_path = device_get_path(device);
+ const char *dev_path = btd_device_get_path(device);
int err;
if (agent->request)
return &device->bdaddr;
}
-const char *device_get_path(const struct btd_device *device)
+const char *btd_device_get_path(const struct btd_device *device)
{
if (!device)
return NULL;
void device_remove_profile(gpointer a, gpointer b);
struct btd_adapter *device_get_adapter(struct btd_device *device);
const bdaddr_t *device_get_address(struct btd_device *device);
-const char *device_get_path(const struct btd_device *device);
+const char *btd_device_get_path(const struct btd_device *device);
gboolean device_is_temporary(struct btd_device *device);
bool device_is_paired(struct btd_device *device, uint8_t bdaddr_type);
bool device_is_bonded(struct btd_device *device, uint8_t bdaddr_type);
dbus_message_iter_init_append(msg, &iter);
- path = device_get_path(conn->device);
+ path = btd_device_get_path(conn->device);
dbus_message_iter_append_basic(&iter, DBUS_TYPE_OBJECT_PATH, &path);
fd = g_io_channel_unix_get_fd(conn->io);
return -ENOMEM;
}
- path = device_get_path(conn->device);
+ path = btd_device_get_path(conn->device);
dbus_message_append_args(msg, DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID);