mirror of https://github.com/FreeRDP/FreeRDP
Silenced unused parameter warnings, added log messages.
This commit is contained in:
parent
1d87fdc803
commit
8b5ef6f41f
|
@ -53,6 +53,8 @@ static UINT sf_peer_audin_opening(audin_server_context* context)
|
|||
*/
|
||||
static UINT sf_peer_audin_open_result(audin_server_context* context, UINT32 result)
|
||||
{
|
||||
/* TODO: Implement */
|
||||
WLog_WARN(TAG, "%s not implemented", __FUNCTION__);
|
||||
WLog_DBG(TAG, "AUDIN open result %"PRIu32".", result);
|
||||
return CHANNEL_RC_OK;
|
||||
}
|
||||
|
@ -66,7 +68,9 @@ static UINT sf_peer_audin_receive_samples(audin_server_context* context,
|
|||
const AUDIO_FORMAT* format, wStream* buf,
|
||||
size_t nframes)
|
||||
{
|
||||
WLog_DBG(TAG, "AUDIN receive %"PRIdz" frames.", nframes);
|
||||
/* TODO: Implement */
|
||||
WLog_WARN(TAG, "%s not implemented", __FUNCTION__);
|
||||
WLog_DBG(TAG, "%s receive %"PRIdz" frames.", __FUNCTION__, nframes);
|
||||
return CHANNEL_RC_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
static void sf_peer_rdpsnd_activated(RdpsndServerContext* context)
|
||||
{
|
||||
WINPR_UNUSED(context);
|
||||
WLog_DBG(TAG, "RDPSND Activated");
|
||||
}
|
||||
|
||||
|
|
|
@ -99,6 +99,8 @@ fail_rfx_context:
|
|||
|
||||
void test_peer_context_free(freerdp_peer* client, testPeerContext* context)
|
||||
{
|
||||
WINPR_UNUSED(client);
|
||||
|
||||
if (context)
|
||||
{
|
||||
if (context->debug_channel_thread)
|
||||
|
@ -632,6 +634,7 @@ BOOL tf_peer_activate(freerdp_peer* client)
|
|||
|
||||
BOOL tf_peer_synchronize_event(rdpInput* input, UINT32 flags)
|
||||
{
|
||||
WINPR_UNUSED(input);
|
||||
WLog_DBG(TAG, "Client sent a synchronize event (flags:0x%"PRIX32")", flags);
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -698,6 +701,7 @@ BOOL tf_peer_keyboard_event(rdpInput* input, UINT16 flags, UINT16 code)
|
|||
|
||||
BOOL tf_peer_unicode_keyboard_event(rdpInput* input, UINT16 flags, UINT16 code)
|
||||
{
|
||||
WINPR_UNUSED(input);
|
||||
WLog_DBG(TAG, "Client sent a unicode keyboard event (flags:0x%04"PRIX16" code:0x%04"PRIX16")",
|
||||
flags, code);
|
||||
return TRUE;
|
||||
|
@ -705,6 +709,7 @@ BOOL tf_peer_unicode_keyboard_event(rdpInput* input, UINT16 flags, UINT16 code)
|
|||
|
||||
BOOL tf_peer_mouse_event(rdpInput* input, UINT16 flags, UINT16 x, UINT16 y)
|
||||
{
|
||||
WINPR_UNUSED(flags);
|
||||
//WLog_DBG(TAG, "Client sent a mouse event (flags:0x%04"PRIX16" pos:%"PRIu16",%"PRIu16")", flags, x, y);
|
||||
test_peer_draw_icon(input->context->peer, x + 10, y);
|
||||
return TRUE;
|
||||
|
@ -713,7 +718,9 @@ BOOL tf_peer_mouse_event(rdpInput* input, UINT16 flags, UINT16 x, UINT16 y)
|
|||
BOOL tf_peer_extended_mouse_event(rdpInput* input, UINT16 flags, UINT16 x,
|
||||
UINT16 y)
|
||||
{
|
||||
WINPR_UNUSED(flags);
|
||||
//WLog_DBG(TAG, "Client sent an extended mouse event (flags:0x%04"PRIX16" pos:%"PRIu16",%"PRIu16")", flags, x, y);
|
||||
test_peer_draw_icon(input->context->peer, x + 10, y);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -721,6 +728,7 @@ static BOOL tf_peer_refresh_rect(rdpContext* context, BYTE count,
|
|||
const RECTANGLE_16* areas)
|
||||
{
|
||||
BYTE i;
|
||||
WINPR_UNUSED(context);
|
||||
WLog_DBG(TAG, "Client requested to refresh:");
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
|
@ -735,6 +743,8 @@ static BOOL tf_peer_refresh_rect(rdpContext* context, BYTE count,
|
|||
static BOOL tf_peer_suppress_output(rdpContext* context, BYTE allow,
|
||||
const RECTANGLE_16* area)
|
||||
{
|
||||
WINPR_UNUSED(context);
|
||||
|
||||
if (allow > 0)
|
||||
{
|
||||
WLog_DBG(TAG, "Client restore output (%"PRIu16", %"PRIu16") (%"PRIu16", %"PRIu16").", area->left,
|
||||
|
@ -843,6 +853,7 @@ static DWORD WINAPI test_peer_mainloop(LPVOID arg)
|
|||
static BOOL test_peer_accepted(freerdp_listener* instance, freerdp_peer* client)
|
||||
{
|
||||
HANDLE hThread;
|
||||
WINPR_UNUSED(instance);
|
||||
|
||||
if (!(hThread = CreateThread(NULL, 0, test_peer_mainloop, (void*) client, 0, NULL)))
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue