summaryrefslogtreecommitdiff
path: root/src/device.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-03-02 17:10:07 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-03-10 13:41:06 -0800
commit3815ad119dcdc03df2a027f0eda4979d8d601846 (patch)
tree7322e64ce39190e5028f3c723e0c81fc46699f49 /src/device.h
parent5bac4cddb191c8ce28ca40747b5d7b0247ae504c (diff)
downloadbluez-3815ad119dcdc03df2a027f0eda4979d8d601846.tar.gz
core: Add initial implementation of DeviceSet interface
This adds the initial implementation of DeviceSet interface as documented in doc/set-api.rst.
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/device.h b/src/device.h
index 26d6b7fb4..3252e14ef 100644
--- a/src/device.h
+++ b/src/device.h
@@ -129,8 +129,10 @@ void device_remove_connection(struct btd_device *device, uint8_t bdaddr_type,
bool *remove);
void device_request_disconnect(struct btd_device *device, DBusMessage *msg);
bool device_is_disconnecting(struct btd_device *device);
-void device_set_ltk_enc_size(struct btd_device *device, uint8_t enc_size);
-
+void device_set_ltk(struct btd_device *device, const uint8_t val[16],
+ bool central, uint8_t enc_size);
+bool btd_device_add_set(struct btd_device *device, bool encrypted,
+ uint8_t sirk[16], uint8_t size, uint8_t rank);
void device_store_svc_chng_ccc(struct btd_device *device, uint8_t bdaddr_type,
uint16_t value);
void device_load_svc_chng_ccc(struct btd_device *device, uint16_t *ccc_le,
@@ -189,3 +191,8 @@ void btd_device_cleanup(void);
void btd_device_set_volume(struct btd_device *dev, int8_t volume);
int8_t btd_device_get_volume(struct btd_device *dev);
+
+typedef void (*bt_device_ad_func_t)(void *data, void *user_data);
+
+void btd_device_foreach_ad(struct btd_device *dev, bt_device_ad_func_t func,
+ void *data);