From 31a7378c879a09e88c8908c6743c9a120c66a3c5 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 10 Jan 2025 04:30:03 +0200 Subject: libcamera: pipeline_handler: Enable silent configuration file lookup The PipelineHandler::configurationFile() function prints an error message when no configuration file is found. It can be useful for pipeline handlers to silence the lookup operation and handle errors themselves. Add a silent parameter to the function to enable this. Signed-off-by: Laurent Pinchart Tested-by: Julien Vuillaumier Reviewed-by: Kieran Bingham --- include/libcamera/internal/pipeline_handler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libcamera/internal/pipeline_handler.h b/include/libcamera/internal/pipeline_handler.h index fb28a18d..972a2fa6 100644 --- a/include/libcamera/internal/pipeline_handler.h +++ b/include/libcamera/internal/pipeline_handler.h @@ -63,7 +63,8 @@ public: void cancelRequest(Request *request); std::string configurationFile(const std::string &subdir, - const std::string &name) const; + const std::string &name, + bool silent = false) const; const char *name() const { return name_; } -- cgit v1.2.1