2023-07-11 15:55:43 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include <wayland-client.h>
|
|
|
|
|
2023-07-13 12:22:52 +00:00
|
|
|
#include "wlr-output-management-unstable-v1.h"
|
2023-07-11 15:55:43 +00:00
|
|
|
|
2023-08-27 21:35:12 +00:00
|
|
|
struct convertablet_wlr_head {
|
2023-07-11 15:55:43 +00:00
|
|
|
struct zwlr_output_head_v1* wlr_head;
|
|
|
|
char* name;
|
|
|
|
struct wl_list link;
|
|
|
|
};
|
|
|
|
|
2023-08-27 21:35:12 +00:00
|
|
|
struct convertablet_wlr_state {
|
2023-07-11 15:55:43 +00:00
|
|
|
bool is_working;
|
|
|
|
|
|
|
|
struct zwlr_output_manager_v1* output_manager;
|
|
|
|
struct wl_display* display;
|
|
|
|
uint32_t serial;
|
|
|
|
|
|
|
|
struct wl_list heads; // struct miix_wlr_head
|
|
|
|
};
|
|
|
|
|
2023-08-27 21:35:12 +00:00
|
|
|
struct convertablet_wlr_state* convertablet_wlr_init();
|
2023-07-11 15:55:43 +00:00
|
|
|
|
2023-08-27 21:35:12 +00:00
|
|
|
char** convertablet_wlr_get_head_names(struct convertablet_wlr_state const*);
|
|
|
|
void convertablet_wlr_head_set_transform(struct convertablet_wlr_state*,
|
|
|
|
char const* const head_name,
|
|
|
|
enum wl_output_transform);
|
2023-07-11 15:55:43 +00:00
|
|
|
|
2023-08-27 21:35:12 +00:00
|
|
|
void convertablet_wlr_cleanup(struct convertablet_wlr_state*);
|