|
Packit |
1fb8d4 |
/**
|
|
Packit |
1fb8d4 |
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
Packit |
1fb8d4 |
* Clipboard Virtual Channel Server Interface
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
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_SERVER_CLIPRDR_H
|
|
Packit |
1fb8d4 |
#define FREERDP_CHANNEL_CLIPRDR_SERVER_CLIPRDR_H
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#include <freerdp/api.h>
|
|
Packit |
1fb8d4 |
#include <freerdp/types.h>
|
|
Packit |
1fb8d4 |
#include <freerdp/channels/wtsvc.h>
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#include <freerdp/channels/cliprdr.h>
|
|
Packit |
1fb8d4 |
#include <freerdp/client/cliprdr.h>
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
/**
|
|
Packit |
1fb8d4 |
* Server Interface
|
|
Packit |
1fb8d4 |
*/
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
typedef struct _cliprdr_server_context CliprdrServerContext;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
typedef UINT (*psCliprdrOpen)(CliprdrServerContext* context);
|
|
Packit |
1fb8d4 |
typedef UINT (*psCliprdrClose)(CliprdrServerContext* context);
|
|
Packit |
1fb8d4 |
typedef UINT (*psCliprdrStart)(CliprdrServerContext* context);
|
|
Packit |
1fb8d4 |
typedef UINT (*psCliprdrStop)(CliprdrServerContext* context);
|
|
Packit |
1fb8d4 |
typedef HANDLE (*psCliprdrGetEventHandle)(CliprdrServerContext* context);
|
|
Packit |
1fb8d4 |
typedef UINT (*psCliprdrCheckEventHandle)(CliprdrServerContext* context);
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrServerCapabilities)(CliprdrServerContext* context,
|
|
Packit Service |
5a9772 |
const CLIPRDR_CAPABILITIES* capabilities);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrClientCapabilities)(CliprdrServerContext* context,
|
|
Packit Service |
5a9772 |
const CLIPRDR_CAPABILITIES* capabilities);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrMonitorReady)(CliprdrServerContext* context,
|
|
Packit Service |
5a9772 |
const CLIPRDR_MONITOR_READY* monitorReady);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrTempDirectory)(CliprdrServerContext* context,
|
|
Packit Service |
5a9772 |
const CLIPRDR_TEMP_DIRECTORY* tempDirectory);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrClientFormatList)(CliprdrServerContext* context,
|
|
Packit Service |
5a9772 |
const CLIPRDR_FORMAT_LIST* formatList);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrServerFormatList)(CliprdrServerContext* context,
|
|
Packit Service |
5a9772 |
const CLIPRDR_FORMAT_LIST* formatList);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrClientFormatListResponse)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FORMAT_LIST_RESPONSE* formatListResponse);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrServerFormatListResponse)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FORMAT_LIST_RESPONSE* formatListResponse);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrClientLockClipboardData)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_LOCK_CLIPBOARD_DATA* lockClipboardData);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrServerLockClipboardData)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_LOCK_CLIPBOARD_DATA* lockClipboardData);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrClientUnlockClipboardData)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_UNLOCK_CLIPBOARD_DATA* unlockClipboardData);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrServerUnlockClipboardData)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_UNLOCK_CLIPBOARD_DATA* unlockClipboardData);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrClientFormatDataRequest)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FORMAT_DATA_REQUEST* formatDataRequest);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrServerFormatDataRequest)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FORMAT_DATA_REQUEST* formatDataRequest);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrClientFormatDataResponse)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FORMAT_DATA_RESPONSE* formatDataResponse);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrServerFormatDataResponse)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FORMAT_DATA_RESPONSE* formatDataResponse);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrClientFileContentsRequest)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrServerFileContentsRequest)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrClientFileContentsResponse)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FILE_CONTENTS_RESPONSE* fileContentsResponse);
|
|
Packit Service |
5a9772 |
typedef UINT (*psCliprdrServerFileContentsResponse)(
|
|
Packit Service |
5a9772 |
CliprdrServerContext* context, const CLIPRDR_FILE_CONTENTS_RESPONSE* fileContentsResponse);
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _cliprdr_server_context
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
void* handle;
|
|
Packit |
1fb8d4 |
void* custom;
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
/* server clipboard capabilities - set by server - updated by the channel after client
|
|
Packit Service |
5a9772 |
* capability exchange */
|
|
Packit |
1fb8d4 |
BOOL useLongFormatNames;
|
|
Packit |
1fb8d4 |
BOOL streamFileClipEnabled;
|
|
Packit |
1fb8d4 |
BOOL fileClipNoFilePaths;
|
|
Packit |
1fb8d4 |
BOOL canLockClipData;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
psCliprdrOpen Open;
|
|
Packit |
1fb8d4 |
psCliprdrClose Close;
|
|
Packit |
1fb8d4 |
psCliprdrStart Start;
|
|
Packit |
1fb8d4 |
psCliprdrStop Stop;
|
|
Packit |
1fb8d4 |
psCliprdrGetEventHandle GetEventHandle;
|
|
Packit |
1fb8d4 |
psCliprdrCheckEventHandle CheckEventHandle;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
psCliprdrServerCapabilities ServerCapabilities;
|
|
Packit |
1fb8d4 |
psCliprdrClientCapabilities ClientCapabilities;
|
|
Packit |
1fb8d4 |
psCliprdrMonitorReady MonitorReady;
|
|
Packit |
1fb8d4 |
psCliprdrTempDirectory TempDirectory;
|
|
Packit |
1fb8d4 |
psCliprdrClientFormatList ClientFormatList;
|
|
Packit |
1fb8d4 |
psCliprdrServerFormatList ServerFormatList;
|
|
Packit |
1fb8d4 |
psCliprdrClientFormatListResponse ClientFormatListResponse;
|
|
Packit |
1fb8d4 |
psCliprdrServerFormatListResponse ServerFormatListResponse;
|
|
Packit |
1fb8d4 |
psCliprdrClientLockClipboardData ClientLockClipboardData;
|
|
Packit |
1fb8d4 |
psCliprdrServerLockClipboardData ServerLockClipboardData;
|
|
Packit |
1fb8d4 |
psCliprdrClientUnlockClipboardData ClientUnlockClipboardData;
|
|
Packit |
1fb8d4 |
psCliprdrServerUnlockClipboardData ServerUnlockClipboardData;
|
|
Packit |
1fb8d4 |
psCliprdrClientFormatDataRequest ClientFormatDataRequest;
|
|
Packit |
1fb8d4 |
psCliprdrServerFormatDataRequest ServerFormatDataRequest;
|
|
Packit |
1fb8d4 |
psCliprdrClientFormatDataResponse ClientFormatDataResponse;
|
|
Packit |
1fb8d4 |
psCliprdrServerFormatDataResponse ServerFormatDataResponse;
|
|
Packit |
1fb8d4 |
psCliprdrClientFileContentsRequest ClientFileContentsRequest;
|
|
Packit |
1fb8d4 |
psCliprdrServerFileContentsRequest ServerFileContentsRequest;
|
|
Packit |
1fb8d4 |
psCliprdrClientFileContentsResponse ClientFileContentsResponse;
|
|
Packit |
1fb8d4 |
psCliprdrServerFileContentsResponse ServerFileContentsResponse;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
rdpContext* rdpcontext;
|
|
Packit Service |
5a9772 |
BOOL autoInitializationSequence;
|
|
Packit Service |
5a9772 |
UINT32 lastRequestedFormatId;
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#ifdef __cplusplus
|
|
Packit Service |
5a9772 |
extern "C"
|
|
Packit Service |
5a9772 |
{
|
|
Packit |
1fb8d4 |
#endif
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
FREERDP_API CliprdrServerContext* cliprdr_server_context_new(HANDLE vcm);
|
|
Packit Service |
5a9772 |
FREERDP_API void cliprdr_server_context_free(CliprdrServerContext* context);
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#ifdef __cplusplus
|
|
Packit Service |
5a9772 |
}
|
|
Packit |
1fb8d4 |
#endif
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#endif /* FREERDP_CHANNEL_CLIPRDR_SERVER_CLIPRDR_H */
|