2011-08-05 11:43:48 +04:00
|
|
|
/**
|
2012-10-09 05:00:07 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Device Redirection Virtual Channel
|
2011-08-05 11:43:48 +04:00
|
|
|
*
|
|
|
|
* Copyright 2010-2011 Vic Lee
|
2012-10-09 05:00:07 +04:00
|
|
|
* Copyright 2010-2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
2015-06-03 14:38:47 +03:00
|
|
|
* Copyright 2015 Thincast Technologies GmbH
|
|
|
|
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
|
2015-09-07 13:16:03 +03:00
|
|
|
* Copyright 2016 Inuvika Inc.
|
|
|
|
* Copyright 2016 David PHAM-VAN <d.phamvan@inuvika.com>
|
2011-08-05 11:43:48 +04:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2012-10-09 05:00:07 +04:00
|
|
|
#ifndef FREERDP_CHANNEL_RDPDR_CLIENT_MAIN_H
|
|
|
|
#define FREERDP_CHANNEL_RDPDR_CLIENT_MAIN_H
|
2011-08-05 11:43:48 +04:00
|
|
|
|
2013-10-17 23:42:51 +04:00
|
|
|
#include <winpr/crt.h>
|
|
|
|
#include <winpr/synch.h>
|
|
|
|
#include <winpr/thread.h>
|
|
|
|
#include <winpr/stream.h>
|
|
|
|
#include <winpr/collections.h>
|
|
|
|
|
|
|
|
#include <freerdp/api.h>
|
|
|
|
#include <freerdp/svc.h>
|
|
|
|
#include <freerdp/addin.h>
|
|
|
|
|
2012-10-09 05:00:07 +04:00
|
|
|
#include <freerdp/channels/rdpdr.h>
|
2014-09-12 18:19:32 +04:00
|
|
|
#include <freerdp/channels/log.h>
|
|
|
|
|
2015-09-07 13:16:03 +03:00
|
|
|
#ifdef __MACOSX__
|
|
|
|
#include <CoreServices/CoreServices.h>
|
|
|
|
#endif
|
|
|
|
|
2014-12-27 21:50:50 +03:00
|
|
|
#define TAG CHANNELS_TAG("rdpdr.client")
|
2011-08-05 11:43:48 +04:00
|
|
|
|
|
|
|
typedef struct rdpdr_plugin rdpdrPlugin;
|
2012-10-07 18:21:54 +04:00
|
|
|
|
2011-08-05 11:43:48 +04:00
|
|
|
struct rdpdr_plugin
|
|
|
|
{
|
2013-10-18 01:39:48 +04:00
|
|
|
CHANNEL_DEF channelDef;
|
2016-11-22 14:33:41 +03:00
|
|
|
CHANNEL_ENTRY_POINTS_FREERDP_EX channelEntryPoints;
|
2013-10-17 23:42:51 +04:00
|
|
|
|
|
|
|
HANDLE thread;
|
|
|
|
wStream* data_in;
|
2013-10-18 01:39:48 +04:00
|
|
|
void* InitHandle;
|
2014-02-17 02:27:36 +04:00
|
|
|
DWORD OpenHandle;
|
2014-12-28 22:56:13 +03:00
|
|
|
wMessageQueue* queue;
|
2011-08-05 11:43:48 +04:00
|
|
|
|
|
|
|
DEVMAN* devman;
|
|
|
|
|
2012-10-09 11:01:37 +04:00
|
|
|
UINT16 versionMajor;
|
|
|
|
UINT16 versionMinor;
|
|
|
|
UINT16 clientID;
|
2011-08-05 11:43:48 +04:00
|
|
|
char computerName[256];
|
2014-02-14 11:09:55 +04:00
|
|
|
|
2014-05-07 02:19:54 +04:00
|
|
|
UINT32 sequenceId;
|
|
|
|
|
2014-02-14 11:09:55 +04:00
|
|
|
/* hotplug support */
|
2014-03-26 00:37:47 +04:00
|
|
|
HANDLE hotplugThread;
|
2014-02-14 11:09:55 +04:00
|
|
|
#ifdef _WIN32
|
|
|
|
HWND hotplug_wnd;
|
2018-12-12 11:20:42 +03:00
|
|
|
#endif
|
|
|
|
#ifdef __MACOSX__
|
2015-09-07 13:16:03 +03:00
|
|
|
CFRunLoopRef runLoop;
|
2018-12-12 11:20:42 +03:00
|
|
|
#endif
|
|
|
|
#ifndef _WIN32
|
2014-03-26 00:37:47 +04:00
|
|
|
HANDLE stopEvent;
|
2014-02-14 11:09:55 +04:00
|
|
|
#endif
|
2015-07-15 10:50:35 +03:00
|
|
|
rdpContext* rdpcontext;
|
2011-08-05 11:43:48 +04:00
|
|
|
};
|
|
|
|
|
2015-08-27 15:25:09 +03:00
|
|
|
UINT rdpdr_send(rdpdrPlugin* rdpdr, wStream* s);
|
2013-10-17 22:19:33 +04:00
|
|
|
|
2012-10-09 05:00:07 +04:00
|
|
|
#endif /* FREERDP_CHANNEL_RDPDR_CLIENT_MAIN_H */
|