kerneltest/e32test/random/d_entropysources.h
author Mike Kinghan <mikek@symbian.org>
Wed, 21 Jul 2010 14:39:33 +0100
branchGCC_SURGE
changeset 218 cf8aa66d1b90
parent 90 947f0dc9f7a8
permissions -rw-r--r--
Fix for bug 3354 - [GCCE] <typeinfo> not found in e32test build Fix for bug 3355 - [GCCE] "low_mem_requests.h" not found in e32test build. Fix for bug 3356 - [GCCE] <assp/naviengine/pci.h> not found in e32test build

// 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:
// e32test\entropysources\d_entropysources.h
//
// Test driver which notifies userspace when an RNG reseed has taken place
// 
//

/**
 @file
 @internalComponent
 @test
*/

#if !defined(__D_ENTROPYSOURCES_H__)
#define __D_ENTROPYSOURCES_H__

#include <e32cmn.h>
#ifndef __KERNEL_MODE__
#include <e32std.h>
#endif

_LIT(KEntropySourcesName,"D_ENTROPYSOURCES");

class TCapsEntropySources
    {
public:
    TVersion iVersion;
    };

class REntropySources : public RBusLogicalChannel
    {
public:
  enum TRequest
        {
        EReseedTest,        
        };
    
#ifndef __KERNEL_MODE__
public:
    inline TInt Open()
        { 
        return DoCreate(KEntropySourcesName,TVersion(0, 1, 1),KNullUnit,NULL,NULL,EOwnerThread);    
        }
    inline void ReseedTest(TRequestStatus& aRequestStatus)
        {
        DoRequest(EReseedTest, aRequestStatus);
        }
#endif
    };

#endif // __D_ENTROPYSOURCES_H__