spa: libcamera: expose libcamera version

Expose the libcamera header and library versions in the device properties
similarly to `api.v4l2.cap.version` used by the v4l2 plugin.

The keys are not yet promoted into the public `keys.h` header file.
This commit is contained in:
Barnabás Pőcze 2026-01-03 22:34:40 +01:00 committed by Wim Taymans
parent 6dc55d2cb4
commit 44176d4118
4 changed files with 25 additions and 1 deletions

View file

@ -1608,6 +1608,8 @@ void emit_node_info(struct impl *impl, bool full)
{ SPA_KEY_MEDIA_CLASS, "Video/Source" },
{ SPA_KEY_MEDIA_ROLE, "Camera" },
{ SPA_KEY_NODE_DRIVER, "true" },
{ KEY_VERSION_LIBRARY, libcamera_library_version() },
{ KEY_VERSION_HEADER, libcamera_header_version() },
};
uint64_t old = full ? impl->info.change_mask : 0;
if (full)