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:
parent
5c1b0ba7a1
commit
21fe5983e0
5 changed files with 40 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue