khronosfws/openmax_al/src/adptcommon/xaframeworkmgr.h
author hgs
Fri, 11 Jun 2010 19:59:23 -0500
changeset 25 6f7ceef7b1d1
parent 19 4a629bc82c5e
permissions -rw-r--r--
201023

/*
 * 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: Header File for Framework Manager
 *
 */

#ifndef XAFRAMEWORKMANAGER_H
#define XAFRAMEWORKMANAGER_H

#include <stdlib.h>

typedef enum
    {
    FWMgrMOUnknown,
    FWMgrMOPlayer,
    FWMgrMORecorder
    } FWMgrMOType;

typedef enum
    {
    FWMgrFWUknown,
    FWMgrFWMMF,
    FWMgrFWGST
    } FWMgrFwType;

typedef enum
    {
    FWMgrFalse,
    FWMgrTrue
    } FWMgrBool;

typedef struct FrameworkMap_ FrameworkMap;

struct FrameworkMap_
    {
    FWMgrMOType moType;
    int uriSchemeCount;
    char **uriSchemes;
    int fileExtCount;
    char **fileExts;
    FWMgrFwType fwType;
    FrameworkMap *next;
    };

FrameworkMap* XAFrameworkMgr_CreateFrameworkMap(void);
#ifdef _DEBUG
void XAFrameworkMgr_DumpFrameworkMap(FrameworkMap *map);
#endif
void XAFrameworkMgr_DeleteFrameworkMap(FrameworkMap **map);

FWMgrFwType XAFrameworkMgr_GetFramework(FrameworkMap *map, const char *uri,
        FWMgrMOType mediaObject);

#endif //XAFRAMEWORKMANAGER_H