edid: Prepare types for wider exposure

The EDID code is copy from elsewhere, without adapting to conventions
regarding e.g. API and types. Clean this up a bit, as EDID information
will be kept around longer when possible, to be used e.g. by color
management.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2351>
This commit is contained in:
Jonas Ådahl
2021-11-08 14:56:35 +01:00
parent 1f03a20939
commit de2443bc3e
3 changed files with 98 additions and 71 deletions

View File

@@ -289,13 +289,13 @@ void
meta_output_info_parse_edid (MetaOutputInfo *output_info,
GBytes *edid)
{
MonitorInfo *parsed_edid;
MetaEdidInfo *parsed_edid;
size_t len;
if (!edid)
goto out;
parsed_edid = decode_edid (g_bytes_get_data (edid, &len));
parsed_edid = meta_edid_info_new_parse (g_bytes_get_data (edid, &len));
if (parsed_edid)
{