|
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 |
|
19 #include <stdio.h> |
|
20 #include <stdlib.h> |
|
21 |
|
22 #include "openmaxalwrapper.h" |
|
23 #include "openmaxal_iid.c" |
|
24 #include "common/xaglobals.h" |
|
25 |
|
26 |
|
27 EXPORT_C XAresult XAAPIENTRY xaCreateEngine(XAObjectItf *pEngine, XAuint32 numOptions, |
|
28 const XAEngineOption *pEngineOptions, |
|
29 XAuint32 numInterfaces, |
|
30 const XAInterfaceID *pInterfaceIds, |
|
31 const XAboolean *pInterfaceRequired) |
|
32 { |
|
33 XAresult ret; |
|
34 DEBUG_API("->xaCreateEngine"); |
|
35 ret = XAEngineImpl_Create(pEngine, numOptions, |
|
36 pEngineOptions, |
|
37 numInterfaces, |
|
38 pInterfaceIds, |
|
39 pInterfaceRequired); |
|
40 DEBUG_API_A1("<-xaCreateEngine: 0x%x",(int)ret); |
|
41 return ret; |
|
42 } |
|
43 |
|
44 EXPORT_C XAresult XAAPIENTRY xaQueryNumSupportedEngineInterfaces(XAuint32 *pNumSupportedInterfaces) |
|
45 { |
|
46 XAresult ret; |
|
47 DEBUG_API("->xaQueryNumSupportedEngineInterfaces"); |
|
48 ret = XAEngineImpl_QueryNumSupportedInterfaces(pNumSupportedInterfaces); |
|
49 DEBUG_API_A1("<-xaQueryNumSupportedEngineInterfaces: 0x%x",(int)ret); |
|
50 return ret; |
|
51 } |
|
52 |
|
53 EXPORT_C XAresult XAAPIENTRY xaQuerySupportedEngineInterfaces(XAuint32 index, |
|
54 XAInterfaceID *pInterfaceId) |
|
55 { |
|
56 XAresult ret; |
|
57 DEBUG_API("->xaQuerySupportedEngineInterfaces"); |
|
58 ret = XAEngineImpl_QuerySupportedInterfaces( |
|
59 index, pInterfaceId); |
|
60 DEBUG_API_A1("<-xaQuerySupportedEngineInterfaces: 0x%x",(int)ret); |
|
61 return ret; |
|
62 } |