mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnings] fix mismatches between declaration and implementation
This commit is contained in:
@@ -33,9 +33,10 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
FREERDP_API SSIZE_T freerdp_bitmap_compress(const void* in_data, UINT32 width, UINT32 height,
|
||||
wStream* s, UINT32 bpp, UINT32 byte_limit,
|
||||
UINT32 start_line, wStream* temp_s, UINT32 e);
|
||||
FREERDP_API SSIZE_T freerdp_bitmap_compress(const void* WINPR_RESTRICT srcData, UINT32 width,
|
||||
UINT32 height, wStream* WINPR_RESTRICT s,
|
||||
UINT32 bpp, UINT32 byte_limit, UINT32 start_line,
|
||||
wStream* WINPR_RESTRICT temp_s, UINT32 e);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -33,18 +33,21 @@ extern "C"
|
||||
|
||||
typedef struct S_CLEAR_CONTEXT CLEAR_CONTEXT;
|
||||
|
||||
FREERDP_API int clear_compress(CLEAR_CONTEXT* clear, const BYTE* pSrcData, UINT32 SrcSize,
|
||||
BYTE** ppDstData, UINT32* pDstSize);
|
||||
FREERDP_API int clear_compress(CLEAR_CONTEXT* WINPR_RESTRICT clear,
|
||||
const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
|
||||
BYTE** WINPR_RESTRICT ppDstData,
|
||||
UINT32* WINPR_RESTRICT pDstSize);
|
||||
|
||||
FREERDP_API INT32 clear_decompress(CLEAR_CONTEXT* clear, const BYTE* pSrcData, UINT32 SrcSize,
|
||||
UINT32 nWidth, UINT32 nHeight, BYTE* pDstData,
|
||||
FREERDP_API INT32 clear_decompress(CLEAR_CONTEXT* WINPR_RESTRICT clear,
|
||||
const BYTE* WINPR_RESTRICT pSrcData, UINT32 SrcSize,
|
||||
UINT32 nWidth, UINT32 nHeight, BYTE* WINPR_RESTRICT pDstData,
|
||||
UINT32 DstFormat, UINT32 nDstStep, UINT32 nXDst,
|
||||
UINT32 nYDst, UINT32 nDstWidth, UINT32 nDstHeight,
|
||||
const gdiPalette* palette);
|
||||
const gdiPalette* WINPR_RESTRICT palette);
|
||||
|
||||
FREERDP_API BOOL clear_context_reset(CLEAR_CONTEXT* clear);
|
||||
FREERDP_API BOOL clear_context_reset(CLEAR_CONTEXT* WINPR_RESTRICT clear);
|
||||
|
||||
FREERDP_API void clear_context_free(CLEAR_CONTEXT* clear);
|
||||
FREERDP_API void clear_context_free(CLEAR_CONTEXT* WINPR_RESTRICT clear);
|
||||
|
||||
WINPR_ATTR_MALLOC(clear_context_free, 1)
|
||||
FREERDP_API CLEAR_CONTEXT* clear_context_new(BOOL Compressor);
|
||||
|
||||
@@ -46,7 +46,7 @@ extern "C"
|
||||
FREERDP_API BOOL freerdp_dsp_decode(FREERDP_DSP_CONTEXT* WINPR_RESTRICT context,
|
||||
const AUDIO_FORMAT* WINPR_RESTRICT srcFormat,
|
||||
const BYTE* WINPR_RESTRICT data, size_t length,
|
||||
wStream* out);
|
||||
wStream* WINPR_RESTRICT out);
|
||||
|
||||
FREERDP_API BOOL freerdp_dsp_context_reset(FREERDP_DSP_CONTEXT* WINPR_RESTRICT context,
|
||||
const AUDIO_FORMAT* WINPR_RESTRICT targetFormat,
|
||||
|
||||
@@ -55,9 +55,9 @@ extern "C"
|
||||
|
||||
FREERDP_API BOOL nsc_process_message(NSC_CONTEXT* WINPR_RESTRICT context, UINT16 bpp,
|
||||
UINT32 width, UINT32 height, const BYTE* data,
|
||||
UINT32 length, BYTE* pDstData, UINT32 DstFormat,
|
||||
UINT32 nDstStride, UINT32 nXDst, UINT32 nYDst,
|
||||
UINT32 nWidth, UINT32 nHeight, UINT32 flip);
|
||||
UINT32 length, BYTE* WINPR_RESTRICT pDstData,
|
||||
UINT32 DstFormat, UINT32 nDstStride, UINT32 nXDst,
|
||||
UINT32 nYDst, UINT32 nWidth, UINT32 nHeight, UINT32 flip);
|
||||
FREERDP_API BOOL nsc_compose_message(NSC_CONTEXT* WINPR_RESTRICT context,
|
||||
wStream* WINPR_RESTRICT s,
|
||||
const BYTE* WINPR_RESTRICT bmpdata, UINT32 width,
|
||||
|
||||
@@ -121,7 +121,8 @@ extern "C"
|
||||
WINPR_ATTR_MALLOC(rfx_context_free, 1)
|
||||
FREERDP_API RFX_CONTEXT* rfx_context_new(BOOL encoder);
|
||||
|
||||
FREERDP_API BOOL rfx_context_reset(RFX_CONTEXT* context, UINT32 width, UINT32 height);
|
||||
FREERDP_API BOOL rfx_context_reset(RFX_CONTEXT* WINPR_RESTRICT context, UINT32 width,
|
||||
UINT32 height);
|
||||
|
||||
FREERDP_API BOOL rfx_context_set_mode(RFX_CONTEXT* context, RLGR_MODE mode);
|
||||
|
||||
@@ -132,9 +133,10 @@ extern "C"
|
||||
*
|
||||
* @return The RFX mode that is currently in use
|
||||
*/
|
||||
FREERDP_API RLGR_MODE rfx_context_get_mode(RFX_CONTEXT* context);
|
||||
FREERDP_API RLGR_MODE rfx_context_get_mode(RFX_CONTEXT* WINPR_RESTRICT context);
|
||||
|
||||
FREERDP_API void rfx_context_set_pixel_format(RFX_CONTEXT* context, UINT32 pixel_format);
|
||||
FREERDP_API void rfx_context_set_pixel_format(RFX_CONTEXT* WINPR_RESTRICT context,
|
||||
UINT32 pixel_format);
|
||||
|
||||
/** Getter for RFX pixel format
|
||||
* @param context The RFX context to query
|
||||
@@ -143,9 +145,10 @@ extern "C"
|
||||
*
|
||||
* @return The RFX pixel format that is currently in use
|
||||
*/
|
||||
FREERDP_API UINT32 rfx_context_get_pixel_format(RFX_CONTEXT* context);
|
||||
FREERDP_API UINT32 rfx_context_get_pixel_format(RFX_CONTEXT* WINPR_RESTRICT context);
|
||||
|
||||
FREERDP_API void rfx_context_set_palette(RFX_CONTEXT* context, const BYTE* palette);
|
||||
FREERDP_API void rfx_context_set_palette(RFX_CONTEXT* WINPR_RESTRICT context,
|
||||
const BYTE* WINPR_RESTRICT palette);
|
||||
|
||||
/** Getter for RFX palette
|
||||
* @param context The RFX context to query
|
||||
@@ -154,9 +157,9 @@ extern "C"
|
||||
*
|
||||
* @return The RFX palette that is currently in use or \b NULL
|
||||
*/
|
||||
FREERDP_API const BYTE* rfx_context_get_palette(RFX_CONTEXT* context);
|
||||
FREERDP_API const BYTE* rfx_context_get_palette(RFX_CONTEXT* WINPR_RESTRICT context);
|
||||
|
||||
FREERDP_API UINT32 rfx_context_get_frame_idx(const RFX_CONTEXT* context);
|
||||
FREERDP_API UINT32 rfx_context_get_frame_idx(const RFX_CONTEXT* WINPR_RESTRICT context);
|
||||
|
||||
/** Write a RFX message as simple progressive message to a stream.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user