diff options
author | Simon Ser <contact@emersion.fr> | 2021-10-22 23:10:47 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-10-23 00:49:24 +0200 |
commit | fb393ddf84dd5ad14c00afaa25ee81bc5b8eef14 (patch) | |
tree | dbdbf6c94da832680045992cd5a4fbb734a71674 /include | |
parent | a4ccca08341e91eee7fd2ae2658501b031d75445 (diff) |
output: split into multiple files
This organizes the wlr_output implementation into separate files.
This avoids having a single mega-file with lots of unrelated parts
and makes it more obvious what the interactions between all the
parts are.
No functional changes, just moving code around.
Diffstat (limited to 'include')
-rw-r--r-- | include/types/wlr_output.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/types/wlr_output.h b/include/types/wlr_output.h new file mode 100644 index 00000000..cde64e3a --- /dev/null +++ b/include/types/wlr_output.h @@ -0,0 +1,15 @@ +#ifndef TYPES_WLR_OUTPUT_H +#define TYPES_WLR_OUTPUT_H + +#include <wlr/render/drm_format_set.h> +#include <wlr/types/wlr_output.h> + +void output_pending_resolution(struct wlr_output *output, int *width, + int *height); + +struct wlr_drm_format *output_pick_format(struct wlr_output *output, + const struct wlr_drm_format_set *display_formats); +void output_clear_back_buffer(struct wlr_output *output); +bool output_ensure_buffer(struct wlr_output *output); + +#endif |