Index: libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
index 720223e4d5a6363e2c5623722a5159c293bc7e0a..182ef7499b190366617a73496af6ba2bda33e15c 100644 |
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
@@ -196,6 +196,14 @@ public final class FilterEngine |
updateFiltersAsync(this.ptr, subscriptionUrl); |
} |
+ /** |
+ * Get FilterEngine pointer |
+ * @return C++ FilterEngine instance pointer (AdblockPlus::FilterEngine*) |
+ */ |
+ public long getNativePtr() { |
+ return getNativePtr(this.ptr); |
+ } |
diegocarloslima
2017/09/28 11:55:30
Well, this ain't a good practice to expose/share n
|
+ |
private final static native void registerNatives(); |
private final static native boolean isFirstRun(long ptr); |
@@ -253,4 +261,6 @@ public final class FilterEngine |
private final static native String getAcceptableAdsSubscriptionURL(long ptr); |
private final static native void updateFiltersAsync(long ptr, String subscriptionUrl); |
+ |
+ private final static native long getNativePtr(long ptr); |
} |