summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-26 17:26:29 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-26 19:07:45 +0300
commit152147c539d8e0e920547167c462c54d744601f7 (patch)
tree4fa5ec8597e8518dc47cc4e0b9d0fdc7b3120607 /src
parentab0188fc8bbb6f397ac3aa11c9377662b7bd88b0 (diff)
libcamera: Correct struct forward declarations
Several structures are forward-declarated as classes. Fix this by using the struct keyword where appropriate, or removing the forward declaration when not needed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/include/camera_sensor.h3
-rw-r--r--src/libcamera/include/pipeline_handler.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/include/camera_sensor.h b/src/libcamera/include/camera_sensor.h
index 7f2f906b..b8234802 100644
--- a/src/libcamera/include/camera_sensor.h
+++ b/src/libcamera/include/camera_sensor.h
@@ -18,7 +18,8 @@ namespace libcamera {
class MediaEntity;
class V4L2Subdevice;
-class V4L2SubdeviceFormat;
+
+struct V4L2SubdeviceFormat;
class CameraSensor : protected Loggable
{
diff --git a/src/libcamera/include/pipeline_handler.h b/src/libcamera/include/pipeline_handler.h
index c3f7d4c2..5830e531 100644
--- a/src/libcamera/include/pipeline_handler.h
+++ b/src/libcamera/include/pipeline_handler.h
@@ -26,7 +26,6 @@ class MediaDevice;
class PipelineHandler;
class Request;
class Stream;
-class StreamConfiguration;
class StreamUsage;
class CameraData