Index: libadblockplus-android/jni/Utils.h |
=================================================================== |
--- a/libadblockplus-android/jni/Utils.h |
+++ b/libadblockplus-android/jni/Utils.h |
@@ -166,16 +166,21 @@ |
return (int32_t)env->GetIntField(jObj, env->GetFieldID(clazz, name, "I")); |
} |
inline int64_t JniGetLongField(JNIEnv* env, jclass clazz, jobject jObj, const char* name) |
{ |
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); |
jobject NewJniSubscription(JNIEnv* env, |
const AdblockPlus::SubscriptionPtr& subscription); |
jobject NewJniNotification(JNIEnv* env, |