ThunarVfsUserManager

ThunarVfsUserManager

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── ThunarVfsUserManager

Includes

#include <thunar-vfs/thunar-vfs.h>

Description

Functions

thunar_vfs_user_manager_get_default ()

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.


thunar_vfs_user_manager_get_group_by_id ()

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().

Parameters

manager

a ThunarVfsUserManager.

 

id

the group id.

 

Returns

the ThunarVfsGroup corresponding to id or NULL.


thunar_vfs_user_manager_get_user_by_id ()

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().

Parameters

manager

a ThunarVfsUserManager.

 

id

the user id.

 

Returns

the ThunarVfsUser corresponding to id or NULL.


thunar_vfs_user_manager_get_all_groups ()

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:

1
2
g_list_foreach (list, (GFunc) g_object_unref, NULL);
g_list_free (list);

Parameters

manager

a ThunarVfsUserManager.

 

Returns

the list of all groups known to the manager .

Types and Values

ThunarVfsUserManager

typedef struct _ThunarVfsUserManager ThunarVfsUserManager;