kms/feedback: Make getter take consts

This will be necessary later, as places that wants to use them will only
have the const variants of the feedback pointers.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2021-01-07 11:04:35 +01:00 committed by Marge Bot
parent 411ec5fd18
commit 0acae7f3c1
2 changed files with 6 additions and 6 deletions

View File

@ -109,19 +109,19 @@ meta_kms_feedback_free (MetaKmsFeedback *feedback)
}
MetaKmsFeedbackResult
meta_kms_feedback_get_result (MetaKmsFeedback *feedback)
meta_kms_feedback_get_result (const MetaKmsFeedback *feedback)
{
return feedback->result;
}
GList *
meta_kms_feedback_get_failed_planes (MetaKmsFeedback *feedback)
meta_kms_feedback_get_failed_planes (const MetaKmsFeedback *feedback)
{
return feedback->failed_planes;
}
const GError *
meta_kms_feedback_get_error (MetaKmsFeedback *feedback)
meta_kms_feedback_get_error (const MetaKmsFeedback *feedback)
{
return feedback->error;
}

View File

@ -71,11 +71,11 @@ typedef struct _MetaKmsPlaneFeedback
void meta_kms_feedback_free (MetaKmsFeedback *feedback);
MetaKmsFeedbackResult meta_kms_feedback_get_result (MetaKmsFeedback *feedback);
MetaKmsFeedbackResult meta_kms_feedback_get_result (const MetaKmsFeedback *feedback);
GList * meta_kms_feedback_get_failed_planes (MetaKmsFeedback *feedback);
GList * meta_kms_feedback_get_failed_planes (const MetaKmsFeedback *feedback);
const GError * meta_kms_feedback_get_error (MetaKmsFeedback *feedback);
const GError * meta_kms_feedback_get_error (const MetaKmsFeedback *feedback);
MetaKmsUpdate * meta_kms_update_new (MetaKmsDevice *device);