summaryrefslogtreecommitdiffstats
path: root/api/direct_bt/DBTAdapter.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-10-16 04:31:06 +0200
committerSven Gothel <[email protected]>2020-10-16 04:31:06 +0200
commitb477d8d7057d367feb0d87cccb212221b5992f82 (patch)
tree6fb66f2349363f871d15a121bd583841b2b39c39 /api/direct_bt/DBTAdapter.hpp
parent50fcf6a3781b4f3be7899c0e4a42c7b4a1505833 (diff)
Extract common C++ Support Library inclusive Java JNI Binding to sub-project jaucpp, namespace jau
Diffstat (limited to 'api/direct_bt/DBTAdapter.hpp')
-rw-r--r--api/direct_bt/DBTAdapter.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/api/direct_bt/DBTAdapter.hpp b/api/direct_bt/DBTAdapter.hpp
index deb83029..2e0268b2 100644
--- a/api/direct_bt/DBTAdapter.hpp
+++ b/api/direct_bt/DBTAdapter.hpp
@@ -151,6 +151,13 @@ namespace direct_bt {
// *************************************************
// *************************************************
// *************************************************
+ template <typename T> class CowList
+ {
+ bool add(T);
+ bool remove(T);
+ int removeAll();
+ int size();
+ };
/**
* DBTAdapter represents one Bluetooth Controller.
@@ -300,7 +307,7 @@ namespace direct_bt {
*/
inline void checkValidAdapter() const {
if( !isValid() ) {
- throw IllegalStateException("Adapter state invalid: "+aptrHexString(this)+", "+toString(), E_FILE_LINE);
+ throw jau::IllegalStateException("Adapter state invalid: "+jau::aptrHexString(this)+", "+toString(), E_FILE_LINE);
}
}