diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-05-10 10:37:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-10 10:37:29 -0400 |
commit | c436e76240ab190a07afcd961ca2dd279af72968 (patch) | |
tree | aab4f835e5341cd44b5937e0cd0dbb012c2369e8 /include/backend/drm/backend.h | |
parent | 1aed98730194aa80b5954ae1d6370162041b56e2 (diff) | |
parent | 42878b45a1dba582feb5ec75762d66ede51fdc98 (diff) |
Merge pull request #2 from ascent12/master
DRM backend + Session interface + EGL
Diffstat (limited to 'include/backend/drm/backend.h')
-rw-r--r-- | include/backend/drm/backend.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/backend/drm/backend.h b/include/backend/drm/backend.h new file mode 100644 index 00000000..0c725ccb --- /dev/null +++ b/include/backend/drm/backend.h @@ -0,0 +1,34 @@ +#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> + +#include <wlr/session.h> +#include <wlr/common/list.h> +#include <wlr/backend/drm.h> + +#include "backend.h" +#include "udev.h" +#include "event.h" +#include "drm.h" + +struct wlr_backend_state { + int fd; + + struct wlr_backend *backend; + struct wl_event_source *drm_event; + + uint32_t taken_crtcs; + list_t *outputs; + + struct wlr_drm_renderer renderer; + struct wlr_session *session; + struct wlr_udev udev; +}; + +#endif |