mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
kms/mode: Add getter for name
Gets the name directly from the DRM mode. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
parent
2c4a3c5959
commit
0fa0eeef57
@ -55,6 +55,12 @@ meta_kms_mode_ensure_blob_id (MetaKmsMode *mode,
|
||||
return mode->blob_id;
|
||||
}
|
||||
|
||||
const char *
|
||||
meta_kms_mode_get_name (MetaKmsMode *mode)
|
||||
{
|
||||
return mode->drm_mode.name;
|
||||
}
|
||||
|
||||
MetaKmsModeFlag
|
||||
meta_kms_mode_get_flags (MetaKmsMode *mode)
|
||||
{
|
||||
|
@ -31,6 +31,8 @@ typedef enum _MetaKmsModeFlag
|
||||
META_KMS_MODE_FLAG_NONE = 0,
|
||||
} MetaKmsModeFlag;
|
||||
|
||||
const char * meta_kms_mode_get_name (MetaKmsMode *mode);
|
||||
|
||||
MetaKmsModeFlag meta_kms_mode_get_flags (MetaKmsMode *mode);
|
||||
|
||||
const drmModeModeInfo * meta_kms_mode_get_drm_mode (MetaKmsMode *mode);
|
||||
|
Loading…
Reference in New Issue
Block a user