2017-05-07 16:26:48 +00:00
|
|
|
#ifndef _WLR_WAYLAND_INTERNAL_H
|
|
|
|
#define _WLR_WAYLAND_INTERNAL_H
|
|
|
|
|
|
|
|
#include <wayland-server.h>
|
2017-05-31 20:24:32 +00:00
|
|
|
#include <wlr/types.h>
|
2017-05-07 16:26:48 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct wlr_output_impl {
|
2017-05-31 19:38:26 +00:00
|
|
|
void (*enable)(struct wlr_output_state *state, bool enable);
|
2017-06-06 15:48:30 +00:00
|
|
|
bool (*set_mode)(struct wlr_output_state *state,
|
|
|
|
struct wlr_output_mode *mode);
|
|
|
|
void (*transform)(struct wlr_output_state *state,
|
|
|
|
enum wl_output_transform transform);
|
2017-05-07 16:26:48 +00:00
|
|
|
void (*destroy)(struct wlr_output_state *state);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_output *wlr_output_create(struct wlr_output_impl *impl,
|
|
|
|
struct wlr_output_state *state);
|
|
|
|
void wlr_output_free(struct wlr_output *output);
|
|
|
|
|
|
|
|
#endif
|