From 03c0197f812a5a52a3e3c4b117ffeb94e8416efc Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Wed, 31 Jul 2024 15:32:43 +0200 Subject: media_device: Allow to get fd Signed-off-by: Jacopo Mondi --- include/libcamera/internal/media_device.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libcamera/internal/media_device.h b/include/libcamera/internal/media_device.h index bf2e475d..992184ed 100644 --- a/include/libcamera/internal/media_device.h +++ b/include/libcamera/internal/media_device.h @@ -54,6 +54,8 @@ public: MediaLink *link(const MediaPad *source, const MediaPad *sink); int disableLinks(); + int fd() const { return fd_.get(); } + Signal<> disconnected; protected: -- cgit v1.2.1