| 1 | /* |
| 2 | Copyright (c) 2012, Broadcom Europe Ltd |
| 3 | All rights reserved. |
| 4 | |
| 5 | Redistribution and use in source and binary forms, with or without |
| 6 | modification, 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 | |
| 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY |
| 20 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 23 | ON 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 |
| 25 | SOFTWARE, 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 |
| 32 | OMX_API OMX_ERRORTYPE OMX_APIENTRY host_OMX_Init(void); |
| 33 | OMX_API OMX_ERRORTYPE OMX_APIENTRY host_OMX_Deinit(void); |
| 34 | OMX_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); |
| 38 | OMX_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); |
| 43 | OMX_API OMX_ERRORTYPE OMX_APIENTRY host_OMX_FreeHandle( |
| 44 | OMX_IN OMX_HANDLETYPE hComponent); |
| 45 | OMX_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); |
| 50 | OMX_API OMX_ERRORTYPE host_OMX_GetComponentsOfRole ( |
| 51 | OMX_IN OMX_STRING role, |
| 52 | OMX_INOUT OMX_U32 *pNumComps, |
| 53 | OMX_INOUT OMX_U8 **compNames); |
| 54 | OMX_API OMX_ERRORTYPE host_OMX_GetRolesOfComponent ( |
| 55 | OMX_IN OMX_STRING compName, |
| 56 | OMX_INOUT OMX_U32 *pNumRoles, |
| 57 | OMX_OUT OMX_U8 **roles); |
| 58 | OMX_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 |
| 72 | OMX_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 | |