1 /*
2  * Copyright (C) 2012 Intel Corporation.  All rights reserved.
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 #ifndef ISV_OMXCORE_H_
18 
19 #define ISV_OMXCORE_H_
20 
21 #define ISV_CORE_DEBUG 0
22 
23 struct ISVOMXCore {
24     typedef OMX_ERRORTYPE (*InitFunc)();
25     typedef OMX_ERRORTYPE (*DeinitFunc)();
26     typedef OMX_ERRORTYPE (*ComponentNameEnumFunc)(
27             OMX_STRING, OMX_U32, OMX_U32);
28 
29     typedef OMX_ERRORTYPE (*GetHandleFunc)(
30             OMX_HANDLETYPE *, OMX_STRING, OMX_PTR, OMX_CALLBACKTYPE *);
31 
32     typedef OMX_ERRORTYPE (*FreeHandleFunc)(OMX_HANDLETYPE);
33 
34     typedef OMX_ERRORTYPE (*GetRolesOfComponentFunc)(
35             OMX_STRING, OMX_U32 *, OMX_U8 **);
36 
37     void *mLibHandle;
38 
39     InitFunc mInit;
40     DeinitFunc mDeinit;
41     ComponentNameEnumFunc mComponentNameEnum;
42     GetHandleFunc mGetHandle;
43     FreeHandleFunc mFreeHandle;
44     GetRolesOfComponentFunc mGetRolesOfComponentHandle;
45 
46     OMX_U32 mNumComponents;
47 };
48 
49 #endif  //ISV_OMXCORE_H_
50