FreeRDP
pf_cliprdr.c File Reference

Macros

#define TAG   PROXY_TAG("cliprdr")
 
#define TEXT_FORMATS_COUNT   2
 

Functions

BOOL pf_server_cliprdr_init (pServerContext *ps)
 
static INLINE BOOL pf_cliprdr_is_text_format (UINT32 format)
 
static INLINE void pf_cliprdr_create_text_only_format_list (CLIPRDR_FORMAT_LIST *list)
 
static BOOL pf_cliprdr_is_copy_paste_valid (const proxyConfig *config, const CLIPRDR_FORMAT_DATA_RESPONSE *pdu, UINT32 format)
 
static INLINE void pf_cliprdr_create_failed_format_data_response (CLIPRDR_FORMAT_DATA_RESPONSE *dst)
 
static UINT pf_cliprdr_ClientCapabilities (CliprdrServerContext *context, const CLIPRDR_CAPABILITIES *capabilities)
 
static UINT pf_cliprdr_TempDirectory (CliprdrServerContext *context, const CLIPRDR_TEMP_DIRECTORY *tempDirectory)
 
static UINT pf_cliprdr_ClientFormatList (CliprdrServerContext *context, const CLIPRDR_FORMAT_LIST *formatList)
 
static UINT pf_cliprdr_ClientFormatListResponse (CliprdrServerContext *context, const CLIPRDR_FORMAT_LIST_RESPONSE *formatListResponse)
 
static UINT pf_cliprdr_ClientLockClipboardData (CliprdrServerContext *context, const CLIPRDR_LOCK_CLIPBOARD_DATA *lockClipboardData)
 
static UINT pf_cliprdr_ClientUnlockClipboardData (CliprdrServerContext *context, const CLIPRDR_UNLOCK_CLIPBOARD_DATA *unlockClipboardData)
 
static UINT pf_cliprdr_ClientFormatDataRequest (CliprdrServerContext *context, const CLIPRDR_FORMAT_DATA_REQUEST *formatDataRequest)
 
static UINT pf_cliprdr_ClientFormatDataResponse (CliprdrServerContext *context, const CLIPRDR_FORMAT_DATA_RESPONSE *formatDataResponse)
 
static UINT pf_cliprdr_ClientFileContentsRequest (CliprdrServerContext *context, const CLIPRDR_FILE_CONTENTS_REQUEST *fileContentsRequest)
 
static UINT pf_cliprdr_ClientFileContentsResponse (CliprdrServerContext *context, const CLIPRDR_FILE_CONTENTS_RESPONSE *fileContentsResponse)
 
static UINT pf_cliprdr_ServerCapabilities (CliprdrClientContext *context, const CLIPRDR_CAPABILITIES *capabilities)
 
static UINT pf_cliprdr_MonitorReady (CliprdrClientContext *context, const CLIPRDR_MONITOR_READY *monitorReady)
 
static UINT pf_cliprdr_ServerFormatList (CliprdrClientContext *context, const CLIPRDR_FORMAT_LIST *formatList)
 
static UINT pf_cliprdr_ServerFormatListResponse (CliprdrClientContext *context, const CLIPRDR_FORMAT_LIST_RESPONSE *formatListResponse)
 
static UINT pf_cliprdr_ServerLockClipboardData (CliprdrClientContext *context, const CLIPRDR_LOCK_CLIPBOARD_DATA *lockClipboardData)
 
static UINT pf_cliprdr_ServerUnlockClipboardData (CliprdrClientContext *context, const CLIPRDR_UNLOCK_CLIPBOARD_DATA *unlockClipboardData)
 
static UINT pf_cliprdr_ServerFormatDataRequest (CliprdrClientContext *context, const CLIPRDR_FORMAT_DATA_REQUEST *formatDataRequest)
 
static UINT pf_cliprdr_ServerFormatDataResponse (CliprdrClientContext *context, const CLIPRDR_FORMAT_DATA_RESPONSE *formatDataResponse)
 
