khronosfws/openmax_al/src/adptcommon/xaframeworkmgr.h
branchRCL_3
changeset 46 0ac9a5310753
parent 45 095bea5f582e
child 50 999b2818a0eb
equal deleted inserted replaced
45:095bea5f582e 46:0ac9a5310753
     1 /*
       
     2  * Copyright (c) 2009 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: Header File for Framework Manager
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef XAFRAMEWORKMANAGER_H
       
    19 #define XAFRAMEWORKMANAGER_H
       
    20 
       
    21 #include <stdlib.h>
       
    22 
       
    23 typedef enum
       
    24     {
       
    25     FWMgrMOUnknown,
       
    26     FWMgrMOPlayer,
       
    27     FWMgrMORecorder
       
    28     } FWMgrMOType;
       
    29 
       
    30 typedef enum
       
    31     {
       
    32     FWMgrFWUknown,
       
    33     FWMgrFWMMF,
       
    34     FWMgrFWGST
       
    35     } FWMgrFwType;
       
    36 
       
    37 typedef enum
       
    38     {
       
    39     FWMgrFalse,
       
    40     FWMgrTrue
       
    41     } FWMgrBool;
       
    42 
       
    43 typedef struct FrameworkMap_ FrameworkMap;
       
    44 
       
    45 struct FrameworkMap_
       
    46     {
       
    47     FWMgrMOType moType;
       
    48     int uriSchemeCount;
       
    49     char **uriSchemes;
       
    50     int fileExtCount;
       
    51     char **fileExts;
       
    52     FWMgrFwType fwType;
       
    53     FrameworkMap *next;
       
    54     };
       
    55 
       
    56 FrameworkMap* XAFrameworkMgr_CreateFrameworkMap(void);
       
    57 #ifdef _DEBUG
       
    58 void XAFrameworkMgr_DumpFrameworkMap(FrameworkMap *map);
       
    59 #endif
       
    60 void XAFrameworkMgr_DeleteFrameworkMap(FrameworkMap **map);
       
    61 
       
    62 FWMgrFwType XAFrameworkMgr_GetFramework(FrameworkMap *map, const char *uri,
       
    63         FWMgrMOType mediaObject);
       
    64 
       
    65 #endif //XAFRAMEWORKMANAGER_H