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

Unified Diff: libadblockplus-android/jni/JniFilter.h

Issue 29354787: Issue 4442 - Cache class and ctors references in JNI_Load/UnLoad (Closed)
Patch Set: Created Sept. 23, 2016, 12:55 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: libadblockplus-android/jni/JniFilter.h
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/NoOpUpdaterCallback.java b/libadblockplus-android/jni/JniFilter.h
similarity index 76%
copy from libadblockplus-android-tests/src/org/adblockplus/libadblockplus/NoOpUpdaterCallback.java
copy to libadblockplus-android/jni/JniFilter.h
index a7988cb8b932e37f6014c4b55763ac95357e5662..b124e0f875d6b76929468edc9c452c82a2b6a21b 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/NoOpUpdaterCallback.java
+++ b/libadblockplus-android/jni/JniFilter.h
@@ -15,12 +15,13 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-package org.adblockplus.libadblockplus;
anton 2016/09/23 13:07:09 rietveld bug - the file did not exist before
+#ifndef JNIFILTER_H
+#define JNIFILTER_H
-public class NoOpUpdaterCallback extends UpdateCheckDoneCallback
-{
- @Override
- public void updateCheckDoneCallback(String error)
- {
- }
-}
+#include <jni.h>
+
+void JniFilter_OnLoad(JavaVM* vm, JNIEnv* env, void* reserved);
+
+void JniFilter_OnUnload(JavaVM* vm, JNIEnv* env, void* reserved);
+
+#endif /* JNIFILTER_H */

Powered by Google App Engine
This is Rietveld