1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-10-30 23:46:46 -04:00

backend: add version for querying the backend's version

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-05-23 15:19:19 +01:00
parent 5c1b0ba7a1
commit 21fe5983e0
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4
5 changed files with 40 additions and 0 deletions

View file

@ -418,6 +418,10 @@ struct backend_operations {
/// @return a bitmask of `enum backend_quirk`.
uint32_t (*quirks)(struct backend_base *backend_data) __attribute__((nonnull(1)));
/// Get the version of the backend
void (*version)(struct backend_base *backend_data, uint64_t *major, uint64_t *minor)
__attribute__((nonnull(1, 2, 3)));
/// Check if an optional image format is supported by the backend.
bool (*is_format_supported)(struct backend_base *backend_data,
enum backend_image_format format)