xfreerdp: refactor to make use of single xfContext* and remove xfInfo*

This commit is contained in:
Marc-André Moreau
2013-06-12 18:57:25 -04:00
parent a54d0edcc1
commit bb78fb16f8
23 changed files with 1439 additions and 1469 deletions

View File

@@ -34,28 +34,28 @@
int main(int argc, char* argv[])
{
xfInfo* xfi;
xfContext* xfc;
DWORD dwExitCode;
freerdp* instance;
freerdp_client_global_init();
xfi = freerdp_client_new(argc, argv);
xfc = freerdp_client_new(argc, argv);
if (xfi == NULL)
if (xfc == NULL)
{
return 1;
}
instance = xfi->instance;
instance = xfc->instance;
freerdp_client_start(xfi);
freerdp_client_start(xfc);
WaitForSingleObject(xfi->thread, INFINITE);
WaitForSingleObject(xfc->thread, INFINITE);
GetExitCodeThread(xfi->thread, &dwExitCode);
GetExitCodeThread(xfc->thread, &dwExitCode);
freerdp_client_free(xfi);
freerdp_client_free(xfc);
freerdp_client_global_uninit();