mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-10 13:29:44 -05:00
backend: add wlr_backend_{test,commit}()
This commit is contained in:
parent
fc4996d853
commit
78c76ddd09
5 changed files with 135 additions and 29 deletions
|
|
@ -12,11 +12,17 @@
|
|||
#include <stdbool.h>
|
||||
#include <wlr/backend.h>
|
||||
|
||||
struct wlr_output_state;
|
||||
|
||||
struct wlr_backend_impl {
|
||||
bool (*start)(struct wlr_backend *backend);
|
||||
void (*destroy)(struct wlr_backend *backend);
|
||||
int (*get_drm_fd)(struct wlr_backend *backend);
|
||||
uint32_t (*get_buffer_caps)(struct wlr_backend *backend);
|
||||
bool (*test)(struct wlr_backend *backend,
|
||||
const struct wlr_backend_output_state *states, size_t states_len);
|
||||
bool (*commit)(struct wlr_backend *backend,
|
||||
const struct wlr_backend_output_state *states, size_t states_len);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue