Mesa DRI graphics driver enumeration

Mesa DRI graphics driver enumeration — Get information about DRI drivers

Functions

Properties

gboolean is-extra Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── SrtBaseGraphicsModule
        ╰── SrtDriDriver

Includes

#include <steam-runtime-tools/steam-runtime-tools.h>

Description

SrtDriDriver is an opaque object representing the metadata describing a Mesa DRI driver. This is a reference-counted object: use g_object_ref() and g_object_unref() to manage its lifecycle.

Functions

srt_dri_driver_get_library_path ()

const gchar *
srt_dri_driver_get_library_path (SrtDriDriver *self);

Return the library path for this DRI driver.

Parameters

self

The DRI driver

 

Returns

“library-path”.

[type filename][transfer none]


srt_dri_driver_is_extra ()

gboolean
srt_dri_driver_is_extra (SrtDriDriver *self);

Return a gboolean that indicates if the DRI is in an unusual position.

Parameters

self

The DRI driver

 

Returns

TRUE if the DRI driver is in an unusual position.


srt_dri_driver_resolve_library_path ()

gchar *
srt_dri_driver_resolve_library_path (SrtDriDriver *self);

Return the absolute path for this DRI driver. If srt_dri_driver_get_library_path() is already an absolute path, a copy of the same value will be returned.

Parameters

self

The DRI driver

 

Returns

A copy of “resolved-library-path”. Free with g_free().

[type filename][transfer full]

Property Details

The “is-extra” property

  “is-extra”                 gboolean

TRUE if the driver is located in an unusual path.

Owner: SrtDriDriver

Flags: Read / Write / Construct Only

Default value: FALSE