mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Generalize output handling
This commit is contained in:
parent
15b1ce9e6c
commit
00931f2f8f
16 changed files with 407 additions and 444 deletions
18
include/wayland.h
Normal file
18
include/wayland.h
Normal file
|
|
@ -0,0 +1,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 (*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
|
||||
Loading…
Add table
Add a link
Reference in a new issue