Index: adblock-android/jni/JniPlatform.cpp |
diff --git a/adblock-android/jni/JniPlatform.cpp b/adblock-android/jni/JniPlatform.cpp |
index 11a3a4848a68b78b995f8734007646cc08e92d8a..afa669ccd935210aac24735161969579685b6f74 100644 |
--- a/adblock-android/jni/JniPlatform.cpp |
+++ b/adblock-android/jni/JniPlatform.cpp |
@@ -133,6 +133,15 @@ static void JNICALL JniEnsureFilterEngine(JNIEnv* env, jclass clazz, jlong ptr) |
CATCH_AND_THROW(env) |
} |
+static void JNICALL JniEnsureUpdater(JNIEnv* env, jclass clazz, jlong ptr) |
+{ |
+ try |
+ { |
+ GetPlatformRef(ptr).GetUpdater(); |
+ } |
+ CATCH_AND_THROW(env) |
+} |
+ |
static JNINativeMethod methods[] = |
{ |
{ (char*)"ctor", (char*)"(" TYP("LogSystem") TYP("WebRequest") "Ljava/lang/String;)J", (void*)JniCtor }, |
@@ -141,7 +150,8 @@ static JNINativeMethod methods[] = |
{ (char*)"setUpJsEngine", (char*)"(J" TYP("AppInfo") "J)V", (void*)JniSetUpJsEngine }, |
{ (char*)"getJsEnginePtr", (char*)"(J)J", (void*)JniGetJsEnginePtr }, |
{ (char*)"setUpFilterEngine", (char*)"(J" TYP("IsAllowedConnectionCallback") ")V", (void*)JniSetUpFilterEngine }, |
- { (char*)"ensureFilterEngine", (char*)"(J)V", (void*)JniEnsureFilterEngine } |
+ { (char*)"ensureFilterEngine", (char*)"(J)V", (void*)JniEnsureFilterEngine }, |
+ { (char*)"ensureUpdater", (char*)"(J)V", (void*)JniEnsureUpdater } |
}; |
extern "C" JNIEXPORT void JNICALL Java_org_adblockplus_libadblockplus_Platform_registerNatives(JNIEnv *env, jclass clazz) |