mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
gio: Add G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE
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
This commit is contained in:
parent
bbcce75d4e
commit
4c84eac38e
@ -1248,6 +1248,7 @@ g_drive_stop_finish
|
|||||||
g_drive_enumerate_identifiers
|
g_drive_enumerate_identifiers
|
||||||
g_drive_get_identifier
|
g_drive_get_identifier
|
||||||
g_drive_get_sort_key
|
g_drive_get_sort_key
|
||||||
|
G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
G_DRIVE
|
G_DRIVE
|
||||||
G_IS_DRIVE
|
G_IS_DRIVE
|
||||||
|
@ -611,7 +611,9 @@ g_drive_poll_for_media_finish (GDrive *drive,
|
|||||||
* @drive: a #GDrive
|
* @drive: a #GDrive
|
||||||
* @kind: the kind of identifier to return
|
* @kind: the kind of identifier to return
|
||||||
*
|
*
|
||||||
* Gets the identifier of the given kind for @drive.
|
* Gets the identifier of the given kind for @drive. The only
|
||||||
|
* identifier currently available is
|
||||||
|
* #G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE.
|
||||||
*
|
*
|
||||||
* Returns: a newly allocated string containing the
|
* Returns: a newly allocated string containing the
|
||||||
* requested identfier, or %NULL if the #GDrive
|
* requested identfier, or %NULL if the #GDrive
|
||||||
|
@ -30,6 +30,15 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
/**
|
||||||
|
* G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE:
|
||||||
|
*
|
||||||
|
* The string used to obtain a Unix device path with g_drive_get_identifier().
|
||||||
|
*
|
||||||
|
* Since: 2.58
|
||||||
|
*/
|
||||||
|
#define G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE "unix-device"
|
||||||
|
|
||||||
#define G_TYPE_DRIVE (g_drive_get_type ())
|
#define G_TYPE_DRIVE (g_drive_get_type ())
|
||||||
#define G_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_DRIVE, GDrive))
|
#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))
|
#define G_IS_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_DRIVE))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user