summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-manager.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-02-27 08:54:01 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-02-27 08:54:01 +0000
commitcf12a4343611b930c2178b962cd9a4f956a05447 (patch)
tree16cb4b7595ab7f245aed96b80542cfea17459e76 /hcid/dbus-manager.c
parent20b31004375588fd454b7069acaa714028e48a64 (diff)
Rename Device into Adapter
Diffstat (limited to 'hcid/dbus-manager.c')
-rw-r--r--hcid/dbus-manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hcid/dbus-manager.c b/hcid/dbus-manager.c
index 64b733e7..6981d9d2 100644
--- a/hcid/dbus-manager.c
+++ b/hcid/dbus-manager.c
@@ -89,7 +89,7 @@ static DBusMessage *handle_mgr_list_devices_req(DBusMessage *msg, void *data)
if (ioctl(sk, HCIGETDEVINFO, &di) < 0)
continue;
- snprintf(path, sizeof(path), "%s/%s", DEVICE_PATH, di.name);
+ snprintf(path, sizeof(path), "%s/%s", ADAPTER_PATH, di.name);
dbus_message_iter_append_basic(&array_iter,
DBUS_TYPE_STRING, &path_ptr);
@@ -118,7 +118,7 @@ static DBusMessage *handle_mgr_default_device_req(DBusMessage *msg, void *data)
if (!reply)
return error_out_of_memory(msg);
- snprintf(path, sizeof(path), "%s/hci%d", DEVICE_PATH, default_dev);
+ snprintf(path, sizeof(path), "%s/hci%d", ADAPTER_PATH, default_dev);
dbus_message_append_args(reply, DBUS_TYPE_STRING, &path_ptr,
DBUS_TYPE_INVALID);
@@ -127,8 +127,8 @@ static DBusMessage *handle_mgr_default_device_req(DBusMessage *msg, void *data)
}
static const struct service_data mgr_services[] = {
- { MGR_LIST_DEVICES, handle_mgr_list_devices_req, MGR_LIST_DEVICES_SIGNATURE },
- { MGR_DEFAULT_DEVICE, handle_mgr_default_device_req, MGR_DEFAULT_DEVICE_SIGNATURE },
+ { MGR_LIST_ADAPTERS, handle_mgr_list_devices_req, MGR_LIST_ADAPTERS_SIGNATURE },
+ { MGR_DEFAULT_ADAPTER, handle_mgr_default_device_req, MGR_DEFAULT_ADAPTER_SIGNATURE },
{ NULL, NULL, NULL }
};