Blame include/freerdp/client/cliprdr.h

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