aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/native/NativewindowCommon.h
blob: 5dc5debef446c59e7197a96edcf58dfbaaaf8308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#ifndef NATIVEWINDOW_COMMON_H
#define NATIVEWINDOW_COMMON_H 1

#include <jni.h>
#include <stdlib.h>

int NativewindowCommon_init(JNIEnv *env);

jchar* NativewindowCommon_GetNullTerminatedStringChars(JNIEnv* env, jstring str);

void NativewindowCommon_FatalError(JNIEnv *env, const char* msg, ...);
void NativewindowCommon_throwNewRuntimeException(JNIEnv *env, const char* msg, ...);

#endif