mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
output-management-v1: add wlr_output_configuration_v1_build_state()
A convenience function to make it easier for compositors to implement the protocol.
This commit is contained in:
parent
917c650903
commit
2ff3479558
2 changed files with 35 additions and 0 deletions
|
|
@ -154,4 +154,16 @@ void wlr_output_head_v1_state_apply(
|
|||
const struct wlr_output_head_v1_state *head_state,
|
||||
struct wlr_output_state *output_state);
|
||||
|
||||
/**
|
||||
* Build an array of struct wlr_output_state reflecting the new configuration.
|
||||
*
|
||||
* The states_len pointer will be populated with the number of elements in the
|
||||
* array. The caller is responsible for freeing the array.
|
||||
*
|
||||
* The returned array can be passed to wlr_backend_test() and
|
||||
* wlr_backend_commit().
|
||||
*/
|
||||
struct wlr_backend_output_state *wlr_output_configuration_v1_build_state(
|
||||
const struct wlr_output_configuration_v1 *config, size_t *states_len);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue