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

Unified Diff: jni/JniJsValue.h

Issue 6606493159784448: New JNI bindings (Closed)
Patch Set: Reuploaded full diff Created March 28, 2014, 3:56 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: 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 */

Powered by Google App Engine
This is Rietveld