1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: Entry Point to the OpenMAX AL Core from the Client |
15 * |
15 * Application. Implementation of the OpenMAX AL Global |
16 */ |
16 * Functions. |
17 |
17 * |
|
18 * |
|
19 */ |
18 |
20 |
19 #include <stdio.h> |
21 #include <stdio.h> |
20 #include <stdlib.h> |
22 #include <stdlib.h> |
21 |
23 |
22 #include "openmaxalwrapper.h" |
24 #include "openmaxalwrapper.h" |
23 #include "openmaxal_iid.c" |
25 #include "openmaxal_iid.c" |
24 #include "xaglobals.h" |
26 #include "xaglobals.h" |
25 #include "xaobjects.h" |
27 #include "xaobjects.h" |
26 |
28 |
27 EXPORT_C XAresult XAAPIENTRY xaCreateEngine(XAObjectItf *pEngine, XAuint32 numOptions, |
29 EXPORT_C XAresult XAAPIENTRY xaCreateEngine(XAObjectItf *pEngine, |
28 const XAEngineOption *pEngineOptions, |
30 XAuint32 numOptions, const XAEngineOption *pEngineOptions, |
29 XAuint32 numInterfaces, |
31 XAuint32 numInterfaces, const XAInterfaceID *pInterfaceIds, |
30 const XAInterfaceID *pInterfaceIds, |
32 const XAboolean *pInterfaceRequired) |
31 const XAboolean *pInterfaceRequired) |
33 { |
32 { |
|
33 XAresult ret; |
34 XAresult ret; |
34 DEBUG_API("->xaCreateEngine"); |
35 DEBUG_API("->xaCreateEngine"); |
35 ret = XAEngineImpl_Create(pEngine, numOptions, |
36 ret = XAEngineImpl_Create(pEngine, numOptions, pEngineOptions, |
36 pEngineOptions, |
37 numInterfaces, pInterfaceIds, pInterfaceRequired); |
37 numInterfaces, |
|
38 pInterfaceIds, |
|
39 pInterfaceRequired); |
|
40 DEBUG_API_A1("<-xaCreateEngine: 0x%x",(int)ret); |
38 DEBUG_API_A1("<-xaCreateEngine: 0x%x",(int)ret); |
41 return ret; |
39 return ret; |
42 } |
40 } |
43 |
41 |
44 EXPORT_C XAresult XAAPIENTRY xaQueryNumSupportedEngineInterfaces(XAuint32 *pNumSupportedInterfaces) |
42 EXPORT_C XAresult XAAPIENTRY xaQueryNumSupportedEngineInterfaces( |
45 { |
43 XAuint32 *pNumSupportedInterfaces) |
|
44 { |
46 XAresult ret; |
45 XAresult ret; |
47 DEBUG_API("->xaQueryNumSupportedEngineInterfaces"); |
46 DEBUG_API("->xaQueryNumSupportedEngineInterfaces"); |
48 ret = XAEngineImpl_QueryNumSupportedInterfaces(pNumSupportedInterfaces); |
47 ret = XAEngineImpl_QueryNumSupportedInterfaces(pNumSupportedInterfaces); |
49 DEBUG_API_A1("<-xaQueryNumSupportedEngineInterfaces: 0x%x",(int)ret); |
48 DEBUG_API_A1("<-xaQueryNumSupportedEngineInterfaces: 0x%x",(int)ret); |
50 return ret; |
49 return ret; |
51 } |
50 } |
52 |
51 |
53 EXPORT_C XAresult XAAPIENTRY xaQuerySupportedEngineInterfaces(XAuint32 index, |
52 EXPORT_C XAresult XAAPIENTRY xaQuerySupportedEngineInterfaces(XAuint32 index, |
54 XAInterfaceID *pInterfaceId) |
53 XAInterfaceID *pInterfaceId) |
55 { |
54 { |
56 XAresult ret; |
55 XAresult ret; |
57 DEBUG_API("->xaQuerySupportedEngineInterfaces"); |
56 DEBUG_API("->xaQuerySupportedEngineInterfaces"); |
58 ret = XAEngineImpl_QuerySupportedInterfaces( |
57 ret = XAEngineImpl_QuerySupportedInterfaces(index, pInterfaceId); |
59 index, pInterfaceId); |
|
60 DEBUG_API_A1("<-xaQuerySupportedEngineInterfaces: 0x%x",(int)ret); |
58 DEBUG_API_A1("<-xaQuerySupportedEngineInterfaces: 0x%x",(int)ret); |
61 return ret; |
59 return ret; |
62 } |
60 } |