After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 652050 - Add gnome_rr_output_get_edid_size()
Add gnome_rr_output_get_edid_size()
Status: RESOLVED FIXED
Product: gnome-desktop
Classification: Core
Component: libgnome-desktop
git master
Other All
: Normal enhancement
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
Depends on:
Blocks: 651626
 
 
Reported: 2011-06-07 13:47 UTC by Richard Hughes
Modified: 2011-06-07 15:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[patch] patch for review (2.38 KB, patch)
2011-06-07 13:47 UTC, Richard Hughes
needs-work Details | Review
patch for review (3.41 KB, patch)
2011-06-07 15:47 UTC, Richard Hughes
accepted-commit_now Details | Review

Description Richard Hughes 2011-06-07 13:47:53 UTC
Created attachment 189401 [details] [review]
[patch] patch for review

It's wrong to assume that the EDID size is always 128 bytes if there are
extension blocks.

---

This functionality is required if we want to parse the EDID in any safe way.
Comment 1 Bastien Nocera 2011-06-07 15:36:40 UTC
Review of attachment 189401 [details] [review]:

::: libgnome-desktop/gnome-rr.h
@@ +134,3 @@
 int             gnome_rr_output_get_height_mm      (GnomeRROutput         *output);
 const guint8 *  gnome_rr_output_get_edid_data      (GnomeRROutput         *output);
+gsize           gnome_rr_output_get_edid_size      (GnomeRROutput         *output);

Nope. Use:
const guint8 *  gnome_rr_output_get_edid_data      (GnomeRROutput         *output,
                                                    gsize                 *size);

And return the size (we can break the API, it's unstable).
Comment 2 Richard Hughes 2011-06-07 15:47:50 UTC
Created attachment 189415 [details] [review]
patch for review

Something like this...
Comment 3 Bastien Nocera 2011-06-07 15:50:51 UTC
Review of attachment 189415 [details] [review]:

Looks good.
Comment 4 Richard Hughes 2011-06-07 15:54:01 UTC
Cool, thanks. I'll fix up any breakage in jhbuild as it pops up.