Storage

Storage

Synopsis


#include <libtracker-common/tracker-storage.h>

                    TrackerStorage;
TrackerStorage *    tracker_storage_new                 (void);
GList *             tracker_storage_get_mounted_directory_roots
                                                        (TrackerStorage *storage);
GList *             tracker_storage_get_removable_device_roots
                                                        (TrackerStorage *storage);

Description

Details

TrackerStorage

typedef struct {
	GObject      parent;
} TrackerStorage;


tracker_storage_new ()

TrackerStorage *    tracker_storage_new                 (void);

Creates a new instance of TrackerStorage.

Returns :

The newly created TrackerStorage.

tracker_storage_get_mounted_directory_roots ()

GList *             tracker_storage_get_mounted_directory_roots
                                                        (TrackerStorage *storage);

Returns a Glist of strings containing the root directories for mounted devices. Each element must be freed using g_free() and the list itself using g_list_free().

storage :

A TrackerStorage

Returns :

The list of root directories.

tracker_storage_get_removable_device_roots ()

GList *             tracker_storage_get_removable_device_roots
                                                        (TrackerStorage *storage);

Returns a GList of strings containing the root directories for removable devices. Each element must be freed using g_free() and the list itself through g_list_free().

storage :

A TrackerStorage

Returns :

The list of root directories.