From: ilammy Date: Wed, 24 May 2017 20:05:42 +0000 (+0300) Subject: x11/cliprdr: make callbacks static X-Git-Tag: 2.0.0-rc0~19^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34b092058fc9d1d1ff0c02515474c6e25ebe3f8f;p=platform%2Fupstream%2Ffreerdp.git x11/cliprdr: make callbacks static Most of the functions is this file are internal-use callbacks so they do not need to be exported from the compilation unit. Mark functions static as appropriate. --- diff --git a/client/X11/xf_cliprdr.c b/client/X11/xf_cliprdr.c index d08915b..efa28b9 100644 --- a/client/X11/xf_cliprdr.c +++ b/client/X11/xf_cliprdr.c @@ -110,7 +110,7 @@ struct xf_clipboard BOOL file_formats_registered; }; -UINT xf_cliprdr_send_client_format_list(xfClipboard* clipboard); +static UINT xf_cliprdr_send_client_format_list(xfClipboard* clipboard); static void xf_cliprdr_check_owner(xfClipboard* clipboard) { @@ -1065,7 +1065,7 @@ void xf_cliprdr_handle_xevent(xfContext* xfc, XEvent* event) * * @return 0 on success, otherwise a Win32 error code */ -UINT xf_cliprdr_send_client_capabilities(xfClipboard* clipboard) +static UINT xf_cliprdr_send_client_capabilities(xfClipboard* clipboard) { CLIPRDR_CAPABILITIES capabilities; CLIPRDR_GENERAL_CAPABILITY_SET generalCapabilitySet; @@ -1090,7 +1090,7 @@ UINT xf_cliprdr_send_client_capabilities(xfClipboard* clipboard) * * @return 0 on success, otherwise a Win32 error code */ -UINT xf_cliprdr_send_client_format_list(xfClipboard* clipboard) +static UINT xf_cliprdr_send_client_format_list(xfClipboard* clipboard) { UINT32 i, numFormats; CLIPRDR_FORMAT* formats = NULL; @@ -1136,7 +1136,7 @@ UINT xf_cliprdr_send_client_format_list(xfClipboard* clipboard) * * @return 0 on success, otherwise a Win32 error code */ -UINT xf_cliprdr_send_client_format_list_response(xfClipboard* clipboard, +static UINT xf_cliprdr_send_client_format_list_response(xfClipboard* clipboard, BOOL status) { CLIPRDR_FORMAT_LIST_RESPONSE formatListResponse; @@ -1455,7 +1455,7 @@ static UINT xf_cliprdr_server_format_data_response(CliprdrClientContext* return CHANNEL_RC_OK; } -UINT xf_cliprdr_server_file_size_request(xfClipboard* clipboard, +static UINT xf_cliprdr_server_file_size_request(xfClipboard* clipboard, const CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest) { wClipboardFileSizeRequest request; @@ -1474,7 +1474,7 @@ UINT xf_cliprdr_server_file_size_request(xfClipboard* clipboard, return clipboard->delegate->ClientRequestFileSize(clipboard->delegate, &request); } -UINT xf_cliprdr_server_file_range_request(xfClipboard* clipboard, +static UINT xf_cliprdr_server_file_range_request(xfClipboard* clipboard, const CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest) { wClipboardFileRangeRequest request; @@ -1490,7 +1490,7 @@ UINT xf_cliprdr_server_file_range_request(xfClipboard* clipboard, return clipboard->delegate->ClientRequestFileRange(clipboard->delegate, &request); } -UINT xf_cliprdr_send_file_contents_failure(CliprdrClientContext* context, +static UINT xf_cliprdr_send_file_contents_failure(CliprdrClientContext* context, const CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest) { CLIPRDR_FILE_CONTENTS_RESPONSE response; @@ -1504,7 +1504,7 @@ UINT xf_cliprdr_send_file_contents_failure(CliprdrClientContext* context, return context->ClientFileContentsResponse(context, &response); } -UINT xf_cliprdr_server_file_contents_request(CliprdrClientContext* context, +static UINT xf_cliprdr_server_file_contents_request(CliprdrClientContext* context, CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest) { UINT error = NO_ERROR; @@ -1538,7 +1538,7 @@ UINT xf_cliprdr_server_file_contents_request(CliprdrClientContext* context, return CHANNEL_RC_OK; } -UINT xf_cliprdr_clipboard_file_size_success(wClipboardDelegate* delegate, +static UINT xf_cliprdr_clipboard_file_size_success(wClipboardDelegate* delegate, const wClipboardFileSizeRequest* request, UINT64 fileSize) { CLIPRDR_FILE_CONTENTS_RESPONSE response; @@ -1555,7 +1555,7 @@ UINT xf_cliprdr_clipboard_file_size_success(wClipboardDelegate* delegate, return clipboard->context->ClientFileContentsResponse(clipboard->context, &response); } -UINT xf_cliprdr_clipboard_file_size_failure(wClipboardDelegate* delegate, +static UINT xf_cliprdr_clipboard_file_size_failure(wClipboardDelegate* delegate, const wClipboardFileSizeRequest* request, UINT errorCode) { CLIPRDR_FILE_CONTENTS_RESPONSE response; @@ -1570,7 +1570,7 @@ UINT xf_cliprdr_clipboard_file_size_failure(wClipboardDelegate* delegate, return clipboard->context->ClientFileContentsResponse(clipboard->context, &response); } -UINT xf_cliprdr_clipboard_file_range_success(wClipboardDelegate* delegate, +static UINT xf_cliprdr_clipboard_file_range_success(wClipboardDelegate* delegate, const wClipboardFileRangeRequest* request, const BYTE* data, UINT32 size) { CLIPRDR_FILE_CONTENTS_RESPONSE response; @@ -1587,7 +1587,7 @@ UINT xf_cliprdr_clipboard_file_range_success(wClipboardDelegate* delegate, return clipboard->context->ClientFileContentsResponse(clipboard->context, &response); } -UINT xf_cliprdr_clipboard_file_range_failure(wClipboardDelegate* delegate, +static UINT xf_cliprdr_clipboard_file_range_failure(wClipboardDelegate* delegate, const wClipboardFileRangeRequest* request, UINT errorCode) { CLIPRDR_FILE_CONTENTS_RESPONSE response;