FreeRDP/channels/rdpdr/client/rdpdr_main.h

86 lines
2.1 KiB
C
Raw Normal View History

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
#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>
#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;
2011-08-05 11:43:48 +04:00
struct rdpdr_plugin
{
CHANNEL_DEF channelDef;
2016-11-22 14:33:41 +03:00
CHANNEL_ENTRY_POINTS_FREERDP_EX channelEntryPoints;
HANDLE thread;
wStream* data_in;
void* InitHandle;
DWORD OpenHandle;
wMessageQueue* queue;
2011-08-05 11:43:48 +04:00
DEVMAN* devman;
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
UINT32 sequenceId;
2014-02-14 11:09:55 +04:00
/* hotplug support */
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
HANDLE stopEvent;
2014-02-14 11:09:55 +04:00
#endif
rdpContext* rdpcontext;
2011-08-05 11:43:48 +04:00
};
UINT rdpdr_send(rdpdrPlugin* rdpdr, wStream* s);
2012-10-09 05:00:07 +04:00
#endif /* FREERDP_CHANNEL_RDPDR_CLIENT_MAIN_H */