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