[gnome-flashback] monitor-manager: add gf_monitor_manager_get_outputs
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] monitor-manager: add gf_monitor_manager_get_outputs
- Date: Fri, 29 Sep 2017 11:33:13 +0000 (UTC)
commit 3cdbf8655a435008e801e768dd37406ec660cd43
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Sep 29 13:41:51 2017 +0300
monitor-manager: add gf_monitor_manager_get_outputs
backends/gf-monitor-manager-private.h | 3 +++
backends/gf-monitor-manager.c | 8 ++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/backends/gf-monitor-manager-private.h b/backends/gf-monitor-manager-private.h
index 0dd8ea7..51db111 100644
--- a/backends/gf-monitor-manager-private.h
+++ b/backends/gf-monitor-manager-private.h
@@ -173,6 +173,9 @@ GfMonitor *gf_monitor_manager_get_monitor_from_spec (GfM
GList *gf_monitor_manager_get_monitors (GfMonitorManager
*manager);
+GfOutput *gf_monitor_manager_get_outputs (GfMonitorManager
*manager,
+ guint
*n_outputs);
+
gboolean gf_monitor_manager_has_hotplug_mode_update (GfMonitorManager
*manager);
void gf_monitor_manager_read_current_state (GfMonitorManager
*manager);
void gf_monitor_manager_on_hotplug (GfMonitorManager
*manager);
diff --git a/backends/gf-monitor-manager.c b/backends/gf-monitor-manager.c
index 9c4322b..a796650 100644
--- a/backends/gf-monitor-manager.c
+++ b/backends/gf-monitor-manager.c
@@ -2159,6 +2159,14 @@ gf_monitor_manager_get_monitors (GfMonitorManager *manager)
return manager->monitors;
}
+GfOutput *
+gf_monitor_manager_get_outputs (GfMonitorManager *manager,
+ guint *n_outputs)
+{
+ *n_outputs = manager->n_outputs;
+ return manager->outputs;
+}
+
gboolean
gf_monitor_manager_has_hotplug_mode_update (GfMonitorManager *manager)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]