summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/raspberrypi/dma_heaps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/pipeline/raspberrypi/dma_heaps.h')
-rw-r--r--src/libcamera/pipeline/raspberrypi/dma_heaps.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/raspberrypi/dma_heaps.h b/src/libcamera/pipeline/raspberrypi/dma_heaps.h
index ae6be113..79f39c51 100644
--- a/src/libcamera/pipeline/raspberrypi/dma_heaps.h
+++ b/src/libcamera/pipeline/raspberrypi/dma_heaps.h
@@ -18,6 +18,7 @@ class DmaHeap
public:
DmaHeap();
~DmaHeap();
+ bool isValid() const { return dmaHeapHandle_ > -1; }
FileDescriptor alloc(const char *name, std::size_t size);
private: