From 9a9db5b7f31c644d75ba4a5239f5c09f8bf4b792 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 5 Sep 2023 10:27:09 +0200 Subject: [PATCH] [codec,progressive] expose progressive simple server implementations might require serializing messages to a simple tile, so expose this function. --- include/freerdp/codec/progressive.h | 3 +++ libfreerdp/codec/progressive.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/freerdp/codec/progressive.h b/include/freerdp/codec/progressive.h index 7d9c54e25..e71cf00f1 100644 --- a/include/freerdp/codec/progressive.h +++ b/include/freerdp/codec/progressive.h @@ -62,6 +62,9 @@ extern "C" UINT32 ThreadingFlags); FREERDP_API void progressive_context_free(PROGRESSIVE_CONTEXT* progressive); + FREERDP_API BOOL progressive_rfx_write_message_progressive_simple( + PROGRESSIVE_CONTEXT* progressive, wStream* s, const RFX_MESSAGE* msg); + #ifdef __cplusplus } #endif diff --git a/libfreerdp/codec/progressive.c b/libfreerdp/codec/progressive.c index 2e86094ee..2ea1970da 100644 --- a/libfreerdp/codec/progressive.c +++ b/libfreerdp/codec/progressive.c @@ -2640,8 +2640,8 @@ fail: return rc; } -static BOOL progressive_rfx_write_message_progressive_simple(PROGRESSIVE_CONTEXT* progressive, - wStream* s, const RFX_MESSAGE* msg) +BOOL progressive_rfx_write_message_progressive_simple(PROGRESSIVE_CONTEXT* progressive, wStream* s, + const RFX_MESSAGE* msg) { RFX_CONTEXT* context;