static BOOL android_context_new(freerdp* instance, rdpContext* context) { if (!(context->channels = freerdp_channels_new())) return FALSE; if (!android_event_queue_init(instance)) { freerdp_channels_free(context->channels); return FALSE; } return TRUE; }
static BOOL android_client_new(freerdp* instance, rdpContext* context) { if (!instance || !context) return FALSE; if (!android_event_queue_init(instance)) return FALSE; instance->PreConnect = android_pre_connect; instance->PostConnect = android_post_connect; instance->PostDisconnect = android_post_disconnect; instance->Authenticate = android_authenticate; instance->GatewayAuthenticate = android_gw_authenticate; instance->VerifyCertificate = android_verify_certificate; instance->VerifyChangedCertificate = android_verify_changed_certificate; instance->LogonErrorInfo = NULL; return TRUE; }
int android_context_new(freerdp* instance, rdpContext* context) { context->channels = freerdp_channels_new(); android_event_queue_init(instance); return 0; }