-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Linux] Wrap BlueZ connection functions in a class (#29798)
* Do not use BLE_CONNECTION_OBJECT by internal implementation * Wrap BluezConnection in a class * Store const ref to connection in ConnectionDataBundle * Simplify get connection MTU method * Add proxy method for getting device address * Allocate ConnectionDataBundle on stack * Add destructor to IOChannel * Remove Bluez from public method names * Move IO channels creation to BluezConnection * Fix notify callback setup for additional advertising * Fix FD leak in case of g_variant_lookup failure * Move IO channel handlers to BluezConnection class * Manage IOChannel members with GAutoPtr * Use on-stack array for reading characteristic * Document FD closing behavior by setup methods * Fix GSource deleter
- Loading branch information
Showing
5 changed files
with
409 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.