diff options
author | Sven Gothel <[email protected]> | 2021-09-15 10:50:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-09-15 10:50:04 +0200 |
commit | 9ce665e96f5b87d83e909330f262378810a8cbb3 (patch) | |
tree | 74484ccdde505c758bd5d0f99da78e49ebe20178 /java/jau/direct_bt/DBTManager.java | |
parent | 9b69298eb95b7a0dd7a0d28103fd9b4d03c0a06a (diff) |
Multi Direct-BT application, each using 1 adapter: Have user explicitly initialize adapter with given BTMode, leave others untouched.
Only mutating the desired adapter within one application allows
running multiple Direct-BT applications on one platform,
each using one selected adapter.
BTMode:
- Use byte value, matching native counterpart
BTManager:
- Remove (default) BTMode
BTAdapter:
- Add initialze(const BTMode btMode=BTMode::DUAL),
must be called by user for desired adapter when found
via ChangedAdapterSetFunc/BTManager.ChangedAdapterSetListener.
AdapterInfo:
- Expose mutable ops to public, remove friend decl.
Diffstat (limited to 'java/jau/direct_bt/DBTManager.java')
-rw-r--r-- | java/jau/direct_bt/DBTManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jau/direct_bt/DBTManager.java b/java/jau/direct_bt/DBTManager.java index 9a943a8d..37972726 100644 --- a/java/jau/direct_bt/DBTManager.java +++ b/java/jau/direct_bt/DBTManager.java @@ -370,11 +370,11 @@ public class DBTManager implements BTManager } } - private native void initImpl(final boolean unifyUUID128Bit, final int btMode) throws BTException; + private native void initImpl(final boolean unifyUUID128Bit) throws BTException; private native void deleteImpl(long nativeInstance); private DBTManager() { - initImpl(unifyUUID128Bit, BTFactory.DEFAULT_BTMODE.value); + initImpl(unifyUUID128Bit); try { adapters.addAll(getAdapterListImpl()); } catch (final BTException be) { |