summaryrefslogtreecommitdiff
path: root/gio/gmount.h
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2011-10-13 16:53:44 -0400
committerDavid Zeuthen <davidz@redhat.com>2011-10-18 14:29:18 -0400
commit915e2238c478737def2f8919204ee10d06ecb98a (patch)
treedc3e8711d6eb690598baa4b7e1e9e57d18deb008 /gio/gmount.h
parent4a25d21bd08b7dcf38f781bf678ee8fffe817203 (diff)
downloadglib-915e2238c478737def2f8919204ee10d06ecb98a.tar.gz
gio: Introduce get_sort_key() methods on GDrive, GVolume and GMount
This is needed to implement efficient and predictable proxy volume monitors, see https://bugzilla.gnome.org/show_bug.cgi?id=661711 for details. Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'gio/gmount.h')
-rw-r--r--gio/gmount.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gio/gmount.h b/gio/gmount.h
index 2f5124fa0..f27c26246 100644
--- a/gio/gmount.h
+++ b/gio/gmount.h
@@ -69,6 +69,7 @@ typedef struct _GMountIface GMountIface;
* @eject_with_operation: Starts ejecting a #GMount using a #GMountOperation. Since 2.22.
* @eject_with_operation_finish: Finishes an eject operation using a #GMountOperation. Since 2.22.
* @get_default_location: Gets a #GFile indication a start location that can be use as the entry point for this mount. Since 2.24.
+ * @get_sort_key: Gets a key used for sorting #GMount instance or %NULL if no such key exists. Since 2.32.
*
* Interface for implementing operations for mounts.
**/
@@ -156,6 +157,8 @@ struct _GMountIface
GAsyncResult *result,
GError **error);
GFile * (* get_default_location) (GMount *mount);
+
+ const gchar * (* get_sort_key) (GMount *mount);
};
GType g_mount_get_type (void) G_GNUC_CONST;
@@ -243,6 +246,8 @@ gboolean g_mount_eject_with_operation_finish (GMount *mount,
GAsyncResult *result,
GError **error);
+const gchar *g_mount_get_sort_key (GMount *mount);
+
G_END_DECLS
#endif /* __G_MOUNT_H__ */