summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-07-31 15:32:43 +0200
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-07-31 15:32:43 +0200
commit03c0197f812a5a52a3e3c4b117ffeb94e8416efc (patch)
tree4a9156d77455d3c718252ceac35de1bfae9297b1
parent93ed3aee00f3b244b2d991fa41cdd97db9ab6023 (diff)
media_device: Allow to get fd
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
-rw-r--r--include/libcamera/internal/media_device.h2
1 files changed, 2 insertions, 0 deletions
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: