os/kernelhwsrv/kerneltest/f32test/shostmassstorage/msman/server/usbhostserver.cpp
Update contrib.
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
20 #include "cusbhostserver.h"
23 static void RunServerL()
25 CActiveScheduler* scheduler = new(ELeave) CActiveScheduler;
26 CleanupStack::PushL(scheduler);
27 CActiveScheduler::Install(scheduler);
29 CUsbHostServer::NewLC();
30 RProcess::Rendezvous(KErrNone);
32 CActiveScheduler::Start();
34 CleanupStack::PopAndDestroy(2);
35 RDebug::Printf("USB HOST server shutdown");
40 // Server process entry-point
44 CTrapCleanup* cleanup = CTrapCleanup::New();
45 TInt r = KErrNoMemory;
48 TRAP(r, RunServerL());