UDisksLinuxBlockObject

## UDisksLinuxBlockObject UDisksLinuxBlockObject — Object representing a block device on Linux. |

## Synopsis

                        UDisksLinuxBlockObject;
    UDisksLinuxBlockObject * udisks_linux_block_object_new  (UDisksDaemon *daemon,
                                                             GUdevDevice *device);
    void                udisks_linux_block_object_uevent    (UDisksLinuxBlockObject *object,
                                                             const gchar *action,
                                                             GUdevDevice *device);
    UDisksDaemon *      udisks_linux_block_object_get_daemon
                                                            (UDisksLinuxBlockObject *object);
    GUdevDevice *       udisks_linux_block_object_get_device
                                                            (UDisksLinuxBlockObject *object);
    void                udisks_linux_block_object_trigger_uevent
                                                            (UDisksLinuxBlockObject *object);

## Object Hierarchy

      GObject
       +----GDBusObjectSkeleton
             +----UDisksObjectSkeleton
                   +----UDisksLinuxBlockObject

## Implemented Interfaces

UDisksLinuxBlockObject implements GDBusObject and UDisksObject.

## Properties

      "daemon"                   UDisksDaemon*         : Read / Write / Construct Only
      "device"                   GUdevDevice*          : Read / Write / Construct Only

## Description

Object corresponding to a block device on Linux.

## Details

### UDisksLinuxBlockObject

    typedef struct _UDisksLinuxBlockObject UDisksLinuxBlockObject;

The UDisksLinuxBlockObject structure contains only private data and should only be accessed using the provided API.

### udisks_linux_block_object_new ()

    UDisksLinuxBlockObject * udisks_linux_block_object_new  (UDisksDaemon *daemon,
                                                             GUdevDevice *device);

Create a new block object.

`daemon` : | A UDisksDaemon.
`device` : | The GUdevDevice for the sysfs block device.
Returns : | A UDisksLinuxBlockObject object. Free with `g_object_unref()`.

### udisks_linux_block_object_uevent ()

    void                udisks_linux_block_object_uevent    (UDisksLinuxBlockObject *object,
                                                             const gchar *action,
                                                             GUdevDevice *device);

Updates all information on interfaces on `object`.

`object` : | A UDisksLinuxBlockObject.
`action` : | Uevent action or `NULL`
`device` : | A new GUdevDevice device object or `NULL` if the device hasn't changed.

### udisks_linux_block_object_get_daemon ()

    UDisksDaemon *      udisks_linux_block_object_get_daemon
                                                            (UDisksLinuxBlockObject *object);

Gets the daemon used by `object`.

`object` : | A UDisksLinuxBlockObject.
Returns : | A UDisksDaemon. Do not free, the object is owned by `object`.

### udisks_linux_block_object_get_device ()

    GUdevDevice *       udisks_linux_block_object_get_device
                                                            (UDisksLinuxBlockObject *object);

Gets the current GUdevDevice for `object`. Connect to "notify" to track changes to the "device" property.

`object` : | A UDisksLinuxBlockObject.
Returns : | A GUdevDevice. Free with `g_object_unref()`.

### udisks_linux_block_object_trigger_uevent ()

    void                udisks_linux_block_object_trigger_uevent
                                                            (UDisksLinuxBlockObject *object);

Triggers a 'change' uevent in the kernel.

The triggered event will bubble up from the kernel through the udev stack and will eventually be received by the udisks daemon process itself.

This method does not wait for the event to be received.

`object` : | A UDisksLinuxBlockObject.

## Property Details

### The `"daemon"` property

      "daemon"                   UDisksDaemon*         : Read / Write / Construct Only

The UDisksDaemon the object is for.

### The `"device"` property

      "device"                   GUdevDevice*          : Read / Write / Construct Only

The GUdevDevice for the object. Connect to the "notify" signal to get notified whenever this is updated.