1 /*
2  * Copyright (C) 2010 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "sles_allinclusive.h"
18 
19 /** \brief slCreateEngine Function */
20 
slCreateEngine(SLObjectItf * pEngine,SLuint32 numOptions,const SLEngineOption * pEngineOptions,SLuint32 numInterfaces,const SLInterfaceID * pInterfaceIds,const SLboolean * pInterfaceRequired)21 SL_API SLresult SLAPIENTRY slCreateEngine(SLObjectItf *pEngine, SLuint32 numOptions,
22     const SLEngineOption *pEngineOptions, SLuint32 numInterfaces,
23     const SLInterfaceID *pInterfaceIds, const SLboolean *pInterfaceRequired)
24 {
25     SL_ENTER_GLOBAL
26 
27     result = liCreateEngine(pEngine, numOptions, pEngineOptions, numInterfaces, pInterfaceIds,
28             pInterfaceRequired, objectIDtoClass(SL_OBJECTID_ENGINE));
29 
30     SL_LEAVE_GLOBAL
31 }
32 
33 
34 
35 /** \brief slQueryNumSupportedEngineInterfaces Function */
36 
slQueryNumSupportedEngineInterfaces(SLuint32 * pNumSupportedInterfaces)37 SL_API SLresult SLAPIENTRY slQueryNumSupportedEngineInterfaces(SLuint32 *pNumSupportedInterfaces)
38 {
39     SL_ENTER_GLOBAL
40 
41     result = liQueryNumSupportedInterfaces(pNumSupportedInterfaces,
42             objectIDtoClass(SL_OBJECTID_ENGINE));
43 
44     SL_LEAVE_GLOBAL
45 }
46 
47 
48 
49 
50 /** \brief slQuerySupportedEngineInterfaces Function */
51 
slQuerySupportedEngineInterfaces(SLuint32 index,SLInterfaceID * pInterfaceId)52 SL_API SLresult SLAPIENTRY slQuerySupportedEngineInterfaces(SLuint32 index,
53         SLInterfaceID *pInterfaceId)
54 {
55     SL_ENTER_GLOBAL
56 
57     result = liQuerySupportedInterfaces(index, pInterfaceId, objectIDtoClass(SL_OBJECTID_ENGINE));
58 
59     SL_LEAVE_GLOBAL
60 }
61