khronosfws/openmax_al/src/adptcommon/xaframeworkmgr.h
changeset 31 8dfd592727cb
parent 16 43d09473c595
equal deleted inserted replaced
22:128eb6a32b84 31:8dfd592727cb
     1 
       
     2 /*
     1 /*
     3 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     4 * All rights reserved.
     3  * All rights reserved.
     5 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     6 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     7 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 *
     8  *
    10 * Initial Contributors:
     9  * Initial Contributors:
    11 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    12 *
    11  *
    13 * Contributors:
    12  * Contributors:
    14 *
    13  *
    15 * Description:
    14  * Description: Header File for Framework Manager
    16 *
    15  *
    17 */
    16  */
    18 
    17 
    19 #ifndef XAFRAMEWORKMANAGER_H
    18 #ifndef XAFRAMEWORKMANAGER_H
    20 #define XAFRAMEWORKMANAGER_H
    19 #define XAFRAMEWORKMANAGER_H
    21 
    20 
    22 #include <stdlib.h>
    21 #include <stdlib.h>
    23 
    22 
    24 typedef enum
    23 typedef enum
    25 {
    24     {
    26     FWMgrMOUnknown,
    25     FWMgrMOUnknown,
    27     FWMgrMOPlayer,
    26     FWMgrMOPlayer,
    28     FWMgrMORecorder
    27     FWMgrMORecorder
    29 } FWMgrMOType;
    28     } FWMgrMOType;
    30 
    29 
    31 typedef enum
    30 typedef enum
    32 {
    31     {
    33     FWMgrFWUknown,
    32     FWMgrFWUknown,
    34     FWMgrFWMMF,
    33     FWMgrFWMMF,
    35     FWMgrFWGST
    34     FWMgrFWGST
    36 } FWMgrFwType;
    35     } FWMgrFwType;
    37 
    36 
    38 typedef enum
    37 typedef enum
    39 {
    38     {
    40     FWMgrFalse,
    39     FWMgrFalse,
    41     FWMgrTrue
    40     FWMgrTrue
    42 } FWMgrBool;
    41     } FWMgrBool;
    43 
    42 
    44 typedef struct FrameworkMap_ FrameworkMap;
    43 typedef struct FrameworkMap_ FrameworkMap;
    45 
    44 
    46 struct FrameworkMap_
    45 struct FrameworkMap_
    47 {
    46     {
    48     FWMgrMOType moType;
    47     FWMgrMOType moType;
    49     int uriSchemeCount;
    48     int uriSchemeCount;
    50     char **uriSchemes;
    49     char **uriSchemes;
    51     int fileExtCount;
    50     int fileExtCount;
    52     char **fileExts;
    51     char **fileExts;
    53     FWMgrFwType fwType;
    52     FWMgrFwType fwType;
    54     FrameworkMap *next;
    53     FrameworkMap *next;
    55 };
    54     };
    56 
       
    57 
    55 
    58 FrameworkMap* XAFrameworkMgr_CreateFrameworkMap(void);
    56 FrameworkMap* XAFrameworkMgr_CreateFrameworkMap(void);
    59 #ifdef _DEBUG
    57 #ifdef _DEBUG
    60 void XAFrameworkMgr_DumpFrameworkMap(FrameworkMap *map);
    58 void XAFrameworkMgr_DumpFrameworkMap(FrameworkMap *map);
    61 #endif
    59 #endif
    62 void XAFrameworkMgr_DeleteFrameworkMap(FrameworkMap **map);
    60 void XAFrameworkMgr_DeleteFrameworkMap(FrameworkMap **map);
    63 
    61 
    64 FWMgrFwType XAFrameworkMgr_GetFramework(
    62 FWMgrFwType XAFrameworkMgr_GetFramework(FrameworkMap *map, const char *uri,
    65                     FrameworkMap *map,
    63         FWMgrMOType mediaObject);
    66                     const char *uri,
       
    67                     FWMgrMOType mediaObject);
       
    68 
    64 
    69 #endif //XAFRAMEWORKMANAGER_H
    65 #endif //XAFRAMEWORKMANAGER_H