OpenMAX Bellagio 0.9.3
omx_create_loaders_linux.c File Reference
#include <stdlib.h>
#include <dlfcn.h>
#include <dirent.h>
#include <string.h>
#include "component_loader.h"
#include "omx_create_loaders.h"
#include "st_static_component_loader.h"
#include "common.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 
#define OMX_LOADERS_FILENAME   ".omxloaders"
 
#define OMX_LOADERS_DIRNAME   "/usr/lib/omxloaders/"
 
#define INSTALL_PATH_STR   "/usr/local/lib/bellagio"
 

Functions

int createComponentLoaders ()
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

src/omx_create_loaders_linux.c

In this file is implemented the entry point for the construction of every component loader in linux. In the current implementation only the ST static loader is called.

Copyright (C) 2007-2010 STMicroelectronics Copyright (C) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 28 of file omx_create_loaders_linux.c.

◆ INSTALL_PATH_STR

#define INSTALL_PATH_STR   "/usr/local/lib/bellagio"

Definition at line 45 of file omx_create_loaders_linux.c.

◆ OMX_LOADERS_DIRNAME

#define OMX_LOADERS_DIRNAME   "/usr/lib/omxloaders/"

Definition at line 41 of file omx_create_loaders_linux.c.

◆ OMX_LOADERS_FILENAME

#define OMX_LOADERS_FILENAME   ".omxloaders"

Definition at line 38 of file omx_create_loaders_linux.c.

Function Documentation

◆ createComponentLoaders()

int createComponentLoaders ( void  )

This function allocates all the structures needed by the component loaders available in the system and initialize the function pointers of the loader. Finally it searches for more loaders that can be pointed by the .omxloaders file. If this file exists it contains a list of library containing custom component loaders. Each library should contain a function named 'setup_component_loader' that will initialize the custom loader. This mechanism is similar to the default loading of the components.

Definition at line 58 of file omx_create_loaders_linux.c.

References BOSA_AddComponentLoader(), DEB_LEV_ERR, DEBUG, exists(), handle, loadersRegistryGetFilename(), MAX_LINE_LENGTH, OMX_ErrorInsufficientResources, OMX_LOADERS_DIRNAME, OMX_LOADERS_FILENAME, and st_static_setup_component_loader().


Generated for OpenMAX Bellagio rel. 0.9.3 by  doxygen 1.5.1
SourceForge.net Logo