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);
|
|
|
|
|
2017-06-09 21:31:21 +00:00
|
|
|
struct wlr_keyboard_impl {
|
|
|
|
void (*destroy)(struct wlr_keyboard_state *state);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_keyboard *wlr_keyboard_create(struct wlr_keyboard_impl *impl,
|
|
|
|
struct wlr_keyboard_state *state);
|
|
|
|
void wlr_keyboard_destroy(struct wlr_keyboard *keyboard);
|
|
|
|
|
|
|
|
struct wlr_pointer_impl {
|
|
|
|
void (*destroy)(struct wlr_pointer_state *state);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_pointer *wlr_pointer_create(struct wlr_pointer_impl *impl,
|
|
|
|
struct wlr_pointer_state *state);
|
|
|
|
void wlr_pointer_destroy(struct wlr_pointer *pointer);
|
|
|
|
|
|
|
|
struct wlr_input_device *wlr_input_device_create(
|
|
|
|
enum wlr_input_device_type type, const char *name,
|
|
|
|
int vendor, int product);
|
|
|
|
void wlr_input_device_destroy(struct wlr_input_device *dev);
|
|
|
|
|
2017-05-07 16:26:48 +00:00
|
|
|
#endif
|