<!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"/> <title>Audacious: stringpool.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Audacious <span id="projectnumber">$Id:Doxyfile42802007-03-2104:39:00Znenolod$</span></div> </td> </tr> </tbody> </table> </div> <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="annotated.html"><span>Classes</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>File Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <h1>stringpool.h File Reference</h1> </div> </div> <div class="contents"> <p>String pool API for "pooling" identical strings into references instead of keeping multiple copies around. <a href="#_details">More...</a></p> <p><a href="stringpool_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">gchar * </td><td class="memItemRight" valign="bottom"><a class="el" href="stringpool_8h.html#a570539c91de265f29128ce854e3e6e21">stringpool_get</a> (const gchar *str)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Fetches or allocates a given string from the stringpool. <a href="#a570539c91de265f29128ce854e3e6e21"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="stringpool_8h.html#ac4bac16fb75a5c1ddfed80623ab03b6f">stringpool_unref</a> (gchar *str)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Unreference a pooled string. <a href="#ac4bac16fb75a5c1ddfed80623ab03b6f"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>String pool API for "pooling" identical strings into references instead of keeping multiple copies around. </p> <p>Definition in file <a class="el" href="stringpool_8h_source.html">stringpool.h</a>.</p> </div><hr/><h2>Function Documentation</h2> <a class="anchor" id="a570539c91de265f29128ce854e3e6e21"></a><!-- doxytag: member="stringpool.h::stringpool_get" ref="a570539c91de265f29128ce854e3e6e21" args="(const gchar *str)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gchar* stringpool_get </td> <td>(</td> <td class="paramtype">const gchar * </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Fetches or allocates a given string from the stringpool. </p> <p>If string already exists in the pool, reference to it is returned. Otherwise, a new string is created in the pool with one reference.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>String to be poolified. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Reference to the pooled string, or NULL if the given string was NULL or an error occured. </dd></dl> <p>Definition at line <a class="el" href="stringpool_8c_source.html#l00070">70</a> of file <a class="el" href="stringpool_8c_source.html">stringpool.c</a>.</p> <p>Referenced by <a class="el" href="tuple_8c_source.html#l00425">tuple_associate_string()</a>, and <a class="el" href="tuple_8c_source.html#l00247">tuple_copy_value()</a>.</p> </div> </div> <a class="anchor" id="ac4bac16fb75a5c1ddfed80623ab03b6f"></a><!-- doxytag: member="stringpool.h::stringpool_unref" ref="ac4bac16fb75a5c1ddfed80623ab03b6f" args="(gchar *str)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void stringpool_unref </td> <td>(</td> <td class="paramtype">gchar * </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Unreference a pooled string. </p> <p>When there are no references left, the string is unallocated and removed from the pool.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>Pointer to a string in the pool. </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="stringpool_8c_source.html#l00102">102</a> of file <a class="el" href="stringpool_8c_source.html">stringpool.c</a>.</p> <p>Referenced by <a class="el" href="tuple_8c_source.html#l00360">tuple_associate_data()</a>, <a class="el" href="tuple_8c_source.html#l00114">tuple_destroy()</a>, <a class="el" href="tuple_8c_source.html#l00510">tuple_disassociate()</a>, and <a class="el" href="tuple_8c_source.html#l00101">tuple_value_destroy()</a>.</p> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated on Sun Apr 17 2011 for Audacious by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>