{
}
-static int encomsp_send(encomspPlugin* encomsp, wStream* s)
-{
- UINT32 status = 0;
- encomspPlugin* plugin = (encomspPlugin*) encomsp;
-
- if (!plugin)
- {
- status = CHANNEL_RC_BAD_INIT_HANDLE;
- }
- else
- {
- status = plugin->channelEntryPoints.pVirtualChannelWriteEx(plugin->InitHandle, plugin->OpenHandle,
- Stream_Buffer(s), (UINT32) Stream_GetPosition(s), s);
- }
-
- if (status != CHANNEL_RC_OK)
- {
- Stream_Free(s, TRUE);
- WLog_ERR(TAG, "VirtualChannelWriteEx failed with %s [%08"PRIX32"]",
- WTSErrorToString(status), status);
- }
-
- return status;
-}
-
/**
* Function description
*
case CHANNEL_EVENT_DATA_RECEIVED:
if ((error = encomsp_virtual_channel_event_data_received(encomsp, pData,
dataLength, totalLength, dataFlags)))
- WLog_ERR(TAG,
- "encomsp_virtual_channel_event_data_received failed with error %"PRIu32"", error);
+ WLog_ERR(TAG, "encomsp_virtual_channel_event_data_received failed with error %"PRIu32"", error);
break;
#include "remdesk_main.h"
-static RemdeskClientContext* remdesk_get_client_interface(
- remdeskPlugin* remdesk)
-{
- RemdeskClientContext* pInterface;
- pInterface = (RemdeskClientContext*) remdesk->channelEntryPoints.pInterface;
- return pInterface;
-}
-
/**
* Function description
*
remdesk->settings = (rdpSettings*) remdesk->channelEntryPoints.pExtendedData;
}
-/**
- * Function description
- *
- * @return 0 on success, otherwise a Win32 error code
- */
-static UINT remdesk_send(remdeskPlugin* remdesk, wStream* s)
-{
- UINT status = 0;
- remdeskPlugin* plugin = (remdeskPlugin*) remdesk;
-
- if (!plugin)
- {
- status = CHANNEL_RC_BAD_INIT_HANDLE;
- }
- else
- {
- status = plugin->channelEntryPoints.pVirtualChannelWriteEx(plugin->InitHandle, plugin->OpenHandle,
- Stream_Buffer(s), (UINT32) Stream_GetPosition(s), s);
- }
-
- if (status != CHANNEL_RC_OK)
- {
- Stream_Free(s, TRUE);
- WLog_ERR(TAG, "pVirtualChannelWriteEx failed with %s [%08"PRIX32"]",
- WTSErrorToString(status), status);
- }
-
- return status;
-}
/**
* Function description
return 0;
}
+#ifdef WITH_DEBUG_X11
static char* xf_input_touch_state_string(DWORD flags)
{
if (flags & CONTACT_FLAG_DOWN)
else
return "TouchUnknown";
}
+#endif
static void xf_input_hide_cursor(xfContext* xfc)
{
"RAIL_EXEC_E_SESSION_LOCKED"
};
+#ifdef WITH_DEBUG_RAIL
static const char* movetype_names[] =
{
"(invalid)",
"RAIL_WMSZ_KEYMOVE",
"RAIL_WMSZ_KEYSIZE"
};
+#endif
void xf_rail_enable_remoteapp_mode(xfContext* xfc)
{
/***
*
- * @param pDstData destionation buffer
- * @param DstFormat destionation buffer format
- * @param nDstStep destionation buffer stride (line in bytes) 0 for default
+ * @param pDstData destination buffer
+ * @param DstFormat destination buffer format
+ * @param nDstStep destination buffer stride (line in bytes) 0 for default
* @param nXDst destination buffer offset x
* @param nYDst destination buffer offset y
* @param nWidth width to copy in pixels
* @param pSrcData source buffer, must be (nWidth + 7) / 8 bytes long
* @param backColor The background color in internal representation format
* @param foreColor The foreground color in internal representation format
- * @param palette pallete to use (only used for 8 bit color!)
+ * @param palette palette to use (only used for 8 bit color!)
*
* @return TRUE if success, FALSE otherwise
*/
/***
*
- * @param pDstData destionation buffer
- * @param DstFormat destionation buffer format
- * @param nDstStep destionation buffer stride (line in bytes) 0 for default
+ * @param pDstData destination buffer
+ * @param DstFormat destination buffer format
+ * @param nDstStep destination buffer stride (line in bytes) 0 for default
* @param nXDst destination buffer offset x
* @param nYDst destination buffer offset y
* @param nWidth width to copy in pixels
* @param andMask AND mask buffer
* @param andMaskLength AND mask length in bytes
* @param xorBpp XOR bits per pixel
- * @param palette pallete to use (only used for 8 bit color!)
+ * @param palette palette to use (only used for 8 bit color!)
*
* @return TRUE if success, FALSE otherwise
*/
/***
*
- * @param pDstData destionation buffer
- * @param DstFormat destionation buffer format
- * @param nDstStep destionation buffer stride (line in bytes) 0 for default
+ * @param pDstData destination buffer
+ * @param DstFormat destination buffer format
+ * @param nDstStep destination buffer stride (line in bytes) 0 for default
* @param nXDst destination buffer offset x
* @param nYDst destination buffer offset y
* @param nWidth width to copy in pixels
* @param nSrcStep source buffer stride (line in bytes) 0 for default
* @param nXSrc source buffer x offset in pixels
* @param nYSrc source buffer y offset in pixels
- * @param palette pallete to use (only used for 8 bit color!)
+ * @param palette palette to use (only used for 8 bit color!)
* @param flags Image flipping flags FREERDP_FLIP_NONE et al
*
* @return TRUE if success, FALSE otherwise
#define TAG FREERDP_TAG("cache.nine_grid")
-
static void* nine_grid_cache_get(rdpNineGridCache* nine_grid, UINT32 index);
static void nine_grid_cache_put(rdpNineGridCache* nine_grid, UINT32 index, void* entry);
+
static BOOL update_gdi_draw_nine_grid(rdpContext* context,
const DRAW_NINE_GRID_ORDER* draw_nine_grid)
{
#define TAG FREERDP_TAG("cache.palette")
static void* palette_cache_get(rdpPaletteCache* palette, UINT32 index);
+
static void palette_cache_put(rdpPaletteCache* palette, UINT32 index, void* entry);
static BOOL update_gdi_cache_color_table(rdpContext* context,
return TRUE;
}
-static void progressive_rfx_quant_print(RFX_COMPONENT_CODEC_QUANT* q,
- const char* name)
+static void progressive_rfx_quant_print(RFX_COMPONENT_CODEC_QUANT* q, const char* name)
{
fprintf(stderr,
"%s: HL1: %"PRIu8" LH1: %"PRIu8" HH1: %"PRIu8" HL2: %"PRIu8" LH2: %"PRIu8" HH2: %"PRIu8" HL3: %"PRIu8" LH3: %"PRIu8" HH3: %"PRIu8" LL3: %"PRIu8"\n",
q->LL3);
}
+
static INLINE BOOL progressive_set_surface_data(PROGRESSIVE_CONTEXT* progressive,
UINT16 surfaceId, void* pData)
{
surface->gridWidth = (width + (64 - width % 64)) / 64;
surface->gridHeight = (height + (64 - height % 64)) / 64;
surface->gridSize = surface->gridWidth * surface->gridHeight;
- surface->tiles = (RFX_PROGRESSIVE_TILE*) calloc(
- surface->gridSize, sizeof(RFX_PROGRESSIVE_TILE));
+ surface->tiles = (RFX_PROGRESSIVE_TILE*) calloc(surface->gridSize, sizeof(RFX_PROGRESSIVE_TILE));
if (!surface->tiles)
{
int progressive_delete_surface_context(PROGRESSIVE_CONTEXT* progressive,
UINT16 surfaceId)
{
- int ret = 0;
PROGRESSIVE_SURFACE_CONTEXT* surface;
surface = (PROGRESSIVE_SURFACE_CONTEXT *)progressive_get_surface_data(progressive, surfaceId);
#define TAG FREERDP_TAG("codec")
+#ifdef DEBUG_XCRUSH
static const char* xcrush_get_level_2_compression_flags_string(UINT32 flags)
{
flags &= 0xE0;
return "L1_UNKNOWN";
}
+#endif
static UINT32 xcrush_update_hash(BYTE* data, UINT32 size)
{
Level1ComprFlags |= L1_INNER_COMPRESSION;
OriginalData[0] = (BYTE) Level1ComprFlags;
OriginalData[1] = (BYTE) Level2ComprFlags;
-#if 0
+#if DEBUG_XCRUSH
WLog_DBG(TAG, "XCrushCompress: Level1ComprFlags: %s Level2ComprFlags: %s",
xcrush_get_level_1_compression_flags_string(Level1ComprFlags),
xcrush_get_level_2_compression_flags_string(Level2ComprFlags));
Stream_Write_UINT16(s, oicms); /* gdipObjectImageCacheMaxSize (2 bytes) */
}
+
#ifdef WITH_DEBUG_CAPABILITIES
static BOOL rdp_print_draw_nine_grid_cache_capability_set(wStream* s,
UINT16 length)
* @param settings settings
*/
-static BOOL rdp_write_draw_gdiplus_cache_capability_set(wStream* s,
- rdpSettings* settings)
+static BOOL rdp_write_draw_gdiplus_cache_capability_set(wStream* s, rdpSettings* settings)
{
int header;
UINT32 drawGDIPlusSupportLevel;
return status;
}
-static const char* fastpath_get_fragmentation_string(BYTE fragmentation)
-{
- if (fragmentation == FASTPATH_FRAGMENT_SINGLE)
- return "FASTPATH_FRAGMENT_SINGLE";
- else if (fragmentation == FASTPATH_FRAGMENT_LAST)
- return "FASTPATH_FRAGMENT_LAST";
- else if (fragmentation == FASTPATH_FRAGMENT_FIRST)
- return "FASTPATH_FRAGMENT_FIRST";
- else if (fragmentation == FASTPATH_FRAGMENT_NEXT)
- return "FASTPATH_FRAGMENT_NEXT";
-
- return "FASTPATH_FRAGMENT_UNKNOWN";
-}
-
static int fastpath_recv_update_data(rdpFastPath* fastpath, wStream* s)
{
int status;
return TRUE;
}
-static BOOL TsProxySetupReceivePipeReadResponse(rdpTsg* tsg, RPC_PDU* pdu)
-{
- WLog_DBG(TAG, "TsProxySetupReceivePipeReadResponse");
- return TRUE;
-}
int tsg_transition_to_state(rdpTsg* tsg, TSG_STATE state)
{
}
}
-static long transport_bio_tsg_callback(BIO* bio, int mode, const char* argp, int argi, long argl,
- long ret)
-{
- return 1;
-}
static int transport_bio_tsg_write(BIO* bio, const char* buf, int num)
{
return TRUE;
}
+#ifdef DEBUG_MCS
/**
* Print MCS Domain Parameters.
* @param domainParameters domain parameters
WLog_INFO(TAG, "}");
}
+#endif
/**
* Merge MCS Domain Parameters.