[gnome-flashback] output: add name getter
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] output: add name getter
- Date: Sat, 11 Jul 2020 18:42:24 +0000 (UTC)
commit 1bb913ecc68b383f86e2335e9ffcd9072d60261c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Jul 8 09:07:50 2020 +0300
output: add name getter
Based on mutter commit:
https://gitlab.gnome.org/GNOME/mutter/-/commit/9bf6faf6392528c60b35
backends/gf-output-private.h | 2 ++
backends/gf-output.c | 6 ++++++
2 files changed, 8 insertions(+)
---
diff --git a/backends/gf-output-private.h b/backends/gf-output-private.h
index 11a811e..2632fff 100644
--- a/backends/gf-output-private.h
+++ b/backends/gf-output-private.h
@@ -103,6 +103,8 @@ uint64_t gf_output_get_id (GfOutput *sel
GfGpu *gf_output_get_gpu (GfOutput *output);
+const char *gf_output_get_name (GfOutput *self);
+
void gf_output_assign_crtc (GfOutput *output,
GfCrtc *crtc,
const GfOutputInfo *output_info);
diff --git a/backends/gf-output.c b/backends/gf-output.c
index 00d8880..3251b54 100644
--- a/backends/gf-output.c
+++ b/backends/gf-output.c
@@ -218,6 +218,12 @@ gf_output_get_gpu (GfOutput *output)
return priv->gpu;
}
+const char *
+gf_output_get_name (GfOutput *self)
+{
+ return self->name;
+}
+
void
gf_output_assign_crtc (GfOutput *self,
GfCrtc *crtc,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]