camerauis/cameraapp/generic/inc/cameracontroller/cambuffercleanup.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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CAM_CAMERABUFFERCLEANUP_H
       
    19 #define CAM_CAMERABUFFERCLEANUP_H
       
    20 
       
    21 #include <ecam.h> // MCameraBuffer
       
    22 
       
    23 void 
       
    24 CameraBufferCleanup( TAny* aCameraBuffer )
       
    25   {
       
    26   MCameraBuffer* buffer = static_cast<MCameraBuffer*>( aCameraBuffer );
       
    27   buffer->Release();
       
    28   }
       
    29 
       
    30 #endif