WPEPlatform.BufferFormats.get_device

### Method

# WPEPlatform BufferFormatsget_device

#### Declaration [src]

    WPEDRMDevice*
    wpe_buffer_formats_get_device (
      WPEBufferFormats* formats
    )

#### Description [src]

Get the main DRM device to be used to allocate buffer for `formats`.

#### Return value

Type: `WPEDRMDevice`

A `WPEDRMDevice` or `NULL`.

The returned data is owned by the instance.
The return value can be `NULL`.