kerneltest/e32test/random/d_entropysources.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:50:11 +0200
branchRCL_3
changeset 80 597aaf25e343
permissions -rw-r--r--
Revision: 201008 Kit: 201008

// 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__