From 7e0d17032ca138cc55e02ca1a9e2ee540b772d2e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 27 Apr 2020 13:36:08 +0200 Subject: 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'. --- java/jni/direct_bt/DBTManager.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java/jni') 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(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; -- cgit v1.2.3