1 #include <dirent.h> 2 3 /* macros */ 4 #define MAX_ROLES 20 5 #define MAX_TABLE_SIZE 30 6 #define MAX_CONCURRENT_INSTANCES 1 7 /* limit the number of max occuring instances of same component, 8 tune this if you like 9 */ 10 11 /* struct definitions */ 12 typedef struct _ComponentTable { 13 OMX_STRING name; 14 OMX_U16 nRoles; 15 OMX_STRING pRoleArray[MAX_ROLES]; 16 OMX_HANDLETYPE* pHandle[MAX_CONCURRENT_INSTANCES]; 17 int refCount; 18 }ComponentTable; 19 20 /* function prototypes */ 21 OMX_ERRORTYPE TIOMX_BuildComponentTable(); 22 23