mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-11 13:29:45 -05:00
Generalize DPMS, remove DRM refs from example
This commit is contained in:
parent
03c9b46034
commit
fee409bd0a
10 changed files with 65 additions and 50 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define _WLR_BACKEND_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/session.h>
|
||||
|
||||
struct wlr_backend_impl;
|
||||
struct wlr_backend_state;
|
||||
|
|
@ -22,7 +23,8 @@ struct wlr_backend {
|
|||
} events;
|
||||
};
|
||||
|
||||
struct wlr_backend *wlr_backend_autocreate();
|
||||
struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
|
||||
struct wlr_session *session);
|
||||
bool wlr_backend_init(struct wlr_backend *backend);
|
||||
void wlr_backend_destroy(struct wlr_backend *backend);
|
||||
|
||||
|
|
|
|||
|
|
@ -4,12 +4,8 @@
|
|||
#include <wayland-server.h>
|
||||
#include <wlr/session.h>
|
||||
#include <wlr/backend.h>
|
||||
#include <xf86drmMode.h> // drmModeModeInfo
|
||||
#include <wlr/wayland.h>
|
||||
|
||||
struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
|
||||
struct wlr_session *session);
|
||||
|
||||
void wlr_drm_backend_dpms(struct wlr_backend *backend, bool screen_on);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -40,5 +40,6 @@ struct wlr_output {
|
|||
};
|
||||
|
||||
bool wlr_output_set_mode(struct wlr_output *output, struct wlr_output_mode *mode);
|
||||
void wlr_output_enable(struct wlr_output *output, bool enable);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue