This PR adds a new non-owned user_data field to both Adapter and Device, which allows users to store application context inside of these primitives. Without this, applications need to keep their own external data structures that map Adapter and Device to the application context, for lookup inside of bluez_inc callbacks that only provide Adapter * and/or Device *.
This PR adds a new non-owned
user_data
field to bothAdapter
andDevice
, which allows users to store application context inside of these primitives. Without this, applications need to keep their own external data structures that mapAdapter
andDevice
to the application context, for lookup inside ofbluez_inc
callbacks that only provideAdapter *
and/orDevice *
.