From 601b0c7f8c8d8118665d7f9a232e574e7d74002f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Tue, 30 Apr 2013 15:18:26 -0400 Subject: [PATCH] wfreerdp: update client interface --- client/Windows/wf_interface.c | 15 +++++++++++++++ client/Windows/wf_interface.h | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/client/Windows/wf_interface.c b/client/Windows/wf_interface.c index 09c465e88..1f22fb34e 100644 --- a/client/Windows/wf_interface.c +++ b/client/Windows/wf_interface.c @@ -829,6 +829,21 @@ int freerdp_client_stop(wfInfo* wfi) return 0; } +HANDLE freerdp_client_get_thread(wfInfo* cfi) +{ + return cfi->thread; +} + +freerdp* freerdp_client_get_instance(wfInfo* cfi) +{ + return cfi->instance; +} + +rdpClient* freerdp_client_get_interface(wfInfo* cfi) +{ + return cfi->client; +} + int freerdp_client_focus_in(wfInfo* wfi) { PostThreadMessage(wfi->mainThreadId, WM_SETFOCUS, 0, 1); diff --git a/client/Windows/wf_interface.h b/client/Windows/wf_interface.h index 16891db82..fc5031d59 100644 --- a/client/Windows/wf_interface.h +++ b/client/Windows/wf_interface.h @@ -129,6 +129,10 @@ FREERDP_API int freerdp_client_global_uninit(); FREERDP_API int freerdp_client_start(wfInfo* cfi); FREERDP_API int freerdp_client_stop(wfInfo* cfi); +FREERDP_API HANDLE freerdp_client_get_thread(wfInfo* cfi); +FREERDP_API freerdp* freerdp_client_get_instance(wfInfo* cfi); +FREERDP_API rdpClient* freerdp_client_get_interface(wfInfo* cfi); + FREERDP_API int freerdp_client_focus_in(wfInfo* cfi); FREERDP_API int freerdp_client_focus_out(wfInfo* cfi);