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

<refnamediv>
<refname>friends</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



#define     <link linkend="LJ-FRIEND-GROUP-ALLFRIENDS-CAPS">LJ_FRIEND_GROUP_ALLFRIENDS</link>
enum        <link linkend="LJFriendType">LJFriendType</link>;
#define     <link linkend="LJ-FRIEND-CONN-MY-CAPS">LJ_FRIEND_CONN_MY</link>
#define     <link linkend="LJ-FRIEND-CONN-OF-CAPS">LJ_FRIEND_CONN_OF</link>
#define     <link linkend="LJ-FRIEND-CONN-BOTH-CAPS">LJ_FRIEND_CONN_BOTH</link>
<link linkend="LJFriend">LJFriend</link>*   <link linkend="lj-friend-new">lj_friend_new</link>                   (void);
<link linkend="LJFriend">LJFriend</link>*   <link linkend="lj-friend-new-with">lj_friend_new_with</link>              (char *username,
                                             char *name,
                                             char *fg,
                                             char *bg,
                                             int conn,
                                             <link linkend="guint32">guint32</link> mask,
                                             char *type);
void        <link linkend="lj-friend-free">lj_friend_free</link>                  (<link linkend="LJFriend">LJFriend</link> *f);
<link linkend="gint">gint</link>        <link linkend="lj-friend-compare-username">lj_friend_compare_username</link>      (<link linkend="gconstpointer">gconstpointer</link> a,
                                             <link linkend="gconstpointer">gconstpointer</link> b);
<link linkend="LJFriendType">LJFriendType</link> <link linkend="lj-friend-type-from-str">lj_friend_type_from_str</link>        (char *str);
</synopsis>
</refsynopsisdiv>







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

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="LJ-FRIEND-GROUP-ALLFRIENDS-CAPS">LJ_FRIEND_GROUP_ALLFRIENDS</title>
<programlisting>#define LJ_FRIEND_GROUP_ALLFRIENDS 1
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="LJFriendType">enum LJFriendType</title>
<programlisting>typedef enum {
	LJ_FRIEND_TYPE_USER=1,
	LJ_FRIEND_TYPE_COMMUNITY
} LJFriendType;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="LJ-FRIEND-CONN-MY-CAPS">LJ_FRIEND_CONN_MY</title>
<programlisting>#define LJ_FRIEND_CONN_MY   (1 &lt;&lt; 0)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="LJ-FRIEND-CONN-OF-CAPS">LJ_FRIEND_CONN_OF</title>
<programlisting>#define LJ_FRIEND_CONN_OF   (1 &lt;&lt; 1)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="LJ-FRIEND-CONN-BOTH-CAPS">LJ_FRIEND_CONN_BOTH</title>
<programlisting>#define LJ_FRIEND_CONN_BOTH (LJ_FRIEND_CONN_MY | LJ_FRIEND_CONN_OF)
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="lj-friend-new">lj_friend_new ()</title>
<programlisting><link linkend="LJFriend">LJFriend</link>*   lj_friend_new                   (void);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-friend-new-with">lj_friend_new_with ()</title>
<programlisting><link linkend="LJFriend">LJFriend</link>*   lj_friend_new_with              (char *username,
                                             char *name,
                                             char *fg,
                                             char *bg,
                                             int conn,
                                             <link linkend="guint32">guint32</link> mask,
                                             char *type);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>username</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>name</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>fg</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>bg</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>conn</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>mask</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>type</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-friend-free">lj_friend_free ()</title>
<programlisting>void        lj_friend_free                  (<link linkend="LJFriend">LJFriend</link> *f);</programlisting>
<para>

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


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-friend-compare-username">lj_friend_compare_username ()</title>
<programlisting><link linkend="gint">gint</link>        lj_friend_compare_username      (<link linkend="gconstpointer">gconstpointer</link> a,
                                             <link linkend="gconstpointer">gconstpointer</link> b);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>a</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>b</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-friend-type-from-str">lj_friend_type_from_str ()</title>
<programlisting><link linkend="LJFriendType">LJFriendType</link> lj_friend_type_from_str        (char *str);</programlisting>
<para>

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


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

</refsect1>




</refentry>
