libcamera: pipeline_handler: Make pipeline-specific data mandatory

Mandate creationg of pipeline-specific data by pipeline handlers. This
allows simplifying the API by passing the pipeline-specific data to the
registerCamera() method and removing the separate setCameraData()
method.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2019-02-28 13:15:09 +02:00
parent 61a62ddbd8
commit b581b9576a
5 changed files with 15 additions and 56 deletions
+2 -2
View File
@@ -63,11 +63,11 @@ public:
virtual int queueRequest(Camera *camera, Request *request) = 0;
protected:
void registerCamera(std::shared_ptr<Camera> camera);
void registerCamera(std::shared_ptr<Camera> camera,
std::unique_ptr<CameraData> data);
void hotplugMediaDevice(MediaDevice *media);
CameraData *cameraData(const Camera *camera);
void setCameraData(const Camera *camera, std::unique_ptr<CameraData> data);
CameraManager *manager_;