summaryrefslogtreecommitdiff
path: root/profiles/thermometer/thermometer.c
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/thermometer/thermometer.c')
-rw-r--r--profiles/thermometer/thermometer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/profiles/thermometer/thermometer.c b/profiles/thermometer/thermometer.c
index b0fc3e005..3a93a689f 100644
--- a/profiles/thermometer/thermometer.c
+++ b/profiles/thermometer/thermometer.c
@@ -273,7 +273,7 @@ static void change_property(struct thermometer *t, const char *name,
}
g_dbus_emit_property_changed(btd_get_dbus_connection(),
- device_get_path(t->dev),
+ btd_device_get_path(t->dev),
THERMOMETER_INTERFACE, name);
}
@@ -281,7 +281,7 @@ static void update_watcher(gpointer data, gpointer user_data)
{
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;
@@ -1150,7 +1150,7 @@ static void attio_disconnected_cb(gpointer user_data)
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;
@@ -1209,7 +1209,8 @@ static void thermometer_unregister(struct btd_device *device)
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[] = {