From 554cbc0fa8984ce7109c3b85d13900a890e8563e Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 1 May 2020 19:31:55 +0300 Subject: libcamera: media_device: Expose media device API version number MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a MediaDevice::version() function to expose the media device API version number. This can be useful to support driver API changes in pipeline handlers. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/libcamera/media_device.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/libcamera/media_device.cpp') diff --git a/src/libcamera/media_device.cpp b/src/libcamera/media_device.cpp index 0d6b5efd..d4e7e100 100644 --- a/src/libcamera/media_device.cpp +++ b/src/libcamera/media_device.cpp @@ -314,6 +314,15 @@ done: * \return The MediaDevice model name */ +/** + * \fn MediaDevice::version() + * \brief Retrieve the media device API version + * + * The version is formatted with the KERNEL_VERSION() macro. + * + * \return The MediaDevice API version + */ + /** * \fn MediaDevice::entities() * \brief Retrieve the list of entities in the media graph -- cgit v1.2.1