mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Initialize headless backend
This commit is contained in:
parent
3363ea869a
commit
3970264ccf
6 changed files with 282 additions and 1 deletions
25
include/backend/headless.h
Normal file
25
include/backend/headless.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef BACKEND_HEADLESS_H
|
||||
#define BACKEND_HEADLESS_H
|
||||
|
||||
#include <wlr/backend/interface.h>
|
||||
#include <wlr/backend/headless.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
|
||||
struct wlr_headless_backend {
|
||||
struct wlr_backend backend;
|
||||
struct wlr_egl egl;
|
||||
struct wl_display *display;
|
||||
struct wl_list outputs;
|
||||
struct wl_listener display_destroy;
|
||||
};
|
||||
|
||||
struct wlr_headless_backend_output {
|
||||
struct wlr_output wlr_output;
|
||||
|
||||
struct wlr_headless_backend *backend;
|
||||
struct wl_list link;
|
||||
|
||||
void *egl_surface;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue