26#include "org_direct_bt_BTFactory.h"
28#include <direct_bt/version.h>
37 std::string api_version = std::string(DIRECT_BT_VERSION);
38 return env->NewStringUTF(api_version.c_str());
50 std::string api_version = std::string(DIRECT_BT_VERSION_API);
51 return env->NewStringUTF(api_version.c_str());
65 if( name.length() > 0 ) {
66 if( value.length() > 0 ) {
67 setenv(name.c_str(), value.c_str(), overwrite);
69 setenv(name.c_str(),
"true", overwrite);
jstring Java_org_direct_1bt_BTFactory_getNativeVersion(JNIEnv *env, jclass clazz)
void Java_org_direct_1bt_BTFactory_setenv(JNIEnv *env, jclass clazz, jstring jname, jstring jval, jboolean overwrite)
jstring Java_org_direct_1bt_BTFactory_getNativeAPIVersion(JNIEnv *env, jclass clazz)
std::string from_jstring_to_string(JNIEnv *env, jstring str)
#define rethrow_and_raise_java_exception(E)
Re-throw current exception and raise respective java exception using any matching function above.