<refentry id="ThunarVfsUserManager">
<refmeta>
<refentrytitle>ThunarVfsUserManager</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>THUNAR-VFS Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>ThunarVfsUserManager</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>

#include &lt;thunar-vfs/thunar-vfs.h&gt;


            <link linkend="ThunarVfsUserManager-struct">ThunarVfsUserManager</link>;
<link linkend="ThunarVfsUserManager">ThunarVfsUserManager</link>* <link linkend="thunar-vfs-user-manager-get-default">thunar_vfs_user_manager_get_default</link>
                                            (void);
<link linkend="ThunarVfsGroup">ThunarVfsGroup</link>* <link linkend="thunar-vfs-user-manager-get-group-by-id">thunar_vfs_user_manager_get_group_by_id</link>
                                            (<link linkend="ThunarVfsUserManager">ThunarVfsUserManager</link> *manager,
                                             <link linkend="ThunarVfsGroupId">ThunarVfsGroupId</link> id);
<link linkend="ThunarVfsUser">ThunarVfsUser</link>* <link linkend="thunar-vfs-user-manager-get-user-by-id">thunar_vfs_user_manager_get_user_by_id</link>
                                            (<link linkend="ThunarVfsUserManager">ThunarVfsUserManager</link> *manager,
                                             <link linkend="ThunarVfsUserId">ThunarVfsUserId</link> id);


</synopsis>
</refsynopsisdiv>

<refsect1>
<title>Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----ThunarVfsUserManager
</synopsis>

</refsect1>








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

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="ThunarVfsUserManager-struct"/>ThunarVfsUserManager</title>
<indexterm><primary>ThunarVfsUserManager</primary></indexterm><programlisting>typedef struct _ThunarVfsUserManager ThunarVfsUserManager;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="thunar-vfs-user-manager-get-default"/>thunar_vfs_user_manager_get_default ()</title>
<indexterm><primary>thunar_vfs_user_manager_get_default</primary></indexterm><programlisting><link linkend="ThunarVfsUserManager">ThunarVfsUserManager</link>* thunar_vfs_user_manager_get_default
                                            (void);</programlisting>
<para>
Returns the default <link linkend="ThunarVfsUserManager"><type>ThunarVfsUserManager</type></link> instance, which is shared
by all modules using the user module. Call <link linkend="g-object-unref"><function>g_object_unref()</function></link> on the
returned object when you are done with it.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the default <link linkend="ThunarVfsUserManager"><type>ThunarVfsUserManager</type></link> instance.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="thunar-vfs-user-manager-get-group-by-id"/>thunar_vfs_user_manager_get_group_by_id ()</title>
<indexterm><primary>thunar_vfs_user_manager_get_group_by_id</primary></indexterm><programlisting><link linkend="ThunarVfsGroup">ThunarVfsGroup</link>* thunar_vfs_user_manager_get_group_by_id
                                            (<link linkend="ThunarVfsUserManager">ThunarVfsUserManager</link> *manager,
                                             <link linkend="ThunarVfsGroupId">ThunarVfsGroupId</link> id);</programlisting>
<para>
Looks up the <link linkend="ThunarVfsGroup"><type>ThunarVfsGroup</type></link> corresponding to <parameter>id</parameter> in <parameter>manager</parameter>. Returns
<literal>NULL</literal> if <parameter>manager</parameter> is unable to determine the <link linkend="ThunarVfsGroup"><type>ThunarVfsGroup</type></link> for <parameter>id</parameter>,
else a pointer to the corresponding <link linkend="ThunarVfsGroup"><type>ThunarVfsGroup</type></link>. The caller is
responsible for freeing the returned object using <link linkend="g-object-unref"><function>g_object_unref()</function></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>manager</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="ThunarVfsUserManager"><type>ThunarVfsUserManager</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
<listitem><simpara> the group id.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the <link linkend="ThunarVfsGroup"><type>ThunarVfsGroup</type></link> corresponding to <parameter>id</parameter> or <literal>NULL</literal>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="thunar-vfs-user-manager-get-user-by-id"/>thunar_vfs_user_manager_get_user_by_id ()</title>
<indexterm><primary>thunar_vfs_user_manager_get_user_by_id</primary></indexterm><programlisting><link linkend="ThunarVfsUser">ThunarVfsUser</link>* thunar_vfs_user_manager_get_user_by_id
                                            (<link linkend="ThunarVfsUserManager">ThunarVfsUserManager</link> *manager,
                                             <link linkend="ThunarVfsUserId">ThunarVfsUserId</link> id);</programlisting>
<para>
Looks up the <link linkend="ThunarVfsUser"><type>ThunarVfsUser</type></link> corresponding to <parameter>id</parameter> in <parameter>manager</parameter>. Returns
<literal>NULL</literal> if <parameter>manager</parameter> is unable to determine the <link linkend="ThunarVfsUser"><type>ThunarVfsUser</type></link> for <parameter>id</parameter>,
else a pointer to the corresponding <link linkend="ThunarVfsUser"><type>ThunarVfsUser</type></link>. The caller is
responsible for freeing the returned object using <link linkend="g-object-unref"><function>g_object_unref()</function></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>manager</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="ThunarVfsUserManager"><type>ThunarVfsUserManager</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
<listitem><simpara> the user id.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the <link linkend="ThunarVfsUser"><type>ThunarVfsUser</type></link> corresponding to <parameter>id</parameter> or <literal>NULL</literal>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
