Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user_data to Adapter and Device #32

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Conversation

charlesnicholson
Copy link
Contributor

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 *.

@charlesnicholson
Copy link
Contributor Author

Addresses #27

@weliem weliem merged commit ddea7db into weliem:main Apr 9, 2024
1 check passed
@charlesnicholson charlesnicholson deleted the userdata branch April 9, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants