diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-05-07 12:26:48 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-05-07 12:26:48 -0400 |
commit | 00931f2f8fa4098c5e70b5ececd6d2dcb8786f90 (patch) | |
tree | 45d3e79648d601161f483d3f66ac960851ba233f /include/wlr/backend/drm.h | |
parent | 15b1ce9e6ced22a90ab0df7a6b86c6d35c40ca93 (diff) |
Generalize output handling
Diffstat (limited to 'include/wlr/backend/drm.h')
-rw-r--r-- | include/wlr/backend/drm.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h index 5db9b35c..2d9bf879 100644 --- a/include/wlr/backend/drm.h +++ b/include/wlr/backend/drm.h @@ -5,26 +5,12 @@ #include <wlr/session.h> #include <wlr/backend.h> #include <xf86drmMode.h> // drmModeModeInfo - -struct wlr_drm_backend; -struct wlr_drm_output; - -struct wlr_drm_mode { - uint16_t width; - uint16_t height; - uint32_t rate; - drmModeModeInfo mode; -}; +#include <wlr/wayland.h> struct wlr_backend *wlr_drm_backend_create(struct wl_display *display, struct wlr_session *session); -const char *wlr_drm_output_get_name(struct wlr_drm_output *out); - -struct wlr_drm_mode *wlr_drm_output_get_modes(struct wlr_drm_output *out, size_t *count); -bool wlr_drm_output_modeset(struct wlr_drm_output *out, struct wlr_drm_mode *mode); - -void wlr_drm_output_begin(struct wlr_drm_output *out); -void wlr_drm_output_end(struct wlr_drm_output *out); +void wlr_drm_output_begin(struct wlr_output *out); +void wlr_drm_output_end(struct wlr_output *out); #endif |