2013-04-26 16:59:16 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Android Event System
|
|
|
|
*
|
|
|
|
* Copyright 2013 Felix Long
|
2013-12-04 14:37:57 +04:00
|
|
|
* Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
|
2013-04-26 16:59:16 +04:00
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
2017-06-06 15:01:41 +03:00
|
|
|
#ifndef FREERDP_CLIENT_ANDROID_JNI_UTILS_H
|
|
|
|
#define FREERDP_CLIENT_ANDROID_JNI_UTILS_H
|
2013-04-26 16:59:16 +04:00
|
|
|
|
|
|
|
#include <jni.h>
|
2016-10-17 11:24:30 +03:00
|
|
|
#include <freerdp/api.h>
|
2013-04-26 16:59:16 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
FREERDP_LOCAL JNIEnv* getJNIEnv();
|
|
|
|
FREERDP_LOCAL JavaVM* getJavaVM();
|
2013-04-26 16:59:16 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
FREERDP_LOCAL char* get_string_from_string_builder(JNIEnv* env, jobject strBuilder);
|
|
|
|
FREERDP_LOCAL jobject create_string_builder(JNIEnv* env, char* initialStr);
|
|
|
|
FREERDP_LOCAL jstring jniNewStringUTF(JNIEnv* env, const char* in, int len);
|
2016-02-01 17:25:40 +03:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
FREERDP_LOCAL extern JavaVM* g_JavaVm;
|
2013-04-26 16:59:16 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_CLIENT_ANDROID_JNI_UTILS_H */
|