commsfwutils/commsbufs/inc/es_commsbuf.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 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 #ifndef __ESCOMMSBUF_H__
       
    17 #define __ESCOMMSBUF_H__
       
    18 
       
    19 #include <e32cmn.h>
       
    20 #include <e32ver.h>
       
    21 #include <e32base.h>
       
    22 
       
    23 #ifndef __KERNEL_MODE__
       
    24 #define __DECLARE_CLEANUP \
       
    25 	public: inline operator TCleanupItem() { return TCleanupItem(__Cleanup,this); } \
       
    26 	private: IMPORT_C static void __Cleanup(TAny* aPtr);
       
    27 #else
       
    28 #define __DECLARE_CLEANUP
       
    29 #endif
       
    30 
       
    31 /**
       
    32 General class Cleanup stack support
       
    33 */
       
    34 #define __IMPLEMENT_CLEANUP(Class, Function) \
       
    35 	EXPORT_C void Class::__Cleanup(TAny* aPtr) { ((Class*)aPtr)->Function(); }
       
    36 
       
    37 #include <comms-infras/commsbuf.h>
       
    38 #include <comms-infras/commsbufchain.h>
       
    39 #include <comms-infras/commsbufiter.h>
       
    40 #include <comms-infras/commsbufasyncrequest.h>
       
    41 #endif // __ESCOMMSBUF_H__