2013-01-29 15:59:58 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Android JNI Callback Helpers
|
|
|
|
*
|
|
|
|
* Copyright 2010-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
2013-12-04 14:37:57 +04:00
|
|
|
* Copyright 2011-2013 Thincast Technologies GmbH, Author: Martin Fleisz
|
2013-01-29 15:59:58 +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_CALLBACK_H
|
|
|
|
#define FREERDP_CLIENT_ANDROID_JNI_CALLBACK_H
|
2013-01-29 15:59:58 +04:00
|
|
|
|
|
|
|
#include <jni.h>
|
|
|
|
#include <stdarg.h>
|
2016-10-17 11:24:30 +03:00
|
|
|
#include <freerdp/api.h>
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2016-10-17 11:24:30 +03:00
|
|
|
FREERDP_LOCAL jint init_callback_environment(JavaVM* vm, JNIEnv* env);
|
|
|
|
FREERDP_LOCAL jboolean jni_attach_thread(JNIEnv** env);
|
|
|
|
FREERDP_LOCAL void jni_detach_thread(void);
|
|
|
|
FREERDP_LOCAL void freerdp_callback(const char* callback, const char* signature,
|
|
|
|
...);
|
|
|
|
FREERDP_LOCAL jboolean freerdp_callback_bool_result(const char* callback,
|
|
|
|
const char* signature, ...);
|
|
|
|
FREERDP_LOCAL jint freerdp_callback_int_result(const char* callback,
|
|
|
|
const char* signature, ...);
|
2013-01-29 15:59:58 +04:00
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_CLIENT_ANDROID_JNI_CALLBACK_H */
|
2013-01-29 15:59:58 +04:00
|
|
|
|