Index: libadblockplus-android/jni/Utils.h |
diff --git a/libadblockplus-android/jni/Utils.h b/libadblockplus-android/jni/Utils.h |
index bfa1776ae7e2c0f0abb3baf54403ab8f0b872cf6..1f525b35cdf97148c39311d0efb929e143c4eee2 100644 |
--- a/libadblockplus-android/jni/Utils.h |
+++ b/libadblockplus-android/jni/Utils.h |
@@ -171,6 +171,11 @@ inline int64_t JniGetLongField(JNIEnv* env, jclass clazz, jobject jObj, const ch |
return (int64_t)env->GetLongField(jObj, env->GetFieldID(clazz, name, "J")); |
} |
+inline jobjectArray JniGetStringArrayField(JNIEnv* env, jclass clazz, jobject jObj, const char* name) |
+{ |
+ return (jobjectArray)env->GetObjectField(jObj, env->GetFieldID(clazz, name, "[Ljava/lang/String;")); |
+} |
+ |
jobject NewJniArrayList(JNIEnv* env); |
jobject NewJniFilter(JNIEnv* env, const AdblockPlus::FilterPtr& filter); |