diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/drm/backend.h | 3 | ||||
-rw-r--r-- | include/backend/drm/drm.h | 2 | ||||
-rw-r--r-- | include/session/interface.h | 6 | ||||
-rw-r--r-- | include/wlr/session.h | 9 |
4 files changed, 14 insertions, 6 deletions
diff --git a/include/backend/drm/backend.h b/include/backend/drm/backend.h index 0c725ccb..4df86e21 100644 --- a/include/backend/drm/backend.h +++ b/include/backend/drm/backend.h @@ -23,6 +23,9 @@ struct wlr_backend_state { struct wlr_backend *backend; struct wl_event_source *drm_event; + struct wl_listener device_paused; + struct wl_listener device_resumed; + uint32_t taken_crtcs; list_t *outputs; diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 93de4fb8..6c60e2b6 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -60,4 +60,6 @@ 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); +void wlr_drm_output_draw_blank(struct wlr_output_state *output); + #endif diff --git a/include/session/interface.h b/include/session/interface.h index 68754280..7345c4cf 100644 --- a/include/session/interface.h +++ b/include/session/interface.h @@ -1,7 +1,7 @@ #ifndef WLR_SESSION_INTERFACE_H #define WLR_SESSION_INTERFACE_H -struct wlr_session; +#include <wlr/session.h> struct session_interface { struct wlr_session *(*start)(struct wl_display *disp); @@ -12,10 +12,6 @@ struct session_interface { bool (*change_vt)(struct wlr_session *session, int vt); }; -struct wlr_session { - struct session_interface iface; -}; - extern const struct session_interface session_logind_iface; extern const struct session_interface session_direct_iface; diff --git a/include/wlr/session.h b/include/wlr/session.h index 36521a73..4dfb026c 100644 --- a/include/wlr/session.h +++ b/include/wlr/session.h @@ -3,7 +3,14 @@ #include <wayland-server.h> -struct wlr_session; +struct session_interface; + +struct wlr_session { + const struct session_interface *iface; + + struct wl_signal device_paused; + struct wl_signal device_resumed; +}; struct wlr_session *wlr_session_start(struct wl_display *disp); void wlr_session_finish(struct wlr_session *session); |