summaryrefslogtreecommitdiffstats
path: root/java/jni
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-04-27 13:36:08 +0200
committerSven Gothel <[email protected]>2020-04-27 13:36:08 +0200
commit7e0d17032ca138cc55e02ca1a9e2ee540b772d2e (patch)
treedf31e1886ee9b36a197407aac502af22dd8a31a5 /java/jni
parent3f546e7862820e9bf3493c29764f09cf37877402 (diff)
Wire AdapterInfo w/ MgmtEvtNewSettings and MgmtEvtLocalNameChanged; AdapterInfo's settings of type MgmtSetting (align semantics and parse)
AdapterInfo will be updated via MgmtEvtLocalNameChanged and MgmtEvtNewSettings, hence respective fields are mutable. AdapterInfo's settings are now of type MgmtSetting (align semantics and parse). DBTManager's use of AdapterInfo shared_ptr is mutable now, removed 'const'.
Diffstat (limited to 'java/jni')
-rw-r--r--java/jni/direct_bt/DBTManager.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/jni/direct_bt/DBTManager.cxx b/java/jni/direct_bt/DBTManager.cxx
index 4d4864a4..9f045d3b 100644
--- a/java/jni/direct_bt/DBTManager.cxx
+++ b/java/jni/direct_bt/DBTManager.cxx
@@ -69,7 +69,8 @@ jobject Java_direct_1bt_tinyb_DBTManager_getDefaultAdapterImpl(JNIEnv *env, jobj
try {
DBTManager *manager = getInstance<DBTManager>(env, obj);
DBG_PRINT("Java_direct_1bt_tinyb_DBTManager_getDefaultAdapterImpl: Manager %s", manager->toString().c_str());
- int defAdapterIdx = manager->getDefaultAdapterIdx();
+ (void) manager;
+ const int defAdapterIdx = 0;
DBTAdapter * adapter = new DBTAdapter(defAdapterIdx);
if( !adapter->isValid() ) {
delete adapter;