commsfwutils/commsbufs/mbufmgr/inc/MBufPanic.h
changeset 0 dfb7c4ff071f
child 18 9644881fedd0
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 1997-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 //
       
    15 
       
    16 /**
       
    17 @file
       
    18 @publishedPartner
       
    19 @released
       
    20 */
       
    21 
       
    22 #if !defined(__MBufPanic_h__)
       
    23 #define __MBufPanic_h__
       
    24 
       
    25 // Ideally, this constant should not be published
       
    26 // - For 3rd party source compatibility this mbuf size will always be available, refer CMBufManager::CreateL() & ::InitL() notes.
       
    27 // - DO NOT ASSUME UNDER NO CIRCUMSTANCES THAT ALL MBUFS ARE OF THIS SIZE!.  Instead, inspect the size via RMBuf::Size.
       
    28 const TInt KMBufSmallSize = 128;
       
    29 
       
    30 // MBuf Manager Error codes - using ESock range
       
    31 const TInt KErrNoMBufs = -17200;
       
    32 
       
    33 const TInt KMBufMaxAllocSize = 0x10000;  // Just to keep things sensible
       
    34 
       
    35 /**
       
    36 MBuf Manager Panics
       
    37 @publishedPartner
       
    38 @released
       
    39 */
       
    40 enum TMBufPanic
       
    41 	{
       
    42 	EMBuf_NoHeap = 0,
       
    43 	EMBuf_CheckFailSize = 1,
       
    44 	EMBuf_CheckFailType = 2,
       
    45 	EMBuf_CheckFailLength = 3,
       
    46 	EMBuf_VCPPFault = 4,
       
    47 	EMBuf_AlreadyInit = 5,
       
    48 	EMBuf_NoManager = 6,
       
    49 	EMBuf_BadBufferSize = 7,
       
    50 	EMBuf_AllreadyAlloc = 8,
       
    51 	EMBuf_AllreadyFree = 9,
       
    52 	EMBuf_NegativeLength = 10,
       
    53 	EMBuf_NegativeOffset = 11,
       
    54 	EMBuf_BadOffset = 12,
       
    55 	EMBuf_EmptyChain = 13,
       
    56 	EMBuf_NotAligned = 14,
       
    57 	EMBuf_CircularRef = 15,
       
    58 	EMBuf_SillyAlloc = 16,
       
    59 	EMBuf_PrematureDestruct = 17,
       
    60 	EMBuf_BadNewInPlace = 18,
       
    61 	EMBuf_NotEmptyChain = 19,
       
    62 	EMBuf_IllegalAlign = 20,
       
    63 	EMBuf_NotAnMBuf = 21,
       
    64 	EMBuf_CorruptMBuf = 22,
       
    65 	EMBuf_NoHeader = 23,
       
    66 	EMBuf_TooBig = 24,
       
    67 	EMBuf_AlreadyActive = 25,
       
    68 	EMBuf_TooSmall = 26,
       
    69 	EMBuf_NoPoolChain = 27,
       
    70 	EMBuf_PoolManager_NegativeMBufSize = 28,
       
    71 	EMBuf_PoolManager_NegativePoolSize = 29,
       
    72 	EMBuf_PoolManager_NegativeMinGrowth = 30,
       
    73 	EMBuf_PoolManager_NegativeGrowthThreshold = 31,
       
    74 	EMBuf_InvalidMBufSize = 32,
       
    75 	EMBuf_NegativeMinMBufSize = 33,
       
    76 	EMBuf_NegativeMaxMBufSize = 34,
       
    77 	EMBuf_MinExceedsMaxMBufSize = 35,
       
    78 	EMBuf_CannotPrependChainedMBuf = 36,
       
    79 	EMBuf_NoPoolManager = 37,
       
    80 	EMBuf_InvalidRefCount = 38,
       
    81 	EMBuf_NotifierThreadOpenFail = 39,
       
    82 	EMBuf_MinExceedsLargestMBufSize = 40,
       
    83 	EMBuf_MaxLessThanSmallestMBufSize = 41,
       
    84 	EMBuf_FreeLockNotOwned = 42,
       
    85 	EMBuf_IndexOutofRange =43,
       
    86 	EMBuf_InvalidLengthOrOffset =44,
       
    87 	EMBuf_AsyncAllocInvalidState =45,
       
    88 	EMBuf_InsufficientSpaceToStorePond = 45
       
    89 	};
       
    90 
       
    91 #endif // __MBufPanic_h__