2016-02-01 17:25:40 +03:00
|
|
|
/*
|
|
|
|
Android JNI Client Layer
|
|
|
|
|
|
|
|
Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
|
|
|
|
|
2019-11-06 17:24:51 +03: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/.
|
2016-02-01 17:25:40 +03:00
|
|
|
*/
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#ifndef FREERDP_CLIENT_ANDROID_FREERDP_H
|
|
|
|
#define FREERDP_CLIENT_ANDROID_FREERDP_H
|
2016-02-01 17:25:40 +03:00
|
|
|
|
|
|
|
#include <jni.h>
|
|
|
|
|
|
|
|
#include <winpr/crt.h>
|
|
|
|
#include <winpr/clipboard.h>
|
|
|
|
|
|
|
|
#include <freerdp/freerdp.h>
|
|
|
|
#include <freerdp/client/cliprdr.h>
|
|
|
|
|
|
|
|
#include "android_event.h"
|
|
|
|
|
|
|
|
struct android_context
|
|
|
|
{
|
|
|
|
rdpContext rdpCtx;
|
|
|
|
|
|
|
|
ANDROID_EVENT_QUEUE* event_queue;
|
|
|
|
HANDLE thread;
|
|
|
|
|
|
|
|
BOOL is_connected;
|
|
|
|
|
|
|
|
BOOL clipboardSync;
|
|
|
|
wClipboard* clipboard;
|
|
|
|
UINT32 numServerFormats;
|
|
|
|
UINT32 requestedFormatId;
|
|
|
|
HANDLE clipboardRequestEvent;
|
|
|
|
CLIPRDR_FORMAT* serverFormats;
|
|
|
|
CliprdrClientContext* cliprdr;
|
|
|
|
UINT32 clipboardCapabilities;
|
|
|
|
};
|
|
|
|
typedef struct android_context androidContext;
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_CLIENT_ANDROID_FREERDP_H */
|