baseport/syborg/svpsnapdriver/src/snapapp.cpp
author Gareth Stockwell <gareth.stockwell@accenture.com>
Wed, 22 Sep 2010 15:40:40 +0100
branchgraphics-phase-3
changeset 111 345f1c88c950
parent 2 d55eb581a87c
permissions -rw-r--r--
Fixes to syborg-graphicswrapper.vcproj These changes allow syborg-graphicswrapper to link against the hostthreadadapter and khronosapiwrapper libraries built by the graphics.simulator component. The .vcproj file uses relative paths, which requires that the following three packages are laid out as follows: os/ graphics adapt/ graphics.simulator qemu

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

#include <e32base.h>   // CTrapCleanup

#include "rsvpsnapdriver.h"

#define SVPDBG
#ifdef SVPDBG
#include <e32debug.h>
#define DP(format...) RDebug::Printf(format)
#else
#define DP(format...)
#endif

_LIT8(KTestSendData,"kalle");

GLDEF_C TInt E32Main()
{
  DP("** (SNAPAPP) E32Main()");

  //  CTrapCleanup* cleanup;
  //  cleanup=CTrapCleanup::New();
  //  __UHEAP_MARK;

#if 0
  TInt err = User::LoadLogicalDevice(KSVPSnapDriverLDD);
  if (err==KErrAlreadyExists)
	DP("KErrAlreadyExists");
#endif
  
  RSVPSnapDriver drv;
  TInt err = drv.Open();
  
#if 1
  if (err==KErrNone)
	  {
	  
	drv.SaveVM(KTestSendData);
	  }
  else
	DP("Error");
#else
  drv.LoadVM(KTestSendData);   // Will never return
#endif
  
  //  __UHEAP_MARKEND;
  //  delete cleanup;
  return(KErrNone);
}