khronosfws/openmax_al/src/vibra/xavibraitf.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 XAVIBRAITF_H
       
    19 #define XAVIBRAITF_H
       
    20 
       
    21 #include "openmaxalwrapper.h"
       
    22 #include "xaglobals.h"
       
    23 #ifdef _GSTREAMER_BACKEND_  
       
    24 #include "XAAdaptationContextBase.h"
       
    25 #endif
       
    26 /** MACROS **/
       
    27 #define MIN_INTENSITY 0
       
    28 #define MAX_INTENSITY 1000
       
    29 #define MIN_FREQUENCY 0x00000001
       
    30 #define MAX_FREQUENCY 0xFFFFFFFF
       
    31 /** TYPES **/
       
    32 
       
    33 /** ENUMERATIONS **/
       
    34 
       
    35 /** STRUCTURES **/
       
    36 
       
    37 /* Definition of XAXAVibraItfItf implementation */
       
    38 typedef struct XAVibraItfImpl_
       
    39 {
       
    40    /* parent interface */
       
    41     struct XAVibraItf_ itf;
       
    42     /* pointer to self */
       
    43     struct XAVibraItfImpl_* self;
       
    44 
       
    45     /* variables */
       
    46     XAboolean       vibrate;
       
    47     XAmilliHertz    frequency;
       
    48     XApermille      intensity;
       
    49 
       
    50 #ifdef _GSTREAMER_BACKEND_  
       
    51     /*Adaptation variables*/
       
    52     XAAdaptationBaseCtx *adapCtx;
       
    53 #endif
       
    54 } XAVibraItfImpl;
       
    55 
       
    56 /** METHODS **/
       
    57 
       
    58 /* Base interface XAVibraItf implementation
       
    59  * See API Specification for method documentation
       
    60 */
       
    61 XAresult XAVibraItfImpl_Vibrate ( XAVibraItf self, XAboolean vibrate );
       
    62 XAresult XAVibraItfImpl_IsVibrating ( XAVibraItf self, XAboolean * pVibrating );
       
    63 XAresult XAVibraItfImpl_SetFrequency ( XAVibraItf self, XAmilliHertz frequency );
       
    64 XAresult XAVibraItfImpl_GetFrequency ( XAVibraItf self, XAmilliHertz * pFrequency );
       
    65 XAresult XAVibraItfImpl_SetIntensity ( XAVibraItf self, XApermille intensity );
       
    66 XAresult XAVibraItfImpl_GetIntensity ( XAVibraItf self, XApermille * pIntensity );
       
    67 
       
    68 #ifdef _GSTREAMER_BACKEND_  
       
    69 /* XAVibraItfImpl -specific methods*/
       
    70 XAVibraItfImpl* XAVibraItfImpl_Create( XAAdaptationBaseCtx *adapCtx );
       
    71 #endif
       
    72 void XAVibraItfImpl_Free(XAVibraItfImpl* self);
       
    73 #endif /* XAVIBRAITF_H */