Update contrib.
1 // Copyright (c) 2007-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 <ecom/ecom.h>
18 #include "MmfDrmPluginServerStart.h"
19 #include "MmfDrmPluginServer.h"
22 // 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 RProcess().DataCaging(RProcess::EDataCagingOn);
30 RProcess().SecureApi(RProcess::ESecureApiOn);
32 CActiveScheduler* sched=NULL;
33 sched=new(ELeave) CActiveScheduler;
34 CActiveScheduler::Install(sched);
35 CMMFDRMPluginServer* server = NULL;
36 TRAPD(err,server = CMMFDRMPluginServer::NewL());
39 // Sync with the client and enter the active scheduler
40 RProcess::Rendezvous(KErrNone);
48 GLDEF_C TInt E32Main()
50 * @return - Standard Epoc error code on exit
54 CTrapCleanup* cleanup = CTrapCleanup::New();
61 REComSession::FinalClose();