|
Packit |
1fb8d4 |
/**
|
|
Packit |
1fb8d4 |
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
Packit |
1fb8d4 |
* Clipboard Virtual Channel Extension
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Copyright 2011 Vic Lee
|
|
Packit |
1fb8d4 |
* Copyright 2015 Thincast Technologies GmbH
|
|
Packit |
1fb8d4 |
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit |
1fb8d4 |
* you may not use this file except in compliance with the License.
|
|
Packit |
1fb8d4 |
* You may obtain a copy of the License at
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit |
1fb8d4 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
1fb8d4 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
1fb8d4 |
* See the License for the specific language governing permissions and
|
|
Packit |
1fb8d4 |
* limitations under the License.
|
|
Packit |
1fb8d4 |
*/
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#ifndef FREERDP_CHANNEL_CLIPRDR_CLIENT_CLIPRDR_H
|
|
Packit |
1fb8d4 |
#define FREERDP_CHANNEL_CLIPRDR_CLIENT_CLIPRDR_H
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#include <freerdp/types.h>
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#include <freerdp/message.h>
|
|
Packit |
1fb8d4 |
#include <freerdp/channels/cliprdr.h>
|
|
Packit |
1fb8d4 |
#include <freerdp/freerdp.h>
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
/**
|
|
Packit |
1fb8d4 |
* Client Interface
|
|
Packit |
1fb8d4 |
*/
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
typedef struct _cliprdr_client_context CliprdrClientContext;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrServerCapabilities)(CliprdrClientContext* context, CLIPRDR_CAPABILITIES* capabilities);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrClientCapabilities)(CliprdrClientContext* context, CLIPRDR_CAPABILITIES* capabilities);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrMonitorReady)(CliprdrClientContext* context, CLIPRDR_MONITOR_READY* monitorReady);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrTempDirectory)(CliprdrClientContext* context, CLIPRDR_TEMP_DIRECTORY* tempDirectory);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrClientFormatList)(CliprdrClientContext* context, CLIPRDR_FORMAT_LIST* formatList);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrServerFormatList)(CliprdrClientContext* context, CLIPRDR_FORMAT_LIST* formatList);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrClientFormatListResponse)(CliprdrClientContext* context, CLIPRDR_FORMAT_LIST_RESPONSE* formatListResponse);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrServerFormatListResponse)(CliprdrClientContext* context, CLIPRDR_FORMAT_LIST_RESPONSE* formatListResponse);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrClientLockClipboardData)(CliprdrClientContext* context, CLIPRDR_LOCK_CLIPBOARD_DATA* lockClipboardData);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrServerLockClipboardData)(CliprdrClientContext* context, CLIPRDR_LOCK_CLIPBOARD_DATA* lockClipboardData);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrClientUnlockClipboardData)(CliprdrClientContext* context, CLIPRDR_UNLOCK_CLIPBOARD_DATA* unlockClipboardData);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrServerUnlockClipboardData)(CliprdrClientContext* context, CLIPRDR_UNLOCK_CLIPBOARD_DATA* unlockClipboardData);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrClientFormatDataRequest)(CliprdrClientContext* context, CLIPRDR_FORMAT_DATA_REQUEST* formatDataRequest);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrServerFormatDataRequest)(CliprdrClientContext* context, CLIPRDR_FORMAT_DATA_REQUEST* formatDataRequest);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrClientFormatDataResponse)(CliprdrClientContext* context, CLIPRDR_FORMAT_DATA_RESPONSE* formatDataResponse);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrServerFormatDataResponse)(CliprdrClientContext* context, CLIPRDR_FORMAT_DATA_RESPONSE* formatDataResponse);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrClientFileContentsRequest)(CliprdrClientContext* context, CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrServerFileContentsRequest)(CliprdrClientContext* context, CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrClientFileContentsResponse)(CliprdrClientContext* context, CLIPRDR_FILE_CONTENTS_RESPONSE* fileContentsResponse);
|
|
Packit |
1fb8d4 |
typedef UINT (*pcCliprdrServerFileContentsResponse)(CliprdrClientContext* context, CLIPRDR_FILE_CONTENTS_RESPONSE* fileContentsResponse);
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _cliprdr_client_context
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
void* handle;
|
|
Packit |
1fb8d4 |
void* custom;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
pcCliprdrServerCapabilities ServerCapabilities;
|
|
Packit |
1fb8d4 |
pcCliprdrClientCapabilities ClientCapabilities;
|
|
Packit |
1fb8d4 |
pcCliprdrMonitorReady MonitorReady;
|
|
Packit |
1fb8d4 |
pcCliprdrTempDirectory TempDirectory;
|
|
Packit |
1fb8d4 |
pcCliprdrClientFormatList ClientFormatList;
|
|
Packit |
1fb8d4 |
pcCliprdrServerFormatList ServerFormatList;
|
|
Packit |
1fb8d4 |
pcCliprdrClientFormatListResponse ClientFormatListResponse;
|
|
Packit |
1fb8d4 |
pcCliprdrServerFormatListResponse ServerFormatListResponse;
|
|
Packit |
1fb8d4 |
pcCliprdrClientLockClipboardData ClientLockClipboardData;
|
|
Packit |
1fb8d4 |
pcCliprdrServerLockClipboardData ServerLockClipboardData;
|
|
Packit |
1fb8d4 |
pcCliprdrClientUnlockClipboardData ClientUnlockClipboardData;
|
|
Packit |
1fb8d4 |
pcCliprdrServerUnlockClipboardData ServerUnlockClipboardData;
|
|
Packit |
1fb8d4 |
pcCliprdrClientFormatDataRequest ClientFormatDataRequest;
|
|
Packit |
1fb8d4 |
pcCliprdrServerFormatDataRequest ServerFormatDataRequest;
|
|
Packit |
1fb8d4 |
pcCliprdrClientFormatDataResponse ClientFormatDataResponse;
|
|
Packit |
1fb8d4 |
pcCliprdrServerFormatDataResponse ServerFormatDataResponse;
|
|
Packit |
1fb8d4 |
pcCliprdrClientFileContentsRequest ClientFileContentsRequest;
|
|
Packit |
1fb8d4 |
pcCliprdrServerFileContentsRequest ServerFileContentsRequest;
|
|
Packit |
1fb8d4 |
pcCliprdrClientFileContentsResponse ClientFileContentsResponse;
|
|
Packit |
1fb8d4 |
pcCliprdrServerFileContentsResponse ServerFileContentsResponse;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
rdpContext* rdpcontext;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _CLIPRDR_FORMAT_NAME
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
UINT32 id;
|
|
Packit |
1fb8d4 |
char* name;
|
|
Packit |
1fb8d4 |
int length;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _CLIPRDR_FORMAT_NAME CLIPRDR_FORMAT_NAME;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
/**
|
|
Packit |
1fb8d4 |
* Clipboard Events
|
|
Packit |
1fb8d4 |
*/
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_CLIP_CAPS
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
UINT32 capabilities;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_CLIP_CAPS RDP_CB_CLIP_CAPS;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_MONITOR_READY_EVENT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
UINT32 capabilities;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_MONITOR_READY_EVENT RDP_CB_MONITOR_READY_EVENT;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_FORMAT_LIST_EVENT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
UINT32* formats;
|
|
Packit |
1fb8d4 |
UINT16 num_formats;
|
|
Packit |
1fb8d4 |
BYTE* raw_format_data;
|
|
Packit |
1fb8d4 |
UINT32 raw_format_data_size;
|
|
Packit |
1fb8d4 |
BOOL raw_format_unicode;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_FORMAT_LIST_EVENT RDP_CB_FORMAT_LIST_EVENT;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_DATA_REQUEST_EVENT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
UINT32 format;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_DATA_REQUEST_EVENT RDP_CB_DATA_REQUEST_EVENT;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_DATA_RESPONSE_EVENT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
BYTE* data;
|
|
Packit |
1fb8d4 |
UINT32 size;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_DATA_RESPONSE_EVENT RDP_CB_DATA_RESPONSE_EVENT;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_FILECONTENTS_REQUEST_EVENT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
UINT32 streamId;
|
|
Packit |
1fb8d4 |
UINT32 lindex;
|
|
Packit |
1fb8d4 |
UINT32 dwFlags;
|
|
Packit |
1fb8d4 |
UINT32 nPositionLow;
|
|
Packit |
1fb8d4 |
UINT32 nPositionHigh;
|
|
Packit |
1fb8d4 |
UINT32 cbRequested;
|
|
Packit |
1fb8d4 |
UINT32 clipDataId;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_FILECONTENTS_REQUEST_EVENT RDP_CB_FILECONTENTS_REQUEST_EVENT;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_FILECONTENTS_RESPONSE_EVENT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
BYTE* data;
|
|
Packit |
1fb8d4 |
UINT32 size;
|
|
Packit |
1fb8d4 |
UINT32 streamId;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_FILECONTENTS_RESPONSE_EVENT RDP_CB_FILECONTENTS_RESPONSE_EVENT;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_LOCK_CLIPDATA_EVENT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
UINT32 clipDataId;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_LOCK_CLIPDATA_EVENT RDP_CB_LOCK_CLIPDATA_EVENT ;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_UNLOCK_CLIPDATA_EVENT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
UINT32 clipDataId;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_UNLOCK_CLIPDATA_EVENT RDP_CB_UNLOCK_CLIPDATA_EVENT ;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _RDP_CB_TEMPDIR_EVENT
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
wMessage event;
|
|
Packit |
1fb8d4 |
char dirname[520];
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
typedef struct _RDP_CB_TEMPDIR_EVENT RDP_CB_TEMPDIR_EVENT;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#endif /* FREERDP_CHANNEL_CLIPRDR_CLIENT_CLIPRDR_H */
|