[gnome-flashback] monitor-manager: update meta connector types enum



commit 87906124224213b5ee8d7544f3cdfeebc92d96ad
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Aug 19 21:24:34 2022 +0300

    monitor-manager: update meta connector types enum
    
    Based on mutter commit:
    https://gitlab.gnome.org/GNOME/mutter/-/commit/642791673c345bd1432f97d6b7c5e4632e01f2fd

 backends/gf-monitor-manager-enums-private.h | 6 +++++-
 backends/gf-monitor-manager.c               | 4 ++++
 backends/gf-monitor.c                       | 8 ++++++++
 backends/gf-output.c                        | 4 ++++
 4 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/backends/gf-monitor-manager-enums-private.h b/backends/gf-monitor-manager-enums-private.h
index ea2eb82..f7d912b 100644
--- a/backends/gf-monitor-manager-enums-private.h
+++ b/backends/gf-monitor-manager-enums-private.h
@@ -70,7 +70,11 @@ typedef enum
   GF_CONNECTOR_TYPE_TV = 13,
   GF_CONNECTOR_TYPE_eDP = 14,
   GF_CONNECTOR_TYPE_VIRTUAL = 15,
-  GF_CONNECTOR_TYPE_DSI = 16
+  GF_CONNECTOR_TYPE_DSI = 16,
+  GF_CONNECTOR_TYPE_DPI = 17,
+  GF_CONNECTOR_TYPE_WRITEBACK = 18,
+  GF_CONNECTOR_TYPE_SPI = 19,
+  GF_CONNECTOR_TYPE_USB = 20
 } GfConnectorType;
 
 G_END_DECLS
diff --git a/backends/gf-monitor-manager.c b/backends/gf-monitor-manager.c
index 75cf43c..efaae5a 100644
--- a/backends/gf-monitor-manager.c
+++ b/backends/gf-monitor-manager.c
@@ -1195,6 +1195,10 @@ get_connector_type_name (GfConnectorType connector_type)
       case GF_CONNECTOR_TYPE_eDP: return "eDP";
       case GF_CONNECTOR_TYPE_VIRTUAL: return "VIRTUAL";
       case GF_CONNECTOR_TYPE_DSI: return "DSI";
+      case GF_CONNECTOR_TYPE_DPI: return "DPI";
+      case GF_CONNECTOR_TYPE_WRITEBACK: return "WRITEBACK";
+      case GF_CONNECTOR_TYPE_SPI: return "SPI";
+      case GF_CONNECTOR_TYPE_USB: return "USB";
       default: g_assert_not_reached ();
     }
 
diff --git a/backends/gf-monitor.c b/backends/gf-monitor.c
index 0afb79c..0edfca6 100644
--- a/backends/gf-monitor.c
+++ b/backends/gf-monitor.c
@@ -269,6 +269,10 @@ calculate_scale (GfMonitor                 *monitor,
       case GF_CONNECTOR_TYPE_eDP:
       case GF_CONNECTOR_TYPE_VIRTUAL:
       case GF_CONNECTOR_TYPE_DSI:
+      case GF_CONNECTOR_TYPE_DPI:
+      case GF_CONNECTOR_TYPE_WRITEBACK:
+      case GF_CONNECTOR_TYPE_SPI:
+      case GF_CONNECTOR_TYPE_USB:
       default:
         break;
     }
@@ -804,6 +808,10 @@ gf_monitor_is_laptop_panel (GfMonitor *monitor)
       case GF_CONNECTOR_TYPE_DisplayPort:
       case GF_CONNECTOR_TYPE_TV:
       case GF_CONNECTOR_TYPE_VIRTUAL:
+      case GF_CONNECTOR_TYPE_DPI:
+      case GF_CONNECTOR_TYPE_WRITEBACK:
+      case GF_CONNECTOR_TYPE_SPI:
+      case GF_CONNECTOR_TYPE_USB:
       default:
         break;
     }
diff --git a/backends/gf-output.c b/backends/gf-output.c
index 9a950b2..ab7aed2 100644
--- a/backends/gf-output.c
+++ b/backends/gf-output.c
@@ -368,6 +368,10 @@ gf_output_is_laptop (GfOutput *output)
       case GF_CONNECTOR_TYPE_HDMIB:
       case GF_CONNECTOR_TYPE_TV:
       case GF_CONNECTOR_TYPE_VIRTUAL:
+      case GF_CONNECTOR_TYPE_DPI:
+      case GF_CONNECTOR_TYPE_WRITEBACK:
+      case GF_CONNECTOR_TYPE_SPI:
+      case GF_CONNECTOR_TYPE_USB:
       default:
         break;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]