diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-11-03 17:26:30 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-11-09 14:45:51 -0800 |
commit | 37be50d6793eaf6cfbc72b7dd69e3d57b468db2c (patch) | |
tree | 9f346b3023b37e67ab3b8ef7b458d643d24fd4c9 /src/adapter.h | |
parent | 20adf23209c8848fe60742eeedcb714bf92eec2e (diff) | |
download | bluez-37be50d6793eaf6cfbc72b7dd69e3d57b468db2c.tar.gz |
adapter: Set Device Privacy Mode
This adds support for setting Device Privacy flag when enabled in
main.conf via Privacy = device,limited-device.
Diffstat (limited to 'src/adapter.h')
-rw-r--r-- | src/adapter.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/adapter.h b/src/adapter.h index db3c17f23..d191daf5d 100644 --- a/src/adapter.h +++ b/src/adapter.h @@ -219,8 +219,13 @@ int adapter_connect_list_add(struct btd_adapter *adapter, struct btd_device *device); void adapter_connect_list_remove(struct btd_adapter *adapter, struct btd_device *device); -void adapter_set_device_wakeable(struct btd_adapter *adapter, - struct btd_device *dev, bool wakeable); +typedef void (*adapter_set_device_flags_func_t)(uint8_t status, uint16_t length, + const void *param, + void *user_data); +void adapter_set_device_flags(struct btd_adapter *adapter, + struct btd_device *device, uint32_t flags, + adapter_set_device_flags_func_t func, + void *user_data); void adapter_auto_connect_add(struct btd_adapter *adapter, struct btd_device *device); void adapter_auto_connect_remove(struct btd_adapter *adapter, |