aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/JNIMem.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Initial working Java binding for the direct_bt C++ moduleSven Gothel2020-04-201-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example ScannerTinyB01 demonstrates efficient scanning devices using the new BluetoothDeviceDiscoveryListener interface. The C++ HCIObject extends JavaUplink, which handles the java object references via 'std::shared_ptr<JavaAnonObj>', where JavaAnonObj relies on later polymorph specialization. JavaAnonObj gets derived in the java/jni of direct_bt, where the JNI header + libraries are available. +++ The java inplementing NativeDownlink implementations store the nativeInstance to the C++ instances as well as handle their java references within the native instances. The C++ JavaUplink and Java NativeDownlink interfaces are complete the cross referencing java <-> native. +++ Native libraries are now split into pairs: - tinyb + javatinyb - direct_bt + javadirect_bt TODO: BluetoothFactory must chose the proper bundle! +++ The Java Adapter received a BluetoothDeviceDiscoveryListener hook, matching C++ Adapter's HCIDeviceDiscoveryListener. Since the Java Adapter implements its own discovery thread, using the BluetoothDeviceDiscoveryListener is more efficient then polling over a list of Devices fetched. ++++ TODO: Align Java and C++ class names, foremost in the C++ direct_bt space. TODO: Bind the whole C++ GATT functionality More testing.
* JNIEnvContainer::attach/detach: Reuse GetEnv's JNIEnv if available and don't ↵Sven Gothel2020-02-051-0/+1
| | | | detach GetEnv's JNIEnv.
* java: Refactor JNIMem classesPetre Eftime2016-07-061-40/+28
| | | | Signed-off-by: Petre Eftime <[email protected]>
* Add license headers where missingPetre Eftime2016-07-061-0/+24
| | | | Signed-off-by: Petre Eftime <[email protected]>
* java: Add initial support for Java notificationsPetre Eftime2016-07-011-0/+65
Signed-off-by: Petre Eftime <[email protected]>