| UDisks Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
UDisksLinuxDevice; UDisksLinuxDevice * udisks_linux_device_new_sync (GUdevDevice *udev_device); gboolean udisks_linux_device_reprobe_sync (UDisksLinuxDevice *device,GCancellable *cancellable,GError **error);
Types and functions used to record information obtained from the udev database as well as by probing the device.
typedef struct {
GUdevDevice *udev_device;
guchar *ata_identify_device_data;
guchar *ata_identify_packet_device_data;
} UDisksLinuxDevice;
Object containing information about a device on Linux. This is essentially an instance of GUdevDevice plus additional data - such as ATA IDENTIFY data - obtained via probing the device at discovery and uevent "change" time.
GUdevDevice * |
A GUdevDevice. |
512-byte array containing the result of the IDENTIY DEVICE command or NULL. |
|
512-byte array containing the result of the IDENTIY PACKET DEVICE command or NULL. |
UDisksLinuxDevice * udisks_linux_device_new_sync (GUdevDevice *udev_device);
Creates a new UDisksLinuxDevice from udev_device which includes
probing the device for more information, if applicable.
The calling thread may be blocked for a non-trivial amount of time while the probing is underway.
|
A GUdevDevice. |
Returns : |
A UDisksLinuxDevice. |
gboolean udisks_linux_device_reprobe_sync (UDisksLinuxDevice *device,GCancellable *cancellable,GError **error);
Forcibly reprobe information on device. The calling thread may be
blocked for a non-trivial amount of time while the probing is
underway.
|
A UDisksLinuxDevice. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if reprobing succeeded, FALSE otherwise. |