Top | ![]() |
![]() |
![]() |
![]() |
This API is a convenience to to be able to keep track of volumes which are mounted and also the type of removable media available. The API is built upon the top of GIO's GMount, GDrive and GVolume API.
GSList * tracker_storage_get_device_roots (TrackerStorage *storage
,TrackerStorageType type
,gboolean exact_match
);
a GSList of strings
containing the root directories for devices with type
based on
exact_match
. Each element must be freed using g_free()
and the
list itself through g_slist_free()
.
[transfer full][element-type utf8]
Since 0.8
GSList * tracker_storage_get_device_uuids (TrackerStorage *storage
,TrackerStorageType type
,gboolean exact_match
);
a GSList of
strings containing the UUID for devices with type
based
on exact_match
. Each element must be freed using g_free()
and the list itself through g_slist_free()
.
[transfer full][element-type utf8]
Since 0.8
const gchar * tracker_storage_get_mount_point_for_uuid (TrackerStorage *storage
,const gchar *uuid
);
Since 0.8
TrackerStorageType tracker_storage_get_type_for_uuid (TrackerStorage *storage
,const gchar *uuid
);
Since 0.10
const gchar * tracker_storage_get_uuid_for_file (TrackerStorage *storage
,GFile *file
);
Returns the UUID of the removable device for file
Since 0.8
TrackerStorage *
tracker_storage_new (void
);
Creates a new instance of TrackerStorage.
Since 0.8
struct TrackerStorage { GObject parent; };
A storage API for using mount points and devices
struct TrackerStorageClass { GObjectClass parent_class; };
A storage class for TrackerStorage.