diff --git a/src/backends/native/meta-kms-update.c b/src/backends/native/meta-kms-update.c index c7fd5dcff..35fe816fb 100644 --- a/src/backends/native/meta-kms-update.c +++ b/src/backends/native/meta-kms-update.c @@ -143,6 +143,12 @@ meta_kms_feedback_get_result (const MetaKmsFeedback *feedback) return feedback->result; } +gboolean +meta_kms_feedback_did_pass (const MetaKmsFeedback *feedback) +{ + return feedback->result == META_KMS_FEEDBACK_PASSED; +} + GList * meta_kms_feedback_get_failed_planes (const MetaKmsFeedback *feedback) { diff --git a/src/backends/native/meta-kms-update.h b/src/backends/native/meta-kms-update.h index 64ec925e4..31bf36bc8 100644 --- a/src/backends/native/meta-kms-update.h +++ b/src/backends/native/meta-kms-update.h @@ -91,6 +91,8 @@ void meta_kms_feedback_unref (MetaKmsFeedback *feedback); MetaKmsFeedbackResult meta_kms_feedback_get_result (const MetaKmsFeedback *feedback); +gboolean meta_kms_feedback_did_pass (const MetaKmsFeedback *feedback); + GList * meta_kms_feedback_get_failed_planes (const MetaKmsFeedback *feedback); const GError * meta_kms_feedback_get_error (const MetaKmsFeedback *feedback);