|
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 XAVIBRADEVICE_H |
|
19 #define XAVIBRADEVICE_H |
|
20 |
|
21 #include "openmaxalwrapper.h" |
|
22 #include "xaobjectitf.h" |
|
23 #include "xaglobals.h" |
|
24 #ifdef _GSTREAMER_BACKEND_ |
|
25 #include "../adaptation/XAVibraAdaptCtx.h" |
|
26 #endif |
|
27 /** MACROS **/ |
|
28 |
|
29 |
|
30 /** TYPES **/ |
|
31 |
|
32 |
|
33 /** ENUMERATIONS **/ |
|
34 /* Enumeration for interfaces that CameraDevice supports. */ |
|
35 typedef enum |
|
36 { |
|
37 VIBRA_OBJECTITF, |
|
38 VIBRA_CONFIGEXTENSIONITF, |
|
39 VIBRA_VIBRAITF, |
|
40 VIBRA_DIMITF, |
|
41 VIBRA_ITFCOUNT |
|
42 } XAVibraDeviceInterfaces; |
|
43 |
|
44 /** STRUCTURES **/ |
|
45 /* Specification for VibraDeviceImpl. */ |
|
46 typedef struct XAVibraDeviceImpl_ |
|
47 { |
|
48 /* Parent for XACameraDeviceImpl */ |
|
49 XAObjectItfImpl baseObj; |
|
50 |
|
51 /* variables */ |
|
52 XAuint32 deviceID; |
|
53 |
|
54 #ifdef _GSTREAMER_BACKEND_ |
|
55 XAAdaptationBaseCtx* adaptationCtx; |
|
56 #endif |
|
57 } XAVibraDeviceImpl; |
|
58 |
|
59 /** METHODS **/ |
|
60 |
|
61 /* base object XAObjectItfImpl methods */ |
|
62 XAresult XAVibraDeviceImpl_DoRealize(XAObjectItf self); |
|
63 XAresult XAVibraDeviceImpl_DoResume(XAObjectItf self); |
|
64 void XAVibraDeviceImpl_FreeResources(XAObjectItf self); |
|
65 |
|
66 #endif /* XAVIBRADEVICE_H */ |