mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
Added fix for TestConnect
* copy test_icon.ppm to build directory * Add client pre|post_connect and disconnect callbacks
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
#include <winpr/path.h>
|
||||
#include <winpr/crypto.h>
|
||||
#include <winpr/pipe.h>
|
||||
|
||||
#include <freerdp/freerdp.h>
|
||||
#include <freerdp/gdi/gdi.h>
|
||||
#include <freerdp/client/cmdline.h>
|
||||
|
||||
static HANDLE s_sync = NULL;
|
||||
@@ -24,6 +26,9 @@ static int runInstance(int argc, char* argv[], freerdp** inst, DWORD timeout)
|
||||
if (inst)
|
||||
*inst = context->instance;
|
||||
|
||||
if (!freerdp_settings_set_bool(context->settings, FreeRDP_DeactivateClientDecoding, TRUE))
|
||||
return FALSE;
|
||||
|
||||
if (freerdp_client_settings_parse_command_line(context->settings, argc, argv, FALSE) < 0)
|
||||
goto finish;
|
||||
|
||||
|
||||
@@ -48,6 +48,9 @@ if (WIN32)
|
||||
set ( SRCS ${SRCS} ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
|
||||
endif()
|
||||
|
||||
# We need this in runtime path for TestConnect
|
||||
file(COPY test_icon.ppm DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
add_executable(${MODULE_NAME} ${SRCS})
|
||||
|
||||
list(APPEND LIBS freerdp-server)
|
||||
|
||||
Reference in New Issue
Block a user