summaryrefslogtreecommitdiff
path: root/kms++/src/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'kms++/src/helpers.h')
-rw-r--r--kms++/src/helpers.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/kms++/src/helpers.h b/kms++/src/helpers.h
new file mode 100644
index 0000000..4eb597c
--- /dev/null
+++ b/kms++/src/helpers.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <xf86drm.h>
+#include <xf86drmMode.h>
+
+namespace kms
+{
+struct Videomode;
+
+Videomode drm_mode_to_video_mode(const drmModeModeInfo& drmmode);
+drmModeModeInfo video_mode_to_drm_mode(const Videomode& mode);
+}