diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c index 1c5e60aed..e7b280512 100644 --- a/src/backends/meta-monitor.c +++ b/src/backends/meta-monitor.c @@ -211,6 +211,15 @@ meta_monitor_get_subpixel_order (MetaMonitor *monitor) return output->subpixel_order; } +const char * +meta_monitor_get_vendor (MetaMonitor *monitor) +{ + MetaOutput *output; + + output = meta_monitor_get_main_output (monitor); + return output->vendor; +} + const char * meta_monitor_get_product (MetaMonitor *monitor) { @@ -220,6 +229,15 @@ meta_monitor_get_product (MetaMonitor *monitor) return output->product; } +const char * +meta_monitor_get_serial (MetaMonitor *monitor) +{ + MetaOutput *output; + + output = meta_monitor_get_main_output (monitor); + return output->serial; +} + static void meta_monitor_finalize (GObject *object) { diff --git a/src/backends/meta-monitor.h b/src/backends/meta-monitor.h index f4a583da3..fceae1b7c 100644 --- a/src/backends/meta-monitor.h +++ b/src/backends/meta-monitor.h @@ -107,8 +107,12 @@ void meta_monitor_get_physical_dimensions (MetaMonitor *monitor, CoglSubpixelOrder meta_monitor_get_subpixel_order (MetaMonitor *monitor); +const char * meta_monitor_get_vendor (MetaMonitor *monitor); + const char * meta_monitor_get_product (MetaMonitor *monitor); +const char * meta_monitor_get_serial (MetaMonitor *monitor); + uint32_t meta_monitor_tiled_get_tile_group_id (MetaMonitorTiled *monitor_tiled); MetaMonitorMode * meta_monitor_get_mode_from_spec (MetaMonitor *monitor,