Introduce noop backend

The noop backend is similar to headless, but it doesn't contain a
renderer. It can be used as a place to stash views for when there's no
physical outputs connected.
This commit is contained in:
Ryan Dwyer 2019-01-17 20:13:55 +10:00
parent 10b1de6e71
commit 9b4be5a595
7 changed files with 218 additions and 1 deletions

24
include/backend/noop.h Normal file
View file

@ -0,0 +1,24 @@
#ifndef BACKEND_NOOP_H
#define BACKEND_NOOP_H
#include <wlr/backend/noop.h>
#include <wlr/backend/interface.h>
struct wlr_noop_backend {
struct wlr_backend backend;
struct wl_display *display;
struct wl_list outputs;
bool started;
};
struct wlr_noop_output {
struct wlr_output wlr_output;
struct wlr_noop_backend *backend;
struct wl_list link;
};
struct wlr_noop_backend *noop_backend_from_backend(
struct wlr_backend *wlr_backend);
#endif