31 #include <sys/types.h>
49 static int initialized;
53 static int bosa_loaders;
77 loadersList = newLoadersList;
79 loadersList[bosa_loaders - 1] = pLoader;
99 if(initialized == 0) {
106 for (i = 0; i < bosa_loaders; i++) {
126 if(initialized == 1) {
127 for (i = 0; i < bosa_loaders; i++) {
129 free(loadersList[i]);
162 for (i = 0; i < bosa_loaders; i++) {
195 for (i = 0; i < bosa_loaders; i++) {
228 for (i = 0; i < bosa_loaders; i++)
232 while((err = loadersList[i]->BOSA_ComponentNameEnum(loadersList[i],
273 __func__, hOutput, (
int)nPortOutput, hInput, (
int)nPortInput);
279 if (hOutput == NULL && hInput == NULL)
284 DEBUG(
DEB_LEV_ERR,
"Tunneling failed: output port rejects it - err = %x\n", err);
298 DEBUG(
DEB_LEV_ERR,
"Tunneling failed: input port rejects it - err = %08x\n", err);
334 for (i = 0; i < bosa_loaders; i++) {
364 int only_number_requested = 0, full_number=0;
369 if (compNames == NULL) {
370 only_number_requested = 1;
372 only_number_requested = 0;
374 for (i = 0; i < bosa_loaders; i++) {
375 temp_num_comp = *pNumComps;
385 if (only_number_requested == 0) {
386 tempCompNames = malloc(temp_num_comp *
sizeof(
OMX_STRING));
387 for (j=0; j<temp_num_comp; j++) {
400 for (j = 0; j<temp_num_comp; j++) {
401 if (full_number + j < *pNumComps) {
402 strncpy((
char *)compNames[full_number + j], (
const char *)tempCompNames[j], 128);
406 full_number += temp_num_comp;
408 *pNumComps = full_number;
420 if(strncmp(szURI,
"file", 4) == 0) {
422 if(res == 0x00000000)
426 else if(strncmp(szURI,
"inet", 4) == 0) {
428 if(res == 0x00000000)