<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="libedataserver-e-dbhash">
<refmeta>
<refentrytitle role="top_of_page">e-dbhash</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBEDATASERVER Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>e-dbhash</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>



enum        <link linkend="EDbHashStatus">EDbHashStatus</link>;
            <link linkend="EDbHash">EDbHash</link>;
            <link linkend="EDbHashPrivate">EDbHashPrivate</link>;
<link linkend="void">void</link>        (<link linkend="EDbHashFunc">*EDbHashFunc</link>)                  (const <link linkend="char">char</link> *key,
                                             <link linkend="gpointer">gpointer</link> user_data);
<link linkend="EDbHash">EDbHash</link>*    <link linkend="e-dbhash-new">e_dbhash_new</link>                    (const <link linkend="char">char</link> *filename);
<link linkend="void">void</link>        <link linkend="e-dbhash-add">e_dbhash_add</link>                    (<link linkend="EDbHash">EDbHash</link> *edbh,
                                             const <link linkend="char">char</link> *key,
                                             const <link linkend="char">char</link> *data);
<link linkend="void">void</link>        <link linkend="e-dbhash-remove">e_dbhash_remove</link>                 (<link linkend="EDbHash">EDbHash</link> *edbh,
                                             const <link linkend="char">char</link> *key);
<link linkend="EDbHashStatus">EDbHashStatus</link> <link linkend="e-dbhash-compare">e_dbhash_compare</link>              (<link linkend="EDbHash">EDbHash</link> *edbh,
                                             const <link linkend="char">char</link> *key,
                                             const <link linkend="char">char</link> *compare_data);
<link linkend="void">void</link>        <link linkend="e-dbhash-foreach-key">e_dbhash_foreach_key</link>            (<link linkend="EDbHash">EDbHash</link> *edbh,
                                             <link linkend="EDbHashFunc">EDbHashFunc</link> func,
                                             <link linkend="gpointer">gpointer</link> user_data);
<link linkend="void">void</link>        <link linkend="e-dbhash-write">e_dbhash_write</link>                  (<link linkend="EDbHash">EDbHash</link> *edbh);
<link linkend="void">void</link>        <link linkend="e-dbhash-destroy">e_dbhash_destroy</link>                (<link linkend="EDbHash">EDbHash</link> *edbh);
</synopsis>
</refsynopsisdiv>









<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="EDbHashStatus" role="enum"/>enum EDbHashStatus</title>
<indexterm><primary>EDbHashStatus</primary></indexterm><programlisting>typedef enum {
	E_DBHASH_STATUS_SAME,
	E_DBHASH_STATUS_DIFFERENT,
	E_DBHASH_STATUS_NOT_FOUND,
} EDbHashStatus;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="EDbHash" role="struct"/>EDbHash</title>
<indexterm><primary>EDbHash</primary></indexterm><programlisting>typedef struct {
	EDbHashPrivate *priv;
} EDbHash;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="EDbHashPrivate" role="struct"/>EDbHashPrivate</title>
<indexterm><primary>EDbHashPrivate</primary></indexterm><programlisting>typedef struct _EDbHashPrivate EDbHashPrivate;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="EDbHashFunc" role="function"/>EDbHashFunc ()</title>
<indexterm><primary>EDbHashFunc</primary></indexterm><programlisting><link linkend="void">void</link>        (*EDbHashFunc)                  (const <link linkend="char">char</link> *key,
                                             <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>key</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="e-dbhash-new" role="function"/>e_dbhash_new ()</title>
<indexterm><primary>e_dbhash_new</primary></indexterm><programlisting><link linkend="EDbHash">EDbHash</link>*    e_dbhash_new                    (const <link linkend="char">char</link> *filename);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>filename</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="e-dbhash-add" role="function"/>e_dbhash_add ()</title>
<indexterm><primary>e_dbhash_add</primary></indexterm><programlisting><link linkend="void">void</link>        e_dbhash_add                    (<link linkend="EDbHash">EDbHash</link> *edbh,
                                             const <link linkend="char">char</link> *key,
                                             const <link linkend="char">char</link> *data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>edbh</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>key</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>data</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="e-dbhash-remove" role="function"/>e_dbhash_remove ()</title>
<indexterm><primary>e_dbhash_remove</primary></indexterm><programlisting><link linkend="void">void</link>        e_dbhash_remove                 (<link linkend="EDbHash">EDbHash</link> *edbh,
                                             const <link linkend="char">char</link> *key);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>edbh</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>key</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="e-dbhash-compare" role="function"/>e_dbhash_compare ()</title>
<indexterm><primary>e_dbhash_compare</primary></indexterm><programlisting><link linkend="EDbHashStatus">EDbHashStatus</link> e_dbhash_compare              (<link linkend="EDbHash">EDbHash</link> *edbh,
                                             const <link linkend="char">char</link> *key,
                                             const <link linkend="char">char</link> *compare_data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>edbh</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>key</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>compare_data</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="e-dbhash-foreach-key" role="function"/>e_dbhash_foreach_key ()</title>
<indexterm><primary>e_dbhash_foreach_key</primary></indexterm><programlisting><link linkend="void">void</link>        e_dbhash_foreach_key            (<link linkend="EDbHash">EDbHash</link> *edbh,
                                             <link linkend="EDbHashFunc">EDbHashFunc</link> func,
                                             <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>edbh</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>func</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="e-dbhash-write" role="function"/>e_dbhash_write ()</title>
<indexterm><primary>e_dbhash_write</primary></indexterm><programlisting><link linkend="void">void</link>        e_dbhash_write                  (<link linkend="EDbHash">EDbHash</link> *edbh);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>edbh</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="e-dbhash-destroy" role="function"/>e_dbhash_destroy ()</title>
<indexterm><primary>e_dbhash_destroy</primary></indexterm><programlisting><link linkend="void">void</link>        e_dbhash_destroy                (<link linkend="EDbHash">EDbHash</link> *edbh);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>edbh</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
