aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/backend/drm/drm.h5
-rw-r--r--include/wlr/backend/drm.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index 4b42aa68..93de4fb8 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -36,6 +36,10 @@ struct wlr_output_state {
uint32_t connector;
char name[16];
+ struct {
+ uint32_t dpms;
+ } props;
+
uint32_t width;
uint32_t height;
@@ -51,6 +55,7 @@ struct wlr_output_state {
};
void wlr_drm_output_cleanup(struct wlr_output_state *output, bool restore);
+void wlr_drm_output_dpms(int fd, struct wlr_output_state *output, bool screen_on);
void wlr_drm_scan_connectors(struct wlr_backend_state *state);
int wlr_drm_event(int fd, uint32_t mask, void *data);
diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h
index 2d9bf879..c76d280a 100644
--- a/include/wlr/backend/drm.h
+++ b/include/wlr/backend/drm.h
@@ -10,6 +10,8 @@
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);
+
void wlr_drm_output_begin(struct wlr_output *out);
void wlr_drm_output_end(struct wlr_output *out);