From 0acae7f3c14641ccd76ff03e86a61ea0e2f01342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 7 Jan 2021 11:04:35 +0100 Subject: [PATCH] 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: --- src/backends/native/meta-kms-update.c | 6 +++--- src/backends/native/meta-kms-update.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/backends/native/meta-kms-update.c b/src/backends/native/meta-kms-update.c index 9ad87ac2e..39b99585a 100644 --- a/src/backends/native/meta-kms-update.c +++ b/src/backends/native/meta-kms-update.c @@ -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; } diff --git a/src/backends/native/meta-kms-update.h b/src/backends/native/meta-kms-update.h index b5123265e..82a0d96c7 100644 --- a/src/backends/native/meta-kms-update.h +++ b/src/backends/native/meta-kms-update.h @@ -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);