[mutter] kms/feedback: Make getter take consts



commit 0acae7f3c14641ccd76ff03e86a61ea0e2f01342
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu Jan 7 11:04:35 2021 +0100

    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>

 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 9ad87ac2e1..39b99585a7 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 b5123265ea..82a0d96c77 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]