camerauis/cameraapp/generic/inc/cameracontroller/cambuffersharecleanup.h
changeset 19 d9aefe59d544
parent 3 8b2d6d0384b0
child 21 fa6d9f75d6a6
child 28 3075d9b614e6
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Cleanup method for CCamBufferShare instances.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAM_BUFFERSHARECLEANUP_H
       
    20 #define CAM_BUFFERSHARECLEANUP_H
       
    21 
       
    22 #include "cambuffershare.h"
       
    23 
       
    24 namespace NCamCameraController
       
    25   {
       
    26   inline void 
       
    27   CamBufferShareCleanup( TAny* aCamBufferShare )
       
    28     {
       
    29     CCamBufferShare* bufferShare = static_cast<CCamBufferShare*>( aCamBufferShare );
       
    30     bufferShare->Release();
       
    31     };
       
    32   }
       
    33 
       
    34 #endif