diff options
author | Sven Gothel <[email protected]> | 2021-09-29 16:27:33 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-09-29 16:27:33 +0200 |
commit | 3479a989b08373790b534bfb2cfbe39ed317f482 (patch) | |
tree | 76194d154325bed7790b8628096f0350bed6f6b1 /api/direct_bt/BTGattHandler.hpp | |
parent | a3444c4f28076a14c8ca4bfc4e935098267d42b6 (diff) |
Fix BTGattChar::removeCharListener(..): Polymorph BTGattCharListener derivations require a RTTI alike typeid to cast and compare.
We utilize jau::type_name_cue for this task,
providing simple access and provision of a typename string representation
at compile time like RTTI.
Note: We don't require RTTI to be included.
The jau::type_name_cue idea is inspired by clang's (???) previous fast RTTI replacement.
Diffstat (limited to 'api/direct_bt/BTGattHandler.hpp')
-rw-r--r-- | api/direct_bt/BTGattHandler.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/api/direct_bt/BTGattHandler.hpp b/api/direct_bt/BTGattHandler.hpp index 648574c6..1592c238 100644 --- a/api/direct_bt/BTGattHandler.hpp +++ b/api/direct_bt/BTGattHandler.hpp @@ -490,7 +490,6 @@ namespace direct_bt { * </p> */ bool removeCharListener(const BTGattCharListener * l) noexcept; - /** * Remove all {@link BTGattCharListener} from the list, which are associated to the given {@link BTGattChar}. @@ -519,6 +518,13 @@ namespace direct_bt { jau::nsize_t getCharListenerCount() const noexcept { return characteristicListenerList.size(); } /** + * Print a list of all BTGattCharListener. + * + * This is merely a facility for debug and analysis. + */ + void printCharListener() noexcept; + + /** * Enable or disable sending an immediate confirmation for received indication events from the device. * <p> * Default value is true. |