1
0
Fork 0

monitor: Add getter for EDID info struct

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2164>
This commit is contained in:
Jonas Ådahl 2021-11-29 17:26:31 +01:00
parent 9ece224718
commit b8ddf7ad8b
2 changed files with 12 additions and 0 deletions

View file

@ -508,6 +508,15 @@ meta_monitor_get_serial (MetaMonitor *monitor)
return output_info->serial;
}
const MetaEdidInfo *
meta_monitor_get_edid_info (MetaMonitor *monitor)
{
const MetaOutputInfo *output_info =
meta_monitor_get_main_output_info (monitor);
return output_info->edid_info;
}
const char *
meta_monitor_get_edid_checksum_md5 (MetaMonitor *monitor)
{

View file

@ -157,6 +157,9 @@ const char * meta_monitor_get_product (MetaMonitor *monitor);
META_EXPORT_TEST
const char * meta_monitor_get_serial (MetaMonitor *monitor);
META_EXPORT_TEST
const MetaEdidInfo * meta_monitor_get_edid_info (MetaMonitor *monitor);
const char * meta_monitor_get_edid_checksum_md5 (MetaMonitor *monitor);
META_EXPORT_TEST