![]() |
![]() |
![]() |
Thunar-VFS Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#include <thunar-vfs/thunar-vfs.h> ThunarVfsUserManager; ThunarVfsUserManager * thunar_vfs_user_manager_get_default (void); ThunarVfsGroup * thunar_vfs_user_manager_get_group_by_id (ThunarVfsUserManager *manager, ThunarVfsGroupId id); ThunarVfsUser * thunar_vfs_user_manager_get_user_by_id (ThunarVfsUserManager *manager, ThunarVfsUserId id); GList * thunar_vfs_user_manager_get_all_groups (ThunarVfsUserManager *manager);
ThunarVfsUserManager * thunar_vfs_user_manager_get_default (void);
Returns the default ThunarVfsUserManager instance, which is shared
by all modules using the user module. Call g_object_unref()
on the
returned object when you are done with it.
Returns : |
the default ThunarVfsUserManager instance. |
ThunarVfsGroup * thunar_vfs_user_manager_get_group_by_id (ThunarVfsUserManager *manager, ThunarVfsGroupId id);
Looks up the ThunarVfsGroup corresponding to id
in manager
. Returns
NULL
if manager
is unable to determine the ThunarVfsGroup for id
,
else a pointer to the corresponding ThunarVfsGroup. The caller is
responsible for freeing the returned object using g_object_unref()
.
|
a ThunarVfsUserManager. |
|
the group id. |
Returns : |
the ThunarVfsGroup corresponding to id or NULL .
|
ThunarVfsUser * thunar_vfs_user_manager_get_user_by_id (ThunarVfsUserManager *manager, ThunarVfsUserId id);
Looks up the ThunarVfsUser corresponding to id
in manager
. Returns
NULL
if manager
is unable to determine the ThunarVfsUser for id
,
else a pointer to the corresponding ThunarVfsUser. The caller is
responsible for freeing the returned object using g_object_unref()
.
|
a ThunarVfsUserManager. |
|
the user id. |
Returns : |
the ThunarVfsUser corresponding to id or NULL .
|
GList * thunar_vfs_user_manager_get_all_groups (ThunarVfsUserManager *manager);
Returns the list of all ThunarVfsGroups in the system
that are known to the manager
.
The caller is responsible to free the returned list using:
g_list_foreach (list, (GFunc) g_object_unref, NULL); g_list_free (list);
|
a ThunarVfsUserManager. |
Returns : |
the list of all groups known to the manager .
|