2017-05-01 05:20:48 +02:00
|
|
|
#ifndef EVENT_H
|
|
|
|
#define EVENT_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2017-05-01 07:49:18 +02:00
|
|
|
#include "drm.h"
|
2017-05-01 05:20:48 +02:00
|
|
|
|
2017-05-01 07:49:18 +02:00
|
|
|
enum wlr_drm_event_type {
|
|
|
|
DRM_EV_NONE,
|
|
|
|
DRM_EV_RENDER,
|
|
|
|
DRM_EV_DISPLAY_REM,
|
|
|
|
DRM_EV_DISPLAY_ADD,
|
2017-05-01 05:20:48 +02:00
|
|
|
};
|
|
|
|
|
2017-05-01 07:49:18 +02:00
|
|
|
struct wlr_drm_event {
|
|
|
|
enum wlr_drm_event_type type;
|
|
|
|
struct wlr_drm_display *display;
|
2017-05-01 05:20:48 +02:00
|
|
|
};
|
|
|
|
|
2017-05-01 07:49:18 +02:00
|
|
|
struct wlr_drm_backend;
|
|
|
|
bool wlr_drm_get_event(struct wlr_drm_backend *backend,
|
|
|
|
struct wlr_drm_event *restrict ret);
|
|
|
|
bool wlr_drm_add_event(struct wlr_drm_backend *backend,
|
|
|
|
struct wlr_drm_display *disp, enum wlr_drm_event_type type);
|
2017-05-01 05:20:48 +02:00
|
|
|
|
|
|
|
#endif
|