diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2010-12-13 11:12:03 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-12-13 11:41:20 +0200 |
commit | 00c2267405ff3416672401cf394f06017a6814c1 (patch) | |
tree | 0af0f9a0ae102736b561e0265116f36a45ec164f /src/manager.c | |
parent | 401be3748717fae613041592778a3a7160fb763c (diff) |
Refactor class of device (and related values) handling to adapter_ops
The management interface will move class of device and extended inquiry
response handling to the kernel side so the same functionality needs to
be moved into hciops. These features are quite tightly coupled in
bluetoothd so splitting this into multiple patches would have been hard
(if not impossible). Thus this quite large single commit.
Diffstat (limited to 'src/manager.c')
-rw-r--r-- | src/manager.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/manager.c b/src/manager.c index 939a5639..ccaa1a23 100644 --- a/src/manager.c +++ b/src/manager.c @@ -59,11 +59,6 @@ const char *manager_get_base_path(void) return base_path; } -void manager_update_svc(struct btd_adapter* adapter, uint8_t svc) -{ - adapter_set_service_classes(adapter, svc); -} - static inline DBusMessage *no_such_adapter(DBusMessage *msg) { return g_dbus_create_error(msg, @@ -504,3 +499,14 @@ void btd_manager_set_offline(gboolean offline) btd_adapter_restore_powered(adapter); } } + +void btd_manager_set_did(uint16_t vendor, uint16_t product, uint16_t version) +{ + GSList *l; + + for (l = adapters; l != NULL; l = g_slist_next(l)) { + struct btd_adapter *adapter = l->data; + + btd_adapter_set_did(adapter, vendor, product, version); + } +} |