Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
output: split into multiple files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emersion authored and kennylevinsen committed Oct 22, 2021
1 parent a4ccca0 commit fb393dd
Show file tree
Hide file tree
Showing 7 changed files with 1,716 additions and 1,698 deletions.
15 changes: 15 additions & 0 deletions include/types/wlr_output.h
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion types/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ wlr_files += files(
'data_device/wlr_data_offer.c',
'data_device/wlr_data_source.c',
'data_device/wlr_drag.c',
'output/cursor.c',
'output/output.c',
'output/render.c',
'output/transform.c',
'scene/subsurface_tree.c',
'scene/wlr_scene.c',
'scene/output_layout.c',
Expand Down Expand Up @@ -43,7 +47,6 @@ wlr_files += files(
'wlr_output_layout.c',
'wlr_output_management_v1.c',
'wlr_output_power_management_v1.c',
'wlr_output.c',
'wlr_pointer_constraints_v1.c',
'wlr_pointer_gestures_v1.c',
'wlr_pointer.c',
Expand Down
Loading

0 comments on commit fb393dd

Please sign in to comment.