<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.8"/> <title>OpenMAXBellagio: common.c File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">OpenMAXBellagio  <span id="projectnumber">0.9.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.8 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('common_8c.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#define-members">Macros</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">common.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <stdio.h></code><br /> <code>#include <stdlib.h></code><br /> <code>#include <string.h></code><br /> <code>#include <errno.h></code><br /> <code>#include <sys/stat.h></code><br /> <code>#include "<a class="el" href="config_8h_source.html">config.h</a>"</code><br /> <code>#include "<a class="el" href="common_8h_source.html">common.h</a>"</code><br /> </div> <p><a href="common_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> Macros</h2></td></tr> <tr class="memitem:a11637d2dbfc5325a01248b33d3b28369"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="common_8c.html#a11637d2dbfc5325a01248b33d3b28369">REGISTRY_FILENAME</a>   ".omxregister"</td></tr> <tr class="separator:a11637d2dbfc5325a01248b33d3b28369"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1f2d539f2416917b3d75fc26a1c78dfa"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="common_8c.html#a1f2d539f2416917b3d75fc26a1c78dfa">TMP_DATA_DIRECTORY</a>   "/tmp/"</td></tr> <tr class="separator:a1f2d539f2416917b3d75fc26a1c78dfa"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a86bac07597481daf2169c82e2be8659b"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="common_8c.html#a86bac07597481daf2169c82e2be8659b">componentsRegistryGetFilename</a> ()</td></tr> <tr class="memdesc:a86bac07597481daf2169c82e2be8659b"><td class="mdescLeft"> </td><td class="mdescRight">Get registry filename This function returns the name of the registry file for the components loaded with the default component loader. <a href="#a86bac07597481daf2169c82e2be8659b">More...</a><br /></td></tr> <tr class="separator:a86bac07597481daf2169c82e2be8659b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3ada38d1fa8cea1a89350b1c0a838d12"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="common_8c.html#a3ada38d1fa8cea1a89350b1c0a838d12">loadersRegistryGetFilename</a> (char *registry_name)</td></tr> <tr class="separator:a3ada38d1fa8cea1a89350b1c0a838d12"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac292fbad18d7b9bcd081b782a1185720"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="common_8c.html#ac292fbad18d7b9bcd081b782a1185720">makedir</a> (const char *newdir)</td></tr> <tr class="separator:ac292fbad18d7b9bcd081b782a1185720"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4dee73c7e2036bd114f1c272452a3f34"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="common_8c.html#a4dee73c7e2036bd114f1c272452a3f34">exists</a> (const char *fname)</td></tr> <tr class="separator:a4dee73c7e2036bd114f1c272452a3f34"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Macro Definition Documentation</h2> <a class="anchor" id="a11637d2dbfc5325a01248b33d3b28369"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define REGISTRY_FILENAME   ".omxregister"</td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="common_8c.html">src/common.c</a></p> <p>This file implements some useful common functionalities for handling the register files used in Bellagio</p> <p>Copyright (C) 2007-2011 STMicroelectronics Copyright (C) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).</p> <p>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.</p> <p>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.</p> <p>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 </p> <p>Definition at line <a class="el" href="common_8c_source.html#l00035">35</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p> <p>Referenced by <a class="el" href="common_8c_source.html#l00046">componentsRegistryGetFilename()</a>.</p> </div> </div> <a class="anchor" id="a1f2d539f2416917b3d75fc26a1c78dfa"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TMP_DATA_DIRECTORY   "/tmp/"</td> </tr> </table> </div><div class="memdoc"> <p>Definition at line <a class="el" href="common_8c_source.html#l00040">40</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p> <p>Referenced by <a class="el" href="common_8c_source.html#l00046">componentsRegistryGetFilename()</a>, and <a class="el" href="common_8c_source.html#l00087">loadersRegistryGetFilename()</a>.</p> </div> </div> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="a86bac07597481daf2169c82e2be8659b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char* componentsRegistryGetFilename </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Get registry filename This function returns the name of the registry file for the components loaded with the default component loader. </p> <p>Definition at line <a class="el" href="common_8c_source.html#l00046">46</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p> <p>References <a class="el" href="common_8c_source.html#l00035">REGISTRY_FILENAME</a>, and <a class="el" href="common_8c_source.html#l00040">TMP_DATA_DIRECTORY</a>.</p> <p>Referenced by <a class="el" href="st__static__component__loader_8c_source.html#l00075">BOSA_ST_InitComponentLoader()</a>, <a class="el" href="omxregister_8c_source.html#l00402">main()</a>, and <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html#l00146">readRegistryFile()</a>.</p> </div> </div> <a class="anchor" id="a4dee73c7e2036bd114f1c272452a3f34"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int exists </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>fname</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Definition at line <a class="el" href="common_8c_source.html#l00162">162</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p> <p>Referenced by <a class="el" href="omx__create__loaders__linux_8c_source.html#l00058">createComponentLoaders()</a>.</p> </div> </div> <a class="anchor" id="a3ada38d1fa8cea1a89350b1c0a838d12"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char* loadersRegistryGetFilename </td> <td>(</td> <td class="paramtype">char * </td> <td class="paramname"><em>registry_name</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Definition at line <a class="el" href="common_8c_source.html#l00087">87</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p> <p>References <a class="el" href="common_8c_source.html#l00040">TMP_DATA_DIRECTORY</a>.</p> <p>Referenced by <a class="el" href="omx__create__loaders__linux_8c_source.html#l00058">createComponentLoaders()</a>.</p> </div> </div> <a class="anchor" id="ac292fbad18d7b9bcd081b782a1185720"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int makedir </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>newdir</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>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 </p> <p>Definition at line <a class="el" href="common_8c_source.html#l00118">118</a> of file <a class="el" href="common_8c_source.html">common.c</a>.</p> <p>References <a class="el" href="omxvolcontroltest_8c_source.html#l00034">err</a>.</p> <p>Referenced by <a class="el" href="omxregister_8c_source.html#l00402">main()</a>.</p> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <html> <body> <hr size="1"><small>Generated for OpenMAX Bellagio rel. 0.9.3 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small> <br> <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=160680&type=4" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a> </body> </html>