<refentry id="liblivejournal-sync">
<refmeta>
<refentrytitle>sync</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBLIVEJOURNAL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>sync</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



enum        <link linkend="LJSyncProgress">LJSyncProgress</link>;
<link linkend="gboolean">gboolean</link>    (<link linkend="LJPutLastSyncCallback">*LJPutLastSyncCallback</link>)        (<link linkend="gpointer">gpointer</link>,
                                             const char*,
                                             <link linkend="GError">GError</link>**);
<link linkend="gboolean">gboolean</link>    (<link linkend="LJRunVerbCallback">*LJRunVerbCallback</link>)            (<link linkend="gpointer">gpointer</link>,
                                             <link linkend="LJVerb">LJVerb</link>*,
                                             <link linkend="GError">GError</link>**);
<link linkend="gboolean">gboolean</link>    (<link linkend="LJPutEntryCallback">*LJPutEntryCallback</link>)           (<link linkend="gpointer">gpointer</link>,
                                             <link linkend="LJEntry">LJEntry</link>*,
                                             <link linkend="GError">GError</link>**);
void        (<link linkend="LJSyncProgressCallback">*LJSyncProgressCallback</link>)       (<link linkend="gpointer">gpointer</link>,
                                             <link linkend="LJSyncProgress">LJSyncProgress</link>,
                                             int cur,
                                             int max,
                                             const char *date);
<link linkend="gboolean">gboolean</link>    <link linkend="lj-sync-run">lj_sync_run</link>                     (<link linkend="LJUser">LJUser</link> *user,
                                             const char *usejournal,
                                             const char *lastsync,
                                             <link linkend="LJPutLastSyncCallback">LJPutLastSyncCallback</link> put_lastsync_cb,
                                             <link linkend="LJRunVerbCallback">LJRunVerbCallback</link> run_verb_cb,
                                             <link linkend="LJPutEntryCallback">LJPutEntryCallback</link> put_entry_cb,
                                             <link linkend="LJSyncProgressCallback">LJSyncProgressCallback</link> sync_progress_cb,
                                             <link linkend="gpointer">gpointer</link> user_data,
                                             <link linkend="GSList">GSList</link> **warnings,
                                             <link linkend="GError">GError</link> **err);
</synopsis>
</refsynopsisdiv>







<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="LJSyncProgress">enum LJSyncProgress</title>
<programlisting>typedef enum {
	LJ_SYNC_PROGRESS_ITEMS,
	LJ_SYNC_PROGRESS_ENTRIES,
} LJSyncProgress;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="LJPutLastSyncCallback">LJPutLastSyncCallback ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    (*LJPutLastSyncCallback)        (<link linkend="gpointer">gpointer</link>,
                                             const char*,
                                             <link linkend="GError">GError</link>**);</programlisting>
<para>

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


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="LJRunVerbCallback">LJRunVerbCallback ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    (*LJRunVerbCallback)            (<link linkend="gpointer">gpointer</link>,
                                             <link linkend="LJVerb">LJVerb</link>*,
                                             <link linkend="GError">GError</link>**);</programlisting>
<para>

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


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="LJPutEntryCallback">LJPutEntryCallback ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    (*LJPutEntryCallback)           (<link linkend="gpointer">gpointer</link>,
                                             <link linkend="LJEntry">LJEntry</link>*,
                                             <link linkend="GError">GError</link>**);</programlisting>
<para>

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


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="LJSyncProgressCallback">LJSyncProgressCallback ()</title>
<programlisting>void        (*LJSyncProgressCallback)       (<link linkend="gpointer">gpointer</link>,
                                             <link linkend="LJSyncProgress">LJSyncProgress</link>,
                                             int cur,
                                             int max,
                                             const char *date);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>Param1</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>Param2</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cur</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>max</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>date</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-sync-run">lj_sync_run ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    lj_sync_run                     (<link linkend="LJUser">LJUser</link> *user,
                                             const char *usejournal,
                                             const char *lastsync,
                                             <link linkend="LJPutLastSyncCallback">LJPutLastSyncCallback</link> put_lastsync_cb,
                                             <link linkend="LJRunVerbCallback">LJRunVerbCallback</link> run_verb_cb,
                                             <link linkend="LJPutEntryCallback">LJPutEntryCallback</link> put_entry_cb,
                                             <link linkend="LJSyncProgressCallback">LJSyncProgressCallback</link> sync_progress_cb,
                                             <link linkend="gpointer">gpointer</link> user_data,
                                             <link linkend="GSList">GSList</link> **warnings,
                                             <link linkend="GError">GError</link> **err);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>user</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>usejournal</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>lastsync</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>put_lastsync_cb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>run_verb_cb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>put_entry_cb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>sync_progress_cb</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>warnings</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>err</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


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

</refsect1>




</refentry>
