It better suits what this function really does. --- src/adapter.c | 2 +- src/adapter.h | 2 +- src/mgmt.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index d31862f..8c94574 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -2245,7 +2245,7 @@ void btd_adapter_get_mode(struct btd_adapter *adapter, uint8_t *mode, *pairable = adapter->pairable; } -void btd_adapter_get_class(struct btd_adapter *adapter, uint8_t *major, +void btd_adapter_read_class(struct btd_adapter *adapter, uint8_t *major, uint8_t *minor) { uint8_t cls[3]; diff --git a/src/adapter.h b/src/adapter.h index 340d55c..0d5857c 100644 --- a/src/adapter.h +++ b/src/adapter.h @@ -84,7 +84,7 @@ void btd_adapter_get_mode(struct btd_adapter *adapter, uint8_t *mode, uint16_t *discoverable_timeout, gboolean *pairable); -void btd_adapter_get_class(struct btd_adapter *adapter, uint8_t *major, +void btd_adapter_read_class(struct btd_adapter *adapter, uint8_t *major, uint8_t *minor); const char *btd_adapter_get_name(struct btd_adapter *adapter); struct btd_device *adapter_get_device(struct btd_adapter *adapter, diff --git a/src/mgmt.c b/src/mgmt.c index 462e02b..d273b2b 100644 --- a/src/mgmt.c +++ b/src/mgmt.c @@ -1116,7 +1116,7 @@ static void read_info_complete(int sk, uint16_t index, void *buf, size_t len) else adapter_name_changed(adapter, (char *) rp->name); - btd_adapter_get_class(adapter, &major, &minor); + btd_adapter_read_class(adapter, &major, &minor); mgmt_set_dev_class(index, major, minor); btd_adapter_get_mode(adapter, &mode, NULL, NULL, NULL); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html