diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-01 19:31:55 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-02 01:11:46 +0300 |
commit | 554cbc0fa8984ce7109c3b85d13900a890e8563e (patch) | |
tree | edc92473467045ab0b3d49978f9dfbe5eabb82d6 /src/libcamera/media_device.cpp | |
parent | 4866bf6fe7e080b6b7f0842353d2383a3273f1c5 (diff) |
libcamera: media_device: Expose media device API version number
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/libcamera/media_device.cpp')
-rw-r--r-- | src/libcamera/media_device.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -315,6 +315,15 @@ done: */ /** + * \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 * \return The list of MediaEntities registered in the MediaDevice |