From 4a7ecd70a476f48901391e2011490c21a1bd41a2 Mon Sep 17 00:00:00 2001 From: kotontrion Date: Mon, 22 Jul 2024 14:29:40 +0200 Subject: add video device support --- include/astal/wireplumber/video.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/astal/wireplumber/video.h (limited to 'include/astal/wireplumber/video.h') diff --git a/include/astal/wireplumber/video.h b/include/astal/wireplumber/video.h new file mode 100644 index 0000000..8b17e31 --- /dev/null +++ b/include/astal/wireplumber/video.h @@ -0,0 +1,32 @@ +#ifndef ASTAL_WIREPLUMBER_VIDEO_H +#define ASTAL_WIREPLUMBER_VIDEO_H + +#include + +#include "device.h" +#include "endpoint.h" + +G_BEGIN_DECLS + +#define ASTAL_WP_TYPE_VIDEO (astal_wp_video_get_type()) + +G_DECLARE_FINAL_TYPE(AstalWpVideo, astal_wp_video, ASTAL_WP, VIDEO, GObject) + +AstalWpEndpoint *astal_wp_video_get_source(AstalWpVideo *self, guint id); +AstalWpEndpoint *astal_wp_video_get_sink(AstalWpVideo *self, guint id); +AstalWpEndpoint *astal_wp_video_get_recorder(AstalWpVideo *self, guint id); +AstalWpEndpoint *astal_wp_video_get_stream(AstalWpVideo *self, guint id); +AstalWpDevice *astal_wp_video_get_device(AstalWpVideo *self, guint id); + +GList *astal_wp_video_get_sources(AstalWpVideo *self); +GList *astal_wp_video_get_sinks(AstalWpVideo *self); +GList *astal_wp_video_get_recorders(AstalWpVideo *self); +GList *astal_wp_video_get_streams(AstalWpVideo *self); +GList *astal_wp_video_get_devices(AstalWpVideo *self); + +AstalWpVideo *astal_wp_video_get_default(); +AstalWpVideo *astal_wp_get_default_video(); + +G_END_DECLS + +#endif // !ASTAL_WIREPLUMBER_VIDEO_H -- cgit v1.2.3