[gnome-flashback] edid: fix EDID parsing function signatures



commit 1e4e2dc45b01013e9aa908a792b7693e48813de1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Aug 13 15:36:20 2022 +0300

    edid: fix EDID parsing function signatures
    
    Based on mutter commit:
    https://gitlab.gnome.org/GNOME/mutter/-/commit/97c0d175965bf243f1a7

 backends/gf-edid-parse.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/backends/gf-edid-parse.c b/backends/gf-edid-parse.c
index f3d3e6e..9c5313c 100644
--- a/backends/gf-edid-parse.c
+++ b/backends/gf-edid-parse.c
@@ -46,7 +46,7 @@ get_bits (int in,
   return (in >> begin) & mask;
 }
 
-static int
+static gboolean
 decode_header (const uint8_t *edid)
 {
   if (memcmp (edid, "\x00\xff\xff\xff\xff\xff\xff\x00", 8) == 0)
@@ -54,7 +54,7 @@ decode_header (const uint8_t *edid)
   return FALSE;
 }
 
-static int
+static gboolean
 decode_vendor_and_product_identification (const uint8_t *edid,
                                           GfEdidInfo    *info)
 {
@@ -109,7 +109,7 @@ decode_vendor_and_product_identification (const uint8_t *edid,
   return TRUE;
 }
 
-static int
+static gboolean
 decode_edid_version (const uint8_t *edid,
                      GfEdidInfo    *info)
 {
@@ -119,7 +119,7 @@ decode_edid_version (const uint8_t *edid,
   return TRUE;
 }
 
-static int
+static gboolean
 decode_display_parameters (const uint8_t *edid,
                            GfEdidInfo    *info)
 {
@@ -264,7 +264,7 @@ decode_fraction (int high,
   return result;
 }
 
-static int
+static gboolean
 decode_color_characteristics (const uint8_t *edid,
                               GfEdidInfo    *info)
 {
@@ -280,7 +280,7 @@ decode_color_characteristics (const uint8_t *edid,
   return TRUE;
 }
 
-static int
+static gboolean
 decode_established_timings (const uint8_t *edid,
                             GfEdidInfo    *info)
 {
@@ -335,7 +335,7 @@ decode_established_timings (const uint8_t *edid,
   return TRUE;
 }
 
-static int
+static gboolean
 decode_standard_timings (const uint8_t *edid,
                          GfEdidInfo    *info)
 {
@@ -502,7 +502,7 @@ decode_detailed_timing (const uint8_t        *timing,
     }
 }
 
-static int
+static gboolean
 decode_descriptors (const uint8_t *edid,
                     GfEdidInfo    *info)
 {


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