Index: jni/JniJsValue.h |
diff --git a/jni/AndroidLogSystem.h b/jni/JniJsValue.h |
similarity index 64% |
copy from jni/AndroidLogSystem.h |
copy to jni/JniJsValue.h |
index a52bf7c876ec5386d99dab0b5aa21f16a7cc087e..43fc200eba7b3a4d89c7f9e5698db39a83ad023f 100644 |
--- a/jni/AndroidLogSystem.h |
+++ b/jni/JniJsValue.h |
@@ -15,16 +15,18 @@ |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
-#ifndef ADBLOCK_PLUS_ANDROID_LOG_SYSTEM_H |
-#define ADBLOCK_PLUS_ANDROID_LOG_SYSTEM_H |
+#ifndef JNIJSVALUE_H |
+#define JNIJSVALUE_H |
-#include <AdblockPlus/LogSystem.h> |
+#include <jni.h> |
+#include <AdblockPlus/JsValue.h> |
-class AndroidLogSystem : public AdblockPlus::LogSystem |
-{ |
-public: |
- void operator()(LogLevel logLevel, const std::string& message, |
- const std::string& source); |
-}; |
+jobject NewJniJsValue(JNIEnv* env, const AdblockPlus::JsValuePtr& jsValue); |
-#endif |
+jobject JniJsValueListToArrayList(JNIEnv* env, AdblockPlus::JsValueList& list); |
+ |
+AdblockPlus::JsValue* JniGetJsValue(jlong ptr); |
+ |
+AdblockPlus::JsValuePtr& JniGetJsValuePtr(jlong ptr); |
+ |
+#endif /* JNIJSVALUE_H */ |