aboutsummaryrefslogtreecommitdiff
path: root/include/wayland.h
blob: ca79fe33eae8aa74b626ddc094602fd97a61b69b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _WLR_WAYLAND_INTERNAL_H
#define _WLR_WAYLAND_INTERNAL_H

#include <wayland-server.h>
#include <wlr/wayland.h>
#include <stdbool.h>

struct wlr_output_impl {
	bool (*set_mode)(struct wlr_output_state *state, struct wlr_output_mode *mode);
	void (*enable)(struct wlr_output_state *state, bool enable);
	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