| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/gtk-doc/html/camel/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>camel-uid-cache</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Camel Reference Manual">
<link rel="up" href="Utilities.html" title="Utilities">
<link rel="prev" href="camel-camel-trie.html" title="camel-trie">
<link rel="next" href="camel-camel-url-scanner.html" title="camel-url-scanner">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="classes.html" title="Part I. Camel Classes">
<link rel="chapter" href="ClassTree.html" title="Class Hierarchy">
<link rel="chapter" href="Fundamentals.html" title="Fundamentals">
<link rel="chapter" href="Streams.html" title="Streams">
<link rel="chapter" href="StreamFilters.html" title="Stream Filters">
<link rel="chapter" href="Services.html" title="Services">
<link rel="chapter" href="Filters.html" title="Filters">
<link rel="chapter" href="Folders.html" title="Folders">
<link rel="chapter" href="SearchFolders.html" title="Search Folders">
<link rel="chapter" href="Addresses.html" title="Addresses">
<link rel="chapter" href="Crypto.html" title="Crypto Contexts">
<link rel="chapter" href="MIME.html" title="MIME Objects">
<link rel="chapter" href="Storage.html" title="Metadata Storage">
<link rel="chapter" href="Utilities.html" title="Utilities">
<link rel="chapter" href="Deprecated.html" title="Deprecated Objects">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="camel-camel-trie.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Utilities.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Camel Reference Manual</th>
<td><a accesskey="n" href="camel-camel-url-scanner.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#camel-camel-uid-cache.synopsis" class="shortcut">Top</a>
|
<a href="#camel-camel-uid-cache.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="camel-uid-cache">
<a name="camel-camel-uid-cache"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="camel-camel-uid-cache.top_of_page"></a>camel-uid-cache</span></h2>
<p>camel-uid-cache</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="camel-camel-uid-cache.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a>;
<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> * <a class="link" href="camel-camel-uid-cache.html#camel-uid-cache-new" title="camel_uid_cache_new ()">camel_uid_cache_new</a> (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *filename);
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="camel-camel-uid-cache.html#camel-uid-cache-save" title="camel_uid_cache_save ()">camel_uid_cache_save</a> (<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> *cache);
void <a class="link" href="camel-camel-uid-cache.html#camel-uid-cache-destroy" title="camel_uid_cache_destroy ()">camel_uid_cache_destroy</a> (<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> *cache);
<a
href="/usr/share/gtk-doc/html/glib/glib-Pointer-Arrays.html#GPtrArray"
>GPtrArray</a> * <a class="link" href="camel-camel-uid-cache.html#camel-uid-cache-get-new-uids" title="camel_uid_cache_get_new_uids ()">camel_uid_cache_get_new_uids</a> (<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> *cache,
<a
href="/usr/share/gtk-doc/html/glib/glib-Pointer-Arrays.html#GPtrArray"
>GPtrArray</a> *uids);
void <a class="link" href="camel-camel-uid-cache.html#camel-uid-cache-save-uid" title="camel_uid_cache_save_uid ()">camel_uid_cache_save_uid</a> (<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> *cache,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *uid);
void <a class="link" href="camel-camel-uid-cache.html#camel-uid-cache-free-uids" title="camel_uid_cache_free_uids ()">camel_uid_cache_free_uids</a> (<a
href="/usr/share/gtk-doc/html/glib/glib-Pointer-Arrays.html#GPtrArray"
>GPtrArray</a> *uids);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="camel-camel-uid-cache.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" title="Details">
<a name="camel-camel-uid-cache.details"></a><h2>Details</h2>
<div class="refsect2" title="CamelUIDCache">
<a name="CamelUIDCache"></a><h3>CamelUIDCache</h3>
<pre class="programlisting">typedef struct {
gchar *filename;
GHashTable *uids;
guint level;
gsize expired;
gsize size;
gint fd;
} CamelUIDCache;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="camel_uid_cache_new ()">
<a name="camel-uid-cache-new"></a><h3>camel_uid_cache_new ()</h3>
<pre class="programlisting"><a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> * camel_uid_cache_new (const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *filename);</pre>
<p>
Creates a new UID cache, initialized from <em class="parameter"><code>filename</code></em>. If <em class="parameter"><code>filename</code></em>
doesn't already exist, the UID cache will be empty. Otherwise, if
it does exist but can't be read, the function will return <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td> path to load the cache from
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a new UID cache, or <a
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="camel_uid_cache_save ()">
<a name="camel-uid-cache-save"></a><h3>camel_uid_cache_save ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
>gboolean</a> camel_uid_cache_save (<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> *cache);</pre>
<p>
Attempts to save <em class="parameter"><code>cache</code></em> back to disk.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
<td> a CamelUIDCache
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> success or failure
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="camel_uid_cache_destroy ()">
<a name="camel-uid-cache-destroy"></a><h3>camel_uid_cache_destroy ()</h3>
<pre class="programlisting">void camel_uid_cache_destroy (<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> *cache);</pre>
<p>
Destroys <em class="parameter"><code>cache</code></em> and frees its data.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
<td> a CamelUIDCache
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="camel_uid_cache_get_new_uids ()">
<a name="camel-uid-cache-get-new-uids"></a><h3>camel_uid_cache_get_new_uids ()</h3>
<pre class="programlisting"><a
href="/usr/share/gtk-doc/html/glib/glib-Pointer-Arrays.html#GPtrArray"
>GPtrArray</a> * camel_uid_cache_get_new_uids (<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> *cache,
<a
href="/usr/share/gtk-doc/html/glib/glib-Pointer-Arrays.html#GPtrArray"
>GPtrArray</a> *uids);</pre>
<p>
Returns an array of UIDs from <em class="parameter"><code>uids</code></em> that are not in <em class="parameter"><code>cache</code></em>, and
removes UIDs from <em class="parameter"><code>cache</code></em> that aren't in <em class="parameter"><code>uids</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
<td> a CamelUIDCache
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uids</code></em> :</span></p></td>
<td> an array of UIDs
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> an array of new UIDs, which must be freed with
<a class="link" href="camel-camel-uid-cache.html#camel-uid-cache-free-uids" title="camel_uid_cache_free_uids ()"><code class="function">camel_uid_cache_free_uids()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="camel_uid_cache_save_uid ()">
<a name="camel-uid-cache-save-uid"></a><h3>camel_uid_cache_save_uid ()</h3>
<pre class="programlisting">void camel_uid_cache_save_uid (<a class="link" href="camel-camel-uid-cache.html#CamelUIDCache" title="CamelUIDCache">CamelUIDCache</a> *cache,
const <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
>gchar</a> *uid);</pre>
<p>
Marks a uid for saving.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
<td> a CamelUIDCache
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uid</code></em> :</span></p></td>
<td> a uid to save
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="camel_uid_cache_free_uids ()">
<a name="camel-uid-cache-free-uids"></a><h3>camel_uid_cache_free_uids ()</h3>
<pre class="programlisting">void camel_uid_cache_free_uids (<a
href="/usr/share/gtk-doc/html/glib/glib-Pointer-Arrays.html#GPtrArray"
>GPtrArray</a> *uids);</pre>
<p>
Frees the array of UIDs.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>uids</code></em> :</span></p></td>
<td> an array returned from <a class="link" href="camel-camel-uid-cache.html#camel-uid-cache-get-new-uids" title="camel_uid_cache_get_new_uids ()"><code class="function">camel_uid_cache_get_new_uids()</code></a>
</td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.11</div>
</body>
</html>