2017-05-01 05:49:18 +00:00
|
|
|
#ifndef DRM_BACKEND_H
|
|
|
|
#define DRM_BACKEND_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <EGL/egl.h>
|
|
|
|
#include <gbm.h>
|
|
|
|
#include <libudev.h>
|
2017-05-02 02:08:34 +00:00
|
|
|
#include <wayland-server.h>
|
2017-05-01 05:49:18 +00:00
|
|
|
|
2017-05-03 04:23:07 +00:00
|
|
|
#include <wlr/session.h>
|
2017-05-02 02:34:33 +00:00
|
|
|
#include <wlr/common/list.h>
|
2017-05-02 06:13:17 +00:00
|
|
|
#include <wlr/backend/drm.h>
|
2017-05-02 02:34:33 +00:00
|
|
|
|
2017-05-01 05:49:18 +00:00
|
|
|
#include "udev.h"
|
|
|
|
#include "event.h"
|
|
|
|
#include "drm.h"
|
|
|
|
|
|
|
|
struct wlr_drm_backend {
|
|
|
|
int fd;
|
|
|
|
|
2017-05-03 09:28:44 +00:00
|
|
|
struct wl_event_source *drm_event;
|
2017-05-02 02:08:34 +00:00
|
|
|
|
|
|
|
struct {
|
2017-05-03 05:49:03 +00:00
|
|
|
struct wl_signal output_add;
|
|
|
|
struct wl_signal output_rem;
|
|
|
|
struct wl_signal output_render;
|
2017-05-02 02:08:34 +00:00
|
|
|
} signals;
|
2017-05-01 05:49:18 +00:00
|
|
|
|
|
|
|
uint32_t taken_crtcs;
|
2017-05-03 09:28:44 +00:00
|
|
|
list_t *outputs;
|
2017-05-01 05:49:18 +00:00
|
|
|
|
|
|
|
struct wlr_drm_renderer renderer;
|
2017-05-03 04:23:07 +00:00
|
|
|
struct wlr_session *session;
|
2017-05-01 05:49:18 +00:00
|
|
|
struct wlr_udev udev;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|