os/mm/devsound/devsoundrefplugin/src/platsec/server/AudioServer/MmfAudioServerStart.cpp
Update contrib.
1 // Copyright (c) 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 "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.
17 #include "MmfAudioServerStart.h"
18 #include "MmfAudioServer.h"
22 // Just an E32Main and a MainL()
25 * Much simpler, uses the new Rendezvous() call to sync with the client
28 // Leave the hooks in for platform security
29 #if (defined __DATA_CAGING__)
30 RProcess().DataCaging(RProcess::EDataCagingOn);
31 RProcess().SecureApi(RProcess::ESecureApiOn);
33 CActiveScheduler* sched=NULL;
34 sched=new(ELeave) CActiveScheduler;
35 CActiveScheduler::Install(sched);
36 CMMFAudioServer* server = NULL;
37 TRAPD(err,server = CMMFAudioServer::NewL());
38 RProcess::Rendezvous(err);
41 // Sync with the client and enter the active scheduler
51 GLDEF_C TInt E32Main()
53 * @return - Standard Epoc error code on exit
56 CTrapCleanup* cleanup = CTrapCleanup::New();