2020-03-28 10:12:47 -07:00
|
|
|
#ifndef RIVER_RENDER_H
|
|
|
|
#define RIVER_RENDER_H
|
2020-03-21 08:55:42 -07:00
|
|
|
|
|
|
|
#include <wlr/backend/session.h>
|
2020-03-28 03:42:58 -07:00
|
|
|
/*
|
|
|
|
* This header is needed since zig cannot yet translate flexible arrays.
|
|
|
|
* See https://github.com/ziglang/zig/issues/4775
|
|
|
|
*/
|
2020-03-21 08:55:42 -07:00
|
|
|
|
|
|
|
struct wlr_backend_impl;
|
|
|
|
|
|
|
|
struct wlr_backend {
|
|
|
|
const struct wlr_backend_impl *impl;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
/** Raised when destroyed, passed the wlr_backend reference */
|
|
|
|
struct wl_signal destroy;
|
|
|
|
/** Raised when new inputs are added, passed the wlr_input_device */
|
|
|
|
struct wl_signal new_input;
|
|
|
|
/** Raised when new outputs are added, passed the wlr_output */
|
|
|
|
struct wl_signal new_output;
|
|
|
|
} events;
|
|
|
|
};
|
|
|
|
|
2020-03-28 03:42:58 -07:00
|
|
|
struct wlr_backend *river_wlr_backend_autocreate(struct wl_display *display);
|
|
|
|
struct wlr_renderer *river_wlr_backend_get_renderer(struct wlr_backend *backend);
|
|
|
|
bool river_wlr_backend_start(struct wlr_backend *backend);
|
2020-04-06 13:23:30 -07:00
|
|
|
bool river_wlr_backend_is_multi(struct wlr_backend *backend);
|
|
|
|
struct wlr_session *river_wlr_backend_get_session(struct wlr_backend *backend);
|
2020-03-21 08:55:42 -07:00
|
|
|
|
|
|
|
#endif
|