summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-05-25 14:45:31 +0200
committerBastien Nocera <hadess@hadess.net>2018-05-25 14:47:41 +0200
commit62db8338bf4d5b9bb3e08e05f275f686579b8dd5 (patch)
tree6efb97c4dbdd8cacdfb10edcc2caba6b5e9c9090
parentbbcce75d4e09f74894684b18222170eef97e8b2c (diff)
downloadglib-wip/hadess/g-drive-identifier.tar.gz
gio: Add G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICEwip/hadess/g-drive-identifier
It's a synonym of G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE. It doesn't change anything except not feeling dirty from using a wrongly prefixed constant for the object type. See: #182
-rw-r--r--docs/reference/gio/gio-sections.txt1
-rw-r--r--gio/gdrive.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/reference/gio/gio-sections.txt b/docs/reference/gio/gio-sections.txt
index 0a35f9541..b1cb4e5a3 100644
--- a/docs/reference/gio/gio-sections.txt
+++ b/docs/reference/gio/gio-sections.txt
@@ -1248,6 +1248,7 @@ g_drive_stop_finish
g_drive_enumerate_identifiers
g_drive_get_identifier
g_drive_get_sort_key
+G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE
<SUBSECTION Standard>
G_DRIVE
G_IS_DRIVE
diff --git a/gio/gdrive.h b/gio/gdrive.h
index a33704219..60493662a 100644
--- a/gio/gdrive.h
+++ b/gio/gdrive.h
@@ -30,6 +30,13 @@
G_BEGIN_DECLS
+/**
+ * G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE:
+ *
+ * The string used to obtain a Unix device path with g_drive_get_identifier().
+ */
+#define G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE "unix-device"
+
#define G_TYPE_DRIVE (g_drive_get_type ())
#define G_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_DRIVE, GDrive))
#define G_IS_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_DRIVE))