mmmw_plat/openmax_al_api/tsrc/openmaxaltestmodule/src/common/openmaxalobjectcallbacks.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:59:52 +0300
changeset 14 80975da52420
child 16 43d09473c595
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
* 
* Description: This file contains testclass implementation.
*
*/

// [INCLUDE FILES] - do not remove
#include <e32svr.h>
#include <StifParser.h>
#include <StifTestInterface.h>
#include "openmaxaltestmodule.h"

// EXTERNAL DATA STRUCTURES
//extern  ?external_data;

// EXTERNAL FUNCTION PROTOTYPES  
//extern ?external_function( ?arg_type,?arg_type );

// CONSTANTS
//const ?type ?constant_var = ?constant;

// MACROS
//#define ?macro ?macro_def

// LOCAL CONSTANTS AND MACROS
//const ?type ?constant_var = ?constant;
//#define ?macro_name ?macro_def

// MODULE DATA STRUCTURES
//enum ?declaration
//typedef ?declaration

// LOCAL FUNCTION PROTOTYPES
//?type ?function_name( ?arg_type, ?arg_type );
void ObjectCallback(XAObjectItf caller,
        const void * pContext,
        XAuint32 event,
        XAresult result,
        XAuint32 param,
        void * pInterface);

void MediaRecorderCallback(XAObjectItf caller,
        const void * pContext,
        XAuint32 event,
        XAresult result,
        XAuint32 param,
        void * pInterface);
// FORWARD DECLARATIONS
//class ?FORWARD_CLASSNAME;

// ============================= LOCAL FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// ?function_name ?description.
// ?description
// Returns: ?value_1: ?description
//          ?value_n: ?description_line1
//                    ?description_line2
// -----------------------------------------------------------------------------
//
/*
?type ?function_name(
    ?arg_type arg,  // ?description
    ?arg_type arg)  // ?description
    {

    ?code  // ?comment

    // ?comment
    ?code
    }
*/

xaObjectCallback COpenMAXALTestModule::GetCallbackFunc(TInt object)
    {
    xaObjectCallback func(NULL);
    switch(object)
        {
        case EEngine:
            func = ObjectCallback;
            break;
        case EMediaRecorder:
            func = MediaRecorderCallback;
            break;
        default:
            func = NULL;
            break;
        }
    return func;
    
    }


void ObjectCallback(XAObjectItf caller,
        const void * pContext,
        XAuint32 event,
        XAresult result,
        XAuint32 param,
        void * pInterface)
    {
    
    }

void MediaRecorderCallback(XAObjectItf caller,
        const void * pContext,
        XAuint32 event,
        XAresult result,
        XAuint32 param,
        void * pInterface)
    {
    
    }