From 9f6a4416651263181d22aea28caa7f2181982705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 27 Jan 2021 23:36:51 +0100 Subject: [PATCH] screen-cast-stream: Add getter for stream src Part-of: --- src/backends/meta-screen-cast-stream.c | 9 +++++++++ src/backends/meta-screen-cast-stream.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/backends/meta-screen-cast-stream.c b/src/backends/meta-screen-cast-stream.c index fa2f3684b..fed1560fe 100644 --- a/src/backends/meta-screen-cast-stream.c +++ b/src/backends/meta-screen-cast-stream.c @@ -168,6 +168,15 @@ meta_screen_cast_stream_get_object_path (MetaScreenCastStream *stream) return priv->object_path; } +MetaScreenCastStreamSrc * +meta_screen_cast_stream_get_src (MetaScreenCastStream *stream) +{ + MetaScreenCastStreamPrivate *priv = + meta_screen_cast_stream_get_instance_private (stream); + + return priv->src; +} + void meta_screen_cast_stream_transform_position (MetaScreenCastStream *stream, double stream_x, diff --git a/src/backends/meta-screen-cast-stream.h b/src/backends/meta-screen-cast-stream.h index 1fa8ddd7a..d121c15c1 100644 --- a/src/backends/meta-screen-cast-stream.h +++ b/src/backends/meta-screen-cast-stream.h @@ -59,6 +59,8 @@ void meta_screen_cast_stream_close (MetaScreenCastStream *stream); char * meta_screen_cast_stream_get_object_path (MetaScreenCastStream *stream); +MetaScreenCastStreamSrc * meta_screen_cast_stream_get_src (MetaScreenCastStream *stream); + void meta_screen_cast_stream_transform_position (MetaScreenCastStream *stream, double stream_x, double stream_y,