Added new API freerdp_abort_event

This commit is contained in:
akallabeth 2022-05-05 13:54:08 +02:00 committed by akallabeth
parent a612ca4ba2
commit 104157ed6b
2 changed files with 7 additions and 0 deletions

View File

@ -510,6 +510,7 @@ settings but before rdp_client_connect() to have it executed after the
FREERDP_API BOOL freerdp_abort_connect(freerdp* instance)); FREERDP_API BOOL freerdp_abort_connect(freerdp* instance));
FREERDP_API BOOL freerdp_abort_connect_context(rdpContext* context); FREERDP_API BOOL freerdp_abort_connect_context(rdpContext* context);
FREERDP_API HANDLE freerdp_abort_event(rdpContext* context);
WINPR_DEPRECATED_VAR("use freerdp_shall_disconnect_context instead", WINPR_DEPRECATED_VAR("use freerdp_shall_disconnect_context instead",
FREERDP_API BOOL freerdp_shall_disconnect(freerdp* instance)); FREERDP_API BOOL freerdp_shall_disconnect(freerdp* instance));

View File

@ -1134,3 +1134,9 @@ BOOL freerdp_channels_from_mcs(rdpSettings* settings, const rdpContext* context)
WINPR_ASSERT(context); WINPR_ASSERT(context);
return rdp_channels_from_mcs(settings, context->rdp); return rdp_channels_from_mcs(settings, context->rdp);
} }
HANDLE freerdp_abort_event(rdpContext* context)
{
WINPR_ASSERT(context);
return utils_get_abort_event(context->rdp);
}