| 53 | } |
| 54 | |
| 55 | JNIEXPORT void JNICALL |
| 56 | Java_com_cactus_CactusJNI_nativeSetCacheDir(JNIEnv* env, jobject, jstring cacheDir) { |
| 57 | const char* dir = jstring_to_cstr(env, cacheDir); |
| 58 | cactus_set_telemetry_environment(nullptr, dir, nullptr); |
| 59 | release_jstring(env, cacheDir, dir); |
| 60 | } |
| 61 | |
| 62 | JNIEXPORT jlong JNICALL |
| 63 | Java_com_cactus_CactusJNI_nativeInit(JNIEnv* env, jobject, jstring modelPath, jstring corpusDir, jboolean cacheIndex) { |
nothing calls this directly
no test coverage detected