1/*
2Copyright (c) 2012, Broadcom Europe Ltd
3All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are met:
7 * Redistributions of source code must retain the above copyright
8 notice, this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright
10 notice, this list of conditions and the following disclaimer in the
11 documentation and/or other materials provided with the distribution.
12 * Neither the name of the copyright holder nor the
13 names of its contributors may be used to endorse or promote products
14 derived from this software without specific prior written permission.
15
16THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*/
27
28#ifndef HOST_ILCORE_H
29#define HOST_ILCORE_H
30
31#ifdef WANT_OMX_NAME_MANGLE
32OMX_API OMX_ERRORTYPE OMX_APIENTRY host_OMX_Init(void);
33OMX_API OMX_ERRORTYPE OMX_APIENTRY host_OMX_Deinit(void);
34OMX_API OMX_ERRORTYPE OMX_APIENTRY host_OMX_ComponentNameEnum(
35 OMX_OUT OMX_STRING cComponentName,
36 OMX_IN OMX_U32 nNameLength,
37 OMX_IN OMX_U32 nIndex);
38OMX_API OMX_ERRORTYPE OMX_APIENTRY host_OMX_GetHandle(
39 OMX_OUT OMX_HANDLETYPE* pHandle,
40 OMX_IN OMX_STRING cComponentName,
41 OMX_IN OMX_PTR pAppData,
42 OMX_IN OMX_CALLBACKTYPE* pCallBacks);
43OMX_API OMX_ERRORTYPE OMX_APIENTRY host_OMX_FreeHandle(
44 OMX_IN OMX_HANDLETYPE hComponent);
45OMX_API OMX_ERRORTYPE OMX_APIENTRY host_OMX_SetupTunnel(
46 OMX_IN OMX_HANDLETYPE hOutput,
47 OMX_IN OMX_U32 nPortOutput,
48 OMX_IN OMX_HANDLETYPE hInput,
49 OMX_IN OMX_U32 nPortInput);
50OMX_API OMX_ERRORTYPE host_OMX_GetComponentsOfRole (
51 OMX_IN OMX_STRING role,
52 OMX_INOUT OMX_U32 *pNumComps,
53 OMX_INOUT OMX_U8 **compNames);
54OMX_API OMX_ERRORTYPE host_OMX_GetRolesOfComponent (
55 OMX_IN OMX_STRING compName,
56 OMX_INOUT OMX_U32 *pNumRoles,
57 OMX_OUT OMX_U8 **roles);
58OMX_ERRORTYPE host_OMX_GetDebugInformation (
59 OMX_OUT OMX_STRING debugInfo,
60 OMX_INOUT OMX_S32 *pLen);
61
62#define OMX_Init host_OMX_Init
63#define OMX_Deinit host_OMX_Deinit
64#define OMX_ComponentNameEnum host_OMX_ComponentNameEnum
65#define OMX_GetHandle host_OMX_GetHandle
66#define OMX_FreeHandle host_OMX_FreeHandle
67#define OMX_SetupTunnel host_OMX_SetupTunnel
68#define OMX_GetComponentsOfRole host_OMX_GetComponentsOfRole
69#define OMX_GetRolesOfComponent host_OMX_GetRolesOfComponent
70#define OMX_GetDebugInformation host_OMX_GetDebugInformation
71#else
72OMX_ERRORTYPE OMX_GetDebugInformation (
73 OMX_OUT OMX_STRING debugInfo,
74 OMX_INOUT OMX_S32 *pLen);
75#endif
76
77#endif // HOST_ILCORE_H
78
79
80