Blame client/Android/android_jni_utils.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Android Event System
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2013 Felix Long
Packit 1fb8d4
 * Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
Packit 1fb8d4
 *
Packit 1fb8d4
 * This Source Code Form is subject to the terms of the Mozilla Public
Packit 1fb8d4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
Packit 1fb8d4
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
Packit 1fb8d4
 */
Packit 1fb8d4
#ifndef FREERDP_CLIENT_ANDROID_JNI_UTILS_H
Packit 1fb8d4
#define FREERDP_CLIENT_ANDROID_JNI_UTILS_H
Packit 1fb8d4
Packit 1fb8d4
#include <jni.h>
Packit 1fb8d4
#include <freerdp/api.h>
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit 1fb8d4
extern "C"
Packit 1fb8d4
{
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
FREERDP_LOCAL JNIEnv* getJNIEnv();
Packit 1fb8d4
FREERDP_LOCAL JavaVM* getJavaVM();
Packit 1fb8d4
Packit 1fb8d4
FREERDP_LOCAL char* get_string_from_string_builder(JNIEnv* env,
Packit 1fb8d4
        jobject strBuilder);
Packit 1fb8d4
FREERDP_LOCAL jobject create_string_builder(JNIEnv* env, char* initialStr);
Packit 1fb8d4
FREERDP_LOCAL jstring jniNewStringUTF(JNIEnv* env, const char* in, int len);
Packit 1fb8d4
Packit 1fb8d4
FREERDP_LOCAL extern JavaVM* g_JavaVm;
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit 1fb8d4
}
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CLIENT_ANDROID_JNI_UTILS_H */