wlroots/include/backend/drm/backend.h

48 lines
830 B
C
Raw Normal View History

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>
#include <wayland-server.h>
2017-05-01 05:49:18 +00:00
2017-05-02 02:34:33 +00:00
#include <wlr/common/list.h>
2017-05-01 05:49:18 +00:00
#include "session.h"
#include "udev.h"
#include "event.h"
#include "drm.h"
struct wlr_drm_backend {
int fd;
bool paused;
struct wl_event_loop *event_loop;
struct {
struct wl_event_source *drm;
struct wl_event_source *udev;
} event_src;
struct {
struct wl_signal display_add;
struct wl_signal display_rem;
struct wl_signal display_render;
} signals;
2017-05-01 05:49:18 +00:00
2017-05-02 02:34:33 +00:00
list_t *displays;
2017-05-01 05:49:18 +00:00
uint32_t taken_crtcs;
struct wlr_drm_renderer renderer;
struct wlr_session session;
struct wlr_udev udev;
};
struct wlr_drm_backend *wlr_drm_backend_init(void);
void wlr_drm_backend_free(struct wlr_drm_backend *backend);
#endif