diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-26 17:26:29 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-26 19:07:45 +0300 |
commit | 152147c539d8e0e920547167c462c54d744601f7 (patch) | |
tree | 4fa5ec8597e8518dc47cc4e0b9d0fdc7b3120607 | |
parent | ab0188fc8bbb6f397ac3aa11c9377662b7bd88b0 (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>
-rw-r--r-- | include/libcamera/camera.h | 3 | ||||
-rw-r--r-- | src/libcamera/include/camera_sensor.h | 3 | ||||
-rw-r--r-- | src/libcamera/include/pipeline_handler.h | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/include/libcamera/camera.h b/include/libcamera/camera.h index b2dafda3..777b7e4d 100644 --- a/include/libcamera/camera.h +++ b/include/libcamera/camera.h @@ -21,9 +21,10 @@ class Buffer; class PipelineHandler; class Request; class Stream; -class StreamConfiguration; class StreamUsage; +struct StreamConfiguration; + class CameraConfiguration { public: 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 |