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..83db38c285e23b3ea12ebc2649cec00a78ea9038 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 JniJsValueList2ArrayList(JNIEnv* env, AdblockPlus::JsValueList& list); |
Felix Dahlke
2014/03/28 17:28:41
Ha, another function where I vote for a s/2/To/!
René Jeschke
2014/04/11 12:25:53
Done.
|
+ |
+AdblockPlus::JsValue* JniGetJsValue(jlong ptr); |
+ |
+AdblockPlus::JsValuePtr& JniGetJsValuePtr(jlong ptr); |
+ |
+#endif /* JNIJSVALUE_H */ |