libcamera: pipeline_handler: Make registerType() private

The PipelineHandlerFactory::registerType() function is called by the
PipelineHandlerFactory class only. Make it private.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Laurent Pinchart 2022-10-03 22:55:11 +03:00
parent 7e38ae8a1e
commit 5a867f312c

View file

@ -108,10 +108,11 @@ public:
const std::string &name() const { return name_; }
static void registerType(PipelineHandlerFactory *factory);
static std::vector<PipelineHandlerFactory *> &factories();
private:
static void registerType(PipelineHandlerFactory *factory);
virtual PipelineHandler *createInstance(CameraManager *manager) const = 0;
std::string name_;