TrackerStorage

TrackerStorage

Synopsis

                    TrackerStorage;
                    TrackerStorageClass;
TrackerStorage *    tracker_storage_new                 (void);
GSList *            tracker_storage_get_removable_device_roots
                                                        (TrackerStorage *storage);
GSList *            tracker_storage_get_removable_device_uuids
                                                        (TrackerStorage *storage);
const gchar *       tracker_storage_get_mount_point_for_uuid
                                                        (TrackerStorage *storage,
                                                         const gchar *uuid);
const gchar*        tracker_storage_get_uuid_for_file   (TrackerStorage *storage,
                                                         GFile *file);

Description

Details

TrackerStorage

typedef struct {
	GObject parent;
} TrackerStorage;


TrackerStorageClass

typedef struct {
	GObjectClass parent_class;
} TrackerStorageClass;


tracker_storage_new ()

TrackerStorage *    tracker_storage_new                 (void);

Creates a new instance of TrackerStorage.

Returns :

The newly created TrackerStorage.

tracker_storage_get_removable_device_roots ()

GSList *            tracker_storage_get_removable_device_roots
                                                        (TrackerStorage *storage);

Returns a GSList of strings containing the root directories for removable devices.

Each element must be freed using g_free() and the list itself through g_slist_free().

storage :

A TrackerStorage

Returns :

The list of root directories.

tracker_storage_get_removable_device_uuids ()

GSList *            tracker_storage_get_removable_device_uuids
                                                        (TrackerStorage *storage);

Returns a GSList of strings containing the UUID for removable devices. Each element is owned by the GHashTable internally, the list itself through should be freed using g_slist_free().

storage :

A TrackerStorage

Returns :

The list of UUIDs.

tracker_storage_get_mount_point_for_uuid ()

const gchar *       tracker_storage_get_mount_point_for_uuid
                                                        (TrackerStorage *storage,
                                                         const gchar *uuid);

storage :

A TrackerStorage

uuid :

A string pointer to the UUID for the GVolume.

Returns :

The mount point for uuid, this should not be freed.

tracker_storage_get_uuid_for_file ()

const gchar*        tracker_storage_get_uuid_for_file   (TrackerStorage *storage,
                                                         GFile *file);

Returns the UUID of the removable device for file

storage :

A TrackerStorage

file :

a file

Returns :

Returns the UUID of the removable device for file, this should not be freed.