khronosfws/openmax_al/src/ledarray/xaledarraydevice.h
changeset 12 5a06f39ad45b
child 16 43d09473c595
equal deleted inserted replaced
0:71ca22bcf22a 12:5a06f39ad45b
       
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef XALEDARRAYDEVICE_H
       
    19 #define XALEDARRAYDEVICE_H
       
    20 
       
    21 #include "openmaxalwrapper.h"
       
    22 #include "xaobjectitf.h"
       
    23 #include "xaglobals.h"
       
    24 #ifdef _GSTREAMER_BACKEND_  
       
    25 #include "../adaptation/XALEDArrayAdaptCtx.h"
       
    26 #endif
       
    27 /** MACROS **/
       
    28 
       
    29 
       
    30 /** TYPES **/
       
    31 
       
    32 
       
    33 /** ENUMERATIONS **/
       
    34 /* Enumeration for interfaces that LEDArrayDevice supports.  */
       
    35 typedef enum
       
    36 {
       
    37     LEDARRAY_OBJECTITF,
       
    38     LEDARRAY_LEDARRAYITF,
       
    39     LEDARRAY_CONFIGEXTENSIONITF,
       
    40     LEDARRAY_DIMITF,
       
    41     LEDARRAY_ITFCOUNT
       
    42 } XALEDArrayDeviceInterfaces;
       
    43 
       
    44 /** STRUCTURES **/
       
    45 /* Specification for LEDArrayDeviceImpl. */
       
    46 typedef struct XALEDArrayDeviceImpl_
       
    47 {
       
    48     /* Parent for XALEDArrayDeviceImpl */
       
    49     XAObjectItfImpl baseObj;
       
    50 
       
    51     /* variables */
       
    52     XAuint32 deviceID;
       
    53 
       
    54 #ifdef _GSTREAMER_BACKEND_
       
    55     XAAdaptationBaseCtx* adaptationCtx;
       
    56 #endif
       
    57 } XALEDArrayDeviceImpl;
       
    58 
       
    59 
       
    60 /** METHODS **/
       
    61 
       
    62 /* base object XAObjectItfImpl methods */
       
    63 XAresult    XALEDArrayDeviceImpl_DoRealize(XAObjectItf self);
       
    64 XAresult    XALEDArrayDeviceImpl_DoResume(XAObjectItf self);
       
    65 void        XALEDArrayDeviceImpl_FreeResources(XAObjectItf self);
       
    66 
       
    67 #endif /* XALEDARRAYDEVICE_H */