Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/libadblockplus/FilterEngine.java

Issue 5153282527854592: Issue 98 - Use the libadblockplus update mechanism (Closed)
Patch Set: Store logging tag in a constant Created Sept. 26, 2014, 1:15 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/org/adblockplus/libadblockplus/FilterEngine.java
===================================================================
--- a/src/org/adblockplus/libadblockplus/FilterEngine.java
+++ b/src/org/adblockplus/libadblockplus/FilterEngine.java
@@ -72,6 +72,16 @@
return fetchAvailableSubscriptions(this.ptr);
}
+ public void removeUpdateAvailableCallback()
+ {
+ removeUpdateAvailableCallback(this.ptr);
+ }
+
+ public void setUpdateAvailableCallback(final UpdateAvailableCallback callback)
+ {
+ setUpdateAvailableCallback(this.ptr, callback.ptr);
+ }
+
public void removeFilterChangeCallback()
{
removeFilterChangeCallback(this.ptr);
@@ -155,6 +165,10 @@
private final static native List<Subscription> fetchAvailableSubscriptions(long ptr);
+ private final static native void removeUpdateAvailableCallback(long ptr);
+
+ private final static native void setUpdateAvailableCallback(long ptr, long filterPtr);
+
private final static native void removeFilterChangeCallback(long ptr);
private final static native void setFilterChangeCallback(long ptr, long filterPtr);

Powered by Google App Engine
This is Rietveld