baseport/syborg/svpsnapdriver/src/rsvpsnapdriver.cpp
author johnathan.white@2718R8BGH51.accenture.com
Mon, 08 Mar 2010 18:45:03 +0000
changeset 46 b6935a90ca64
parent 2 d55eb581a87c
permissions -rw-r--r--
Modify framebuffer and NGA framebuffer to read screen size from board model dtb file. Optimise memory usuage of frame buffer Add example minigui application with hooks to profiler (which writes results to S:\). Modified NGA framebuffer to run its own dfc queue at high priority

/*
* 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 <e32std.h>    // for User::
#include "rsvpsnapdriver.h"

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

TInt RSVPSnapDriver::Open(void)
{
  DP("** RSVPSnapDriver::Open()");

  const TVersion ver = TVersion(KMajorVersionNumber,KMinorVersionNumber,KBuildVersionNumber);

  return DoCreate(KSVPSnapDriverName,
				  ver,
				  KNullUnit,
				  NULL,
				  NULL);
}

TInt RSVPSnapDriver::SaveVM(const TDesC8& aData)
{
  DP("** RSVPSnapDriver::SaveVM");
  
  //DP("** RSVPSnapDriver::SaveVM: - length of data=%d", length);
  //DP("** RSVPSnapDriver::SaveVM: - aName= %s", name.Ptr());
	
  return DoSVPRequest(ESaveVM,(TAny*)&aData);
 }

TInt RSVPSnapDriver::LoadVM(const TDesC8& aData)
{
  DP("** RSVPSnapDriver::LoadVM");
  return DoSVPRequest(ELoadVM,(TAny*)&aData);
}