From 49771c6dccb28228839b5e88ada36bd6646bf933 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 6 Jul 2020 13:59:19 +0300 Subject: libcamera: ipa_proxy: Allow stop() on a stopped IPA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make error handling easier in callers, allow the stop() function to be called when the proxy is already stopped, or not started yet. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Niklas Söderlund --- src/libcamera/ipa_proxy.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libcamera/ipa_proxy.cpp') diff --git a/src/libcamera/ipa_proxy.cpp b/src/libcamera/ipa_proxy.cpp index 23be24ad..ff4d7fd1 100644 --- a/src/libcamera/ipa_proxy.cpp +++ b/src/libcamera/ipa_proxy.cpp @@ -145,6 +145,16 @@ std::string IPAProxy::configurationFile(const std::string &name) const return std::string(); } +/** + * \fn IPAProxy::stop() + * \brief Stop the IPA proxy + * + * This function stops the IPA and releases all the resources acquired by the + * proxy in start(). Calling stop() when the IPA proxy hasn't been started or + * has already been stopped is valid, the proxy shall treat this as a no-op and + * shall not forward the call to the IPA. + */ + /** * \brief Find a valid full path for a proxy worker for a given executable name * \param[in] file File name of proxy worker executable -- cgit v1.2.1