diff options
author | Petre Eftime <[email protected]> | 2016-05-04 18:40:55 +0300 |
---|---|---|
committer | Petre Eftime <[email protected]> | 2016-05-04 18:40:55 +0300 |
commit | 07efd90b4c838b39ef5b304b5bc84e1ed229dc27 (patch) | |
tree | f922d4db6ebfd1b1abaacc9494207719b39a59f4 /java/jni/BluetoothManager.cxx | |
parent | 27aaeca01bb2448ea49754c74d23a9fb89900cd9 (diff) |
Add functions to retrieve version information. Check library versions in getBluetoothManager.
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'java/jni/BluetoothManager.cxx')
-rw-r--r-- | java/jni/BluetoothManager.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/jni/BluetoothManager.cxx b/java/jni/BluetoothManager.cxx index 52b0557..568a302 100644 --- a/java/jni/BluetoothManager.cxx +++ b/java/jni/BluetoothManager.cxx @@ -241,3 +241,10 @@ void Java_tinyb_BluetoothManager_delete(JNIEnv *env, jobject obj) delete manager; } +jstring Java_tinyb_BluetoothManager_getNativeAPIVersion(JNIEnv *env, jclass clazz) +{ + (void) clazz; + + BluetoothManager *manager = BluetoothManager::get_bluetooth_manager(); + return env->NewStringUTF(manager->get_api_version().c_str()); +} |