aboutsummaryrefslogtreecommitdiff
path: root/include/backend/noop.h
blob: 5a8ee67797f74010c4ecc41f6032a2e321694a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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;
	size_t last_output_num;
	bool started;

	struct wl_listener display_destroy;
};

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