aboutsummaryrefslogtreecommitdiffstats
path: root/src/servers/crtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/servers/crtc.h')
-rw-r--r--src/servers/crtc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/servers/crtc.h b/src/servers/crtc.h
index 4c96045..1670ee2 100644
--- a/src/servers/crtc.h
+++ b/src/servers/crtc.h
@@ -19,6 +19,8 @@
#define SERVERS_CRTC_H
+#include "../types/output.h"
+
#include <libgamma.h>
@@ -62,6 +64,15 @@ char* get_crtc_name(const libgamma_crtc_information_t* restrict info,
*/
int initialise_crtcs(void);
+/**
+ * Merge the new state with an old state
+ *
+ * @param old_outputs The old `outputs`
+ * @param old_outputs_n The old `outputs_n`
+ * @return Zero on success, -1 on error
+ */
+int merge_state(struct output* restrict old_outputs, size_t old_outputs_n);
+
#endif