First public contribution.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
18 #include "t_sounddriverserver.h"
20 * @return - Instance of the test server
21 * Same code for Secure and non-secure variants
22 * Called inside the MainL() function to create and start the
23 * CTestServer derived server.
25 CT_SoundDriverServer* CT_SoundDriverServer::NewL()
27 CT_SoundDriverServer* server = new (ELeave) CT_SoundDriverServer();
28 CleanupStack::PushL(server);
30 CleanupStack::Pop(server);
36 * Much simpler, uses the new Rendezvous() call to sync with the client
40 #if (defined __DATA_CAGING__)
41 RProcess().DataCaging(RProcess::EDataCagingOn);
42 RProcess().SecureApi(RProcess::ESecureApiOn);
44 CActiveScheduler* sched=NULL;
45 sched=new(ELeave) CActiveScheduler;
46 CActiveScheduler::Install(sched);
47 CT_SoundDriverServer* server = NULL;
48 TRAPD(err, server = CT_SoundDriverServer::NewL());
51 RProcess::Rendezvous(KErrNone);
59 * @return - Standard Epoc error code on process exit
61 * Process entry point. Called by client using RProcess API
63 GLDEF_C TInt E32Main()
65 CTrapCleanup* cleanup = CTrapCleanup::New();
70 #if (defined TRAP_IGNORE)