Commit 5b4a96e3 authored by Jonas Ådahl's avatar Jonas Ådahl

monitor: Add API to get connector

The connector returned is the one of the main output. In other words,
for tiled monitors, it is the connector of the (0, 0) tile, and for
non-tiled, it is simply the connector of the output.
parent 15dd23a3
......@@ -271,6 +271,15 @@ meta_monitor_get_subpixel_order (MetaMonitor *monitor)
return output->subpixel_order;
const char *
meta_monitor_get_connector (MetaMonitor *monitor)
MetaOutput *output;
output = meta_monitor_get_main_output (monitor);
return output->name;
const char *
meta_monitor_get_vendor (MetaMonitor *monitor)
......@@ -117,6 +117,8 @@ void meta_monitor_get_physical_dimensions (MetaMonitor *monitor,
CoglSubpixelOrder meta_monitor_get_subpixel_order (MetaMonitor *monitor);
const char * meta_monitor_get_connector (MetaMonitor *monitor);
const char * meta_monitor_get_vendor (MetaMonitor *monitor);
const char * meta_monitor_get_product (MetaMonitor *monitor);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment