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 REGISTRY_DIR   "/var/lib/libomxil-bellagio0/"
 
#define TMP_DATA_DIRECTORY   "/tmp/"
 

Functions

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

Macro Definition Documentation

§ REGISTRY_DIR

#define REGISTRY_DIR   "/var/lib/libomxil-bellagio0/"

Definition at line 36 of file common.c.

Referenced by componentsRegistryGetFilenameCheck().

§ REGISTRY_FILENAME

#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 componentsRegistryGetFilenameCheck().

§ TMP_DATA_DIRECTORY

#define TMP_DATA_DIRECTORY   "/tmp/"

Definition at line 41 of file common.c.

Referenced by componentsRegistryGetFilenameCheck(), and loadersRegistryGetFilename().

Function Documentation

§ componentsRegistryGetFilename()

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 47 of file common.c.

References componentsRegistryGetFilenameCheck().

Referenced by exists().

§ componentsRegistryGetFilenameCheck()

char* componentsRegistryGetFilenameCheck ( int  check_exists)

§ exists()

int exists ( const char *  fname)

Definition at line 194 of file common.c.

References componentsRegistryGetFilename(), and main().

Referenced by createComponentLoaders().

§ loadersRegistryGetFilename()

char* loadersRegistryGetFilename ( char *  registry_name)

Definition at line 119 of file common.c.

References TMP_DATA_DIRECTORY.

Referenced by createComponentLoaders().

§ makedir()

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 150 of file common.c.

References err.


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