toolsandutils/e32tools/setcap/setcap.h
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32utils\setcap\setcap.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __SETCAP_H__
       
    19 // We need to build for both TOOLS2 and TOOLS for the moment
       
    20 #if !defined(__TOOLS2_LINUX__)
       
    21 #include <e32wins.h>
       
    22 #include <emulator.h>
       
    23 #endif
       
    24 #include <stdlib.h>
       
    25 
       
    26 #ifndef __WINS__
       
    27 #include <f32image.h>
       
    28 #endif
       
    29 
       
    30 
       
    31 __ASSERT_COMPILE(sizeof(SCapabilitySet)==sizeof(TInt64));  // When parsing capabilities we assume that it's a 64bit quantity
       
    32 
       
    33 GLREF_D TBool CapabilitySet;
       
    34 GLREF_D SCapabilitySet Capability;
       
    35 GLREF_D TBool SecureIdSet;
       
    36 GLREF_D TSecureId SecureId;
       
    37 GLREF_D TBool VendorIdSet;
       
    38 GLREF_D TVendorId VendorId;
       
    39 
       
    40 #if !defined(__EPOC32__) && !defined(__LINUX__)
       
    41 GLREF_C TInt SetCap(HANDLE hFile);
       
    42 #endif //!__EPOC32__
       
    43 
       
    44 #ifndef __WINS__
       
    45 GLREF_C TInt SetCap(E32ImageHeader* h);
       
    46 #endif //!__WINS__
       
    47 
       
    48 #endif //__SETCAP_H__
       
    49