mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Generalize output handling
This commit is contained in:
parent
15b1ce9e6c
commit
00931f2f8f
16 changed files with 407 additions and 444 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue