summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-02-05 13:42:14 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-06 07:41:51 +0200
commit31bb25ae8d6dc669dddabf47d18c517ce9070578 (patch)
tree8927e71cf2d2f40a9a57c847ab97e03747495ea3 /include
parent5239f6e656d77bdbc66a93714b5a0b31a879c0cc (diff)
libcamera: camera: Add helper to check for exclusive access
Some operations on the camera requires the application to have exclusive access to the camera. To help check for this in these operations add a helper. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/camera.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/camera.h b/include/libcamera/camera.h
index bbe2696e..36bf1cbb 100644
--- a/include/libcamera/camera.h
+++ b/include/libcamera/camera.h
@@ -50,6 +50,7 @@ private:
friend class PipelineHandler;
void disconnect();
+ int exclusiveAccess();
std::shared_ptr<PipelineHandler> pipe_;
std::string name_;