aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native/NewtCommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/native/NewtCommon.h')
-rw-r--r--src/newt/native/NewtCommon.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/newt/native/NewtCommon.h b/src/newt/native/NewtCommon.h
new file mode 100644
index 000000000..f5835f7c8
--- /dev/null
+++ b/src/newt/native/NewtCommon.h
@@ -0,0 +1,15 @@
+
+#ifndef NEWT_COMMON_H
+#define NEWT_COMMON_H 1
+
+#include <jni.h>
+#include <stdlib.h>
+
+void NewtCommon_init(JNIEnv *env);
+
+jchar* NewtCommon_GetNullTerminatedStringChars(JNIEnv* env, jstring str);
+
+void NewtCommon_FatalError(JNIEnv *env, const char* msg, ...);
+void NewtCommon_throwNewRuntimeException(JNIEnv *env, const char* msg, ...);
+
+#endif