khronosfws/openmax_al/src/adaptation/xaledarrayitfadaptation.c
changeset 33 5e8b14bae8c3
parent 28 ebf79c79991a
child 36 73253677b50a
equal deleted inserted replaced
28:ebf79c79991a 33:5e8b14bae8c3
     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 #include "XALEDArrayAdaptCtx.h"
       
    19 #include "XALEDArrayItfAdaptation.h"
       
    20 #include "XAAdaptation.h"
       
    21 
       
    22 /*
       
    23  * XAresult XALEDArrayItfAdapt_ActivateLEDArray ( XAAdaptationBaseCtx *bCtx, XAuint32 lightMask )
       
    24  */
       
    25 XAresult XALEDArrayItfAdapt_ActivateLEDArray ( XAAdaptationBaseCtx *bCtx, XAuint32 lightMask )
       
    26 {
       
    27     XAresult ret = XA_RESULT_SUCCESS;
       
    28     DEBUG_API_A1("->XALEDArrayItfAdapt_ActivateLEDArray %ld", lightMask);
       
    29 
       
    30     if(!bCtx || bCtx->ctxId != XALedArrayAdaptation )
       
    31     {
       
    32         DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
       
    33         return XA_RESULT_PARAMETER_INVALID;
       
    34     }
       
    35 
       
    36     DEBUG_INFO("No support > stubbed.");
       
    37     DEBUG_API("<-XALEDArrayItfAdapt_ActivateLEDArray");
       
    38     return ret;
       
    39 }
       
    40 /*
       
    41  * XAresult XALEDArrayItfAdapt_SetColor ( XAAdaptationBaseCtx *bCtx, XAuint8 index, const XAHSL * pColor )
       
    42  */
       
    43 XAresult XALEDArrayItfAdapt_SetColor ( XAAdaptationBaseCtx *bCtx, XAuint8 index, const XAHSL * pColor )
       
    44 {
       
    45     XAresult ret = XA_RESULT_SUCCESS;
       
    46     DEBUG_API("->XALEDArrayItfAdapt_SetColor");
       
    47 
       
    48     if(!bCtx || bCtx->ctxId != XALedArrayAdaptation )
       
    49     {
       
    50         DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
       
    51         return XA_RESULT_PARAMETER_INVALID;
       
    52     }
       
    53 
       
    54     DEBUG_INFO("No support > stubbed.");
       
    55     DEBUG_API("<-XALEDArrayItfAdapt_SetColor");
       
    56     return ret;
       
    57 }