OpenMAXBellagio  0.9.3
common.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
#include "config.h"
#include "common.h"

Go to the source code of this file.

Macros

#define REGISTRY_FILENAME   ".omxregister"
 
#define TMP_DATA_DIRECTORY   "/tmp/"
 

Functions

char * componentsRegistryGetFilename ()
 Get registry filename This function returns the name of the registry file for the components loaded with the default component loader.
 
char * loadersRegistryGetFilename (char *registry_name)
 
int makedir (const char *newdir)
 
int exists (const char *fname)
 

Macro Definition Documentation

#define REGISTRY_FILENAME   ".omxregister"

src/common.c

This file implements some useful common functionalities for handling the register files used in Bellagio

Copyright (C) 2007-2011 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 35 of file common.c.

Referenced by componentsRegistryGetFilename().

#define TMP_DATA_DIRECTORY   "/tmp/"

Definition at line 40 of file common.c.

Referenced by componentsRegistryGetFilename(), and loadersRegistryGetFilename().

Function Documentation

char* componentsRegistryGetFilename ( void  )

Get registry filename This function returns the name of the registry file for the components loaded with the default component loader.

Definition at line 46 of file common.c.

References REGISTRY_FILENAME, and TMP_DATA_DIRECTORY.

Referenced by BOSA_ST_InitComponentLoader(), main(), and readRegistryFile().

int exists ( const char *  fname)

Definition at line 162 of file common.c.

Referenced by createComponentLoaders().

char* loadersRegistryGetFilename ( char *  registry_name)

Definition at line 87 of file common.c.

References TMP_DATA_DIRECTORY.

Referenced by createComponentLoaders().

int makedir ( const char *  newdir)

This function creates the directory specified by newdir It returns 1 if is not possible to create it It returns 0 if the directory is created or it already exists

Definition at line 118 of file common.c.

References err.

Referenced by main().


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