Initialize headless backend

This commit is contained in:
emersion 2017-12-17 12:56:42 +01:00
parent 3363ea869a
commit 3970264ccf
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 282 additions and 1 deletions

View 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