static UINT pf_cliprdr_ServerFileContentsRequest (CliprdrClientContext *context, const CLIPRDR_FILE_CONTENTS_REQUEST *fileContentsRequest)
 
static UINT pf_cliprdr_ServerFileContentsResponse (CliprdrClientContext *context, const CLIPRDR_FILE_CONTENTS_RESPONSE *fileContentsResponse)
 
void pf_cliprdr_register_callbacks (CliprdrClientContext *cliprdr_client, CliprdrServerContext *cliprdr_server, proxyData *pdata)
 

Variables

static CLIPRDR_FORMAT g_text_formats [] = { { CF_TEXT, "\0" }, { CF_UNICODETEXT, "\0" } }
 

Macro Definition Documentation

◆ TAG

#define TAG   PROXY_TAG("cliprdr")

FreeRDP: A Remote Desktop Protocol Implementation FreeRDP Proxy Server

Copyright 2019 Kobi Mizrachi kmizr.nosp@m.achi.nosp@m.18@gm.nosp@m.ail..nosp@m.com Copyright 2019 Idan Freiberg speid.nosp@m.y@gm.nosp@m.ail.c.nosp@m.om Copyright 2021 Armin Novak anova.nosp@m.k@th.nosp@m.incas.nosp@m.t.co.nosp@m.m Copyright 2021 Thincast Technologies GmbH

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.

◆ TEXT_FORMATS_COUNT

#define TEXT_FORMATS_COUNT   2

Function Documentation

◆ pf_cliprdr_ClientCapabilities()

static UINT pf_cliprdr_ClientCapabilities ( CliprdrServerContext *  context,
const CLIPRDR_CAPABILITIES *  capabilities 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ClientFileContentsRequest()

static UINT pf_cliprdr_ClientFileContentsRequest ( CliprdrServerContext *  context,
const CLIPRDR_FILE_CONTENTS_REQUEST *  fileContentsRequest 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ClientFileContentsResponse()

static UINT pf_cliprdr_ClientFileContentsResponse ( CliprdrServerContext *  context,
const CLIPRDR_FILE_CONTENTS_RESPONSE *  fileContentsResponse 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ClientFormatDataRequest()

static UINT pf_cliprdr_ClientFormatDataRequest ( CliprdrServerContext *  context,
const CLIPRDR_FORMAT_DATA_REQUEST *  formatDataRequest 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pf_cliprdr_ClientFormatDataResponse()

static UINT pf_cliprdr_ClientFormatDataResponse ( CliprdrServerContext *  context,
const CLIPRDR_FORMAT_DATA_RESPONSE *  formatDataResponse 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pf_cliprdr_ClientFormatList()

static UINT pf_cliprdr_ClientFormatList ( CliprdrServerContext *  context,
const CLIPRDR_FORMAT_LIST *  formatList 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pf_cliprdr_ClientFormatListResponse()

static UINT pf_cliprdr_ClientFormatListResponse ( CliprdrServerContext *  context,
const CLIPRDR_FORMAT_LIST_RESPONSE *  formatListResponse 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ClientLockClipboardData()

static UINT pf_cliprdr_ClientLockClipboardData ( CliprdrServerContext *  context,
const CLIPRDR_LOCK_CLIPBOARD_DATA *  lockClipboardData 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ClientUnlockClipboardData()

static UINT pf_cliprdr_ClientUnlockClipboardData ( CliprdrServerContext *  context,
const CLIPRDR_UNLOCK_CLIPBOARD_DATA *  unlockClipboardData 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_create_failed_format_data_response()

static INLINE void pf_cliprdr_create_failed_format_data_response ( CLIPRDR_FORMAT_DATA_RESPONSE *  dst)
static
Here is the caller graph for this function:

◆ pf_cliprdr_create_text_only_format_list()

static INLINE void pf_cliprdr_create_text_only_format_list ( CLIPRDR_FORMAT_LIST *  list)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pf_cliprdr_is_copy_paste_valid()

static BOOL pf_cliprdr_is_copy_paste_valid ( const proxyConfig *  config,
const CLIPRDR_FORMAT_DATA_RESPONSE *  pdu,
UINT32  format 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_is_text_format()

static INLINE BOOL pf_cliprdr_is_text_format ( UINT32  format)
static
Here is the caller graph for this function:

◆ pf_cliprdr_MonitorReady()

static UINT pf_cliprdr_MonitorReady ( CliprdrClientContext *  context,
const CLIPRDR_MONITOR_READY *  monitorReady 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_register_callbacks()

void pf_cliprdr_register_callbacks ( CliprdrClientContext *  cliprdr_client,
CliprdrServerContext *  cliprdr_server,
proxyData *  pdata 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pf_cliprdr_ServerCapabilities()

static UINT pf_cliprdr_ServerCapabilities ( CliprdrClientContext *  context,
const CLIPRDR_CAPABILITIES *  capabilities 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ServerFileContentsRequest()

static UINT pf_cliprdr_ServerFileContentsRequest ( CliprdrClientContext *  context,
const CLIPRDR_FILE_CONTENTS_REQUEST *  fileContentsRequest 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ServerFileContentsResponse()

static UINT pf_cliprdr_ServerFileContentsResponse ( CliprdrClientContext *  context,
const CLIPRDR_FILE_CONTENTS_RESPONSE *  fileContentsResponse 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ServerFormatDataRequest()

static UINT pf_cliprdr_ServerFormatDataRequest ( CliprdrClientContext *  context,
const CLIPRDR_FORMAT_DATA_REQUEST *  formatDataRequest 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pf_cliprdr_ServerFormatDataResponse()

static UINT pf_cliprdr_ServerFormatDataResponse ( CliprdrClientContext *  context,
const CLIPRDR_FORMAT_DATA_RESPONSE *  formatDataResponse 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pf_cliprdr_ServerFormatList()

static UINT pf_cliprdr_ServerFormatList ( CliprdrClientContext *  context,
const CLIPRDR_FORMAT_LIST *  formatList 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pf_cliprdr_ServerFormatListResponse()

static UINT pf_cliprdr_ServerFormatListResponse ( CliprdrClientContext *  context,
const CLIPRDR_FORMAT_LIST_RESPONSE *  formatListResponse 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ServerLockClipboardData()

static UINT pf_cliprdr_ServerLockClipboardData ( CliprdrClientContext *  context,
const CLIPRDR_LOCK_CLIPBOARD_DATA *  lockClipboardData 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_ServerUnlockClipboardData()

static UINT pf_cliprdr_ServerUnlockClipboardData ( CliprdrClientContext *  context,
const CLIPRDR_UNLOCK_CLIPBOARD_DATA *  unlockClipboardData 
)
static
Here is the caller graph for this function:

◆ pf_cliprdr_TempDirectory()

static UINT pf_cliprdr_TempDirectory ( CliprdrServerContext *  context,
const CLIPRDR_TEMP_DIRECTORY *  tempDirectory 
)
static
Here is the caller graph for this function:

◆ pf_server_cliprdr_init()

BOOL pf_server_cliprdr_init ( pServerContext *  ps)

FreeRDP: A Remote Desktop Protocol Implementation FreeRDP Proxy Server

Copyright 2019 Kobi Mizrachi kmizr.nosp@m.achi.nosp@m.18@gm.nosp@m.ail..nosp@m.com Copyright 2019 Idan Freiberg speid.nosp@m.y@gm.nosp@m.ail.c.nosp@m.om

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.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_text_formats

CLIPRDR_FORMAT g_text_formats[] = { { CF_TEXT, "\0" }, { CF_UNICODETEXT, "\0" } }
static