diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-10-21 17:37:25 +1300 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-10-22 10:36:07 +1300 |
commit | 822a9f65a4f965a7561de287013c2a5c159453ab (patch) | |
tree | 21093ceecc00b080f4285774848ed2ebf2ccf186 /include/wlr/interfaces | |
parent | 4ea84c5765b138153aa313f23288935192b75c42 (diff) |
Add pointer to backend inside wlr_output
Diffstat (limited to 'include/wlr/interfaces')
-rw-r--r-- | include/wlr/interfaces/wlr_output.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index b7927569..17dd5538 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -1,8 +1,9 @@ #ifndef WLR_INTERFACES_WLR_OUTPUT_H #define WLR_INTERFACES_WLR_OUTPUT_H -#include <wlr/types/wlr_output.h> #include <stdbool.h> +#include <wlr/types/wlr_output.h> +#include <wlr/backend.h> struct wlr_output_impl { void (*enable)(struct wlr_output *output, bool enable); @@ -21,7 +22,8 @@ struct wlr_output_impl { uint16_t (*get_gamma_size)(struct wlr_output *output); }; -void wlr_output_init(struct wlr_output *output, const struct wlr_output_impl *impl); +void wlr_output_init(struct wlr_output *output, struct wlr_backend *backend, + const struct wlr_output_impl *impl); void wlr_output_free(struct wlr_output *output); void wlr_output_update_matrix(struct wlr_output *output); struct wl_global *wlr_output_create_global( |