From 52a124ee19a84ca68171dbe88057d8b01b9d16d8 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 16 Aug 2007 18:28:34 +0000 Subject: Rename device helpers to adapter helpers --- hcid/device.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'hcid/device.c') diff --git a/hcid/device.c b/hcid/device.c index b3c9b050..e7e3fbda 100644 --- a/hcid/device.c +++ b/hcid/device.c @@ -92,7 +92,7 @@ static struct hci_dev devices[MAX_DEVICES]; #define ASSERT_DEV_ID { if (dev_id >= MAX_DEVICES) return -ERANGE; } -void init_devices(void) +void init_adapters(void) { int i; @@ -124,7 +124,7 @@ static int device_read_bdaddr(uint16_t dev_id, bdaddr_t *bdaddr) return 0; } -int add_device(uint16_t dev_id) +int add_adapter(uint16_t dev_id) { struct hci_dev *dev; struct hci_dev_info di; @@ -157,7 +157,7 @@ int add_device(uint16_t dev_id) return 0; } -int remove_device(uint16_t dev_id) +int remove_adapter(uint16_t dev_id) { struct hci_dev *dev; @@ -227,7 +227,7 @@ static void update_ext_inquiry_response(int dd, struct hci_dev *dev) strerror(errno), errno); } -int start_device(uint16_t dev_id) +int start_adapter(uint16_t dev_id) { struct hci_dev *dev; struct hci_version ver; @@ -357,7 +357,7 @@ done: return 0; } -int stop_device(uint16_t dev_id) +int stop_adapter(uint16_t dev_id) { ASSERT_DEV_ID; -- cgit