00001 00035 #include <st_static_component_loader.h> 00036 #include <omx_filereader_component.h> 00037 00051 int omx_component_library_Setup(stLoaderComponentType **stComponents) { 00052 00053 DEBUG(DEB_LEV_FUNCTION_NAME, "In %s \n",__func__); 00054 00055 if (stComponents == NULL) { 00056 DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s \n",__func__); 00057 return 1; // Return Number of Component/s 00058 } 00059 00060 stComponents[0]->componentVersion.s.nVersionMajor = 1; 00061 stComponents[0]->componentVersion.s.nVersionMinor = 1; 00062 stComponents[0]->componentVersion.s.nRevision = 1; 00063 stComponents[0]->componentVersion.s.nStep = 1; 00064 00065 stComponents[0]->name = calloc(1,OMX_MAX_STRINGNAME_SIZE); 00066 if (stComponents[0]->name == NULL) { 00067 return OMX_ErrorInsufficientResources; 00068 } 00069 00070 strcpy(stComponents[0]->name, "OMX.st.audio_filereader"); 00071 stComponents[0]->name_specific_length = 0; 00072 stComponents[0]->constructor = omx_filereader_component_Constructor; 00073 00074 DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s \n",__func__); 00075 return 1; 00076 } 00077