Commit graph

5 commits

Author SHA1 Message Date
Simon Ser
b4544c5012 info: use byte descriptors in di_info_get_product_name()
These contain more user-friendly names.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-06-10 19:30:27 +02:00
Simon Ser
4346c405b8 info: omit serial if unset in di_info_get_product_name()
The spec says this field is optional, zero if unset.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-06-10 19:15:13 +02:00
Simon Ser
321d5dbcba Add di_info_get_product_name
This high-level function leverages the low-level
di_edid_get_vendor_product function to build a string describing
the display device product.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-05-09 14:33:58 +02:00
Simon Ser
40b7b46a5c Add di_info_get_edid
Returns a low-level struct di_edid from a high-level struct di_info.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-05-06 10:30:33 +02:00
Simon Ser
c01982bdb1 Add skeleton for high-level API
This exposes a new di_info opaque struct from which high-level
information will be able to be queried by the user. A new
di_info_parse_edid function creates a di_info from an EDID blob.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-05-06 10:26:28 +02:00