aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-07-03 17:52:13 +0200
committerGuido Günther <agx@sigxcpu.org>2018-07-07 17:31:42 +0200
commit709d7dd7227f1ff86b440425721b219e63da7a2d (patch)
tree22d84b156ca7d6d919b2b80b7b2eaf81296c3b93 /include
parent8d72090afef998f96f243ac83e23b1bdc30667d1 (diff)
rootston: Handle modeline parameter
This allows to pass custom modes.
Diffstat (limited to 'include')
-rw-r--r--include/rootston/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rootston/config.h b/include/rootston/config.h
index 97a8baab..86699c6a 100644
--- a/include/rootston/config.h
+++ b/include/rootston/config.h
@@ -1,11 +1,17 @@
#ifndef ROOTSTON_CONFIG_H
#define ROOTSTON_CONFIG_H
+#include <xf86drmMode.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_output_layout.h>
#define ROOTS_CONFIG_DEFAULT_SEAT_NAME "seat0"
+struct roots_output_mode_config {
+ drmModeModeInfo info;
+ struct wl_list link;
+};
+
struct roots_output_config {
char *name;
bool enable;
@@ -17,6 +23,7 @@ struct roots_output_config {
int width, height;
float refresh_rate;
} mode;
+ struct wl_list modes;
};
struct roots_device_config {