baseport/syborg/svpsnapdriver/src/rsvpsnapdriver.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 <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);
}