Preset LoadChannels function pointer

This commit is contained in:
akallabeth 2022-06-28 17:01:45 +02:00 committed by akallabeth
parent e956a0e155
commit ebf5de1d1d
7 changed files with 2 additions and 6 deletions

View File

@ -532,7 +532,6 @@ static BOOL android_client_new(freerdp* instance, rdpContext* context)
if (!android_event_queue_init(instance)) if (!android_event_queue_init(instance))
return FALSE; return FALSE;
instance->LoadChannels = freerdp_client_load_channels;
instance->PreConnect = android_pre_connect; instance->PreConnect = android_pre_connect;
instance->PostConnect = android_post_connect; instance->PostConnect = android_post_connect;
instance->PostDisconnect = android_post_disconnect; instance->PostDisconnect = android_post_disconnect;

View File

@ -88,7 +88,6 @@ static BOOL mfreerdp_client_new(freerdp *instance, rdpContext *context)
WINPR_ASSERT(mfc); WINPR_ASSERT(mfc);
mfc->stopEvent = CreateEvent(NULL, TRUE, FALSE, NULL); mfc->stopEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
context->instance->LoadChannels = freerdp_client_load_channels;
context->instance->PreConnect = mac_pre_connect; context->instance->PreConnect = mac_pre_connect;
context->instance->PostConnect = mac_post_connect; context->instance->PostConnect = mac_post_connect;
context->instance->PostDisconnect = mac_post_disconnect; context->instance->PostDisconnect = mac_post_disconnect;

View File

@ -321,7 +321,6 @@ static BOOL tf_client_new(freerdp* instance, rdpContext* context)
if (!instance || !context) if (!instance || !context)
return FALSE; return FALSE;
instance->LoadChannels = freerdp_client_load_channels;
instance->PreConnect = tf_pre_connect; instance->PreConnect = tf_pre_connect;
instance->PostConnect = tf_post_connect; instance->PostConnect = tf_post_connect;
instance->PostDisconnect = tf_post_disconnect; instance->PostDisconnect = tf_post_disconnect;

View File

@ -619,7 +619,6 @@ static BOOL wlf_client_new(freerdp* instance, rdpContext* context)
if (!instance || !context) if (!instance || !context)
return FALSE; return FALSE;
instance->LoadChannels = freerdp_client_load_channels;
instance->PreConnect = wl_pre_connect; instance->PreConnect = wl_pre_connect;
instance->PostConnect = wl_post_connect; instance->PostConnect = wl_post_connect;
instance->PostDisconnect = wl_post_disconnect; instance->PostDisconnect = wl_post_disconnect;

View File

@ -1306,7 +1306,6 @@ static BOOL wfreerdp_client_new(freerdp* instance, rdpContext* context)
return FALSE; return FALSE;
WINPR_ASSERT(instance); WINPR_ASSERT(instance);
instance->LoadChannels = freerdp_client_load_channels;
instance->PreConnect = wf_pre_connect; instance->PreConnect = wf_pre_connect;
instance->PostConnect = wf_post_connect; instance->PostConnect = wf_post_connect;
instance->PostDisconnect = wf_post_disconnect; instance->PostDisconnect = wf_post_disconnect;

View File

@ -1834,7 +1834,6 @@ static BOOL xfreerdp_client_new(freerdp* instance, rdpContext* context)
WINPR_ASSERT(!xfc->display); WINPR_ASSERT(!xfc->display);
WINPR_ASSERT(!xfc->mutex); WINPR_ASSERT(!xfc->mutex);
WINPR_ASSERT(!xfc->x11event); WINPR_ASSERT(!xfc->x11event);
instance->LoadChannels = freerdp_client_load_channels;
instance->PreConnect = xf_pre_connect; instance->PreConnect = xf_pre_connect;
instance->PostConnect = xf_post_connect; instance->PostConnect = xf_post_connect;
instance->PostDisconnect = xf_post_disconnect; instance->PostDisconnect = xf_post_disconnect;

View File

@ -64,6 +64,8 @@ static BOOL freerdp_client_common_new(freerdp* instance, rdpContext* context)
WINPR_ASSERT(instance); WINPR_ASSERT(instance);
WINPR_ASSERT(context); WINPR_ASSERT(context);
instance->LoadChannels = freerdp_client_load_channels;
pEntryPoints = instance->pClientEntryPoints; pEntryPoints = instance->pClientEntryPoints;
WINPR_ASSERT(pEntryPoints); WINPR_ASSERT(pEntryPoints);
return IFCALLRESULT(TRUE, pEntryPoints->ClientNew, instance, context); return IFCALLRESULT(TRUE, pEntryPoints->ClientNew, instance, context);