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

<refnamediv>
<refname>types</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



#define     <link linkend="NID-CONTENT-CAPS">NID_CONTENT</link>
<link linkend="time-t">time_t</link>      <link linkend="lj-timegm">lj_timegm</link>                       (struct <link linkend="tm">tm</link> *tm);
<link linkend="gboolean">gboolean</link>    <link linkend="lj-ljdate-to-tm">lj_ljdate_to_tm</link>                 (const char *ljtime,
                                             struct <link linkend="tm">tm</link> *ptm);
char*       <link linkend="lj-tm-to-ljdate">lj_tm_to_ljdate</link>                 (struct <link linkend="tm">tm</link> *ptm);
char*       <link linkend="lj-tm-to-ljdate-noseconds">lj_tm_to_ljdate_noseconds</link>       (struct <link linkend="tm">tm</link> *ptm);
<link linkend="guint32">guint32</link>     <link linkend="lj-color-to-int">lj_color_to_int</link>                 (const char *color);
void        <link linkend="lj-int-to-color">lj_int_to_color</link>                 (<link linkend="guint32">guint32</link> l,
                                             char *color);
typedef     <link linkend="LJChallenge">LJChallenge</link>;
#define     <link linkend="lj-challenge-new">lj_challenge_new</link>                (s)
#define     <link linkend="lj-challenge-free">lj_challenge_free</link>               (x)
</synopsis>
</refsynopsisdiv>







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

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="NID-CONTENT-CAPS">NID_CONTENT</title>
<programlisting>#define NID_CONTENT int id; char *name; /* yay for no inheritance in C. */
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="lj-timegm">lj_timegm ()</title>
<programlisting><link linkend="time-t">time_t</link>      lj_timegm                       (struct <link linkend="tm">tm</link> *tm);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>tm</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="lj-ljdate-to-tm">lj_ljdate_to_tm ()</title>
<programlisting><link linkend="gboolean">gboolean</link>    lj_ljdate_to_tm                 (const char *ljtime,
                                             struct <link linkend="tm">tm</link> *ptm);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>ljtime</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>ptm</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="lj-tm-to-ljdate">lj_tm_to_ljdate ()</title>
<programlisting>char*       lj_tm_to_ljdate                 (struct <link linkend="tm">tm</link> *ptm);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>ptm</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="lj-tm-to-ljdate-noseconds">lj_tm_to_ljdate_noseconds ()</title>
<programlisting>char*       lj_tm_to_ljdate_noseconds       (struct <link linkend="tm">tm</link> *ptm);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>ptm</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="lj-color-to-int">lj_color_to_int ()</title>
<programlisting><link linkend="guint32">guint32</link>     lj_color_to_int                 (const char *color);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>color</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="lj-int-to-color">lj_int_to_color ()</title>
<programlisting>void        lj_int_to_color                 (<link linkend="guint32">guint32</link> l,
                                             char *color);</programlisting>
<para>

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


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="LJChallenge">LJChallenge</title>
<programlisting>typedef char* LJChallenge;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="lj-challenge-new">lj_challenge_new()</title>
<programlisting>#define lj_challenge_new(s) g_strdup(s)
</programlisting>
<para>

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


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-challenge-free">lj_challenge_free()</title>
<programlisting>#define lj_challenge_free(x) g_free(x)
</programlisting>
<para>

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


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

</refsect1>




</refentry>
