aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 7429f5f..5d23f93 100644
--- a/src/util.h
+++ b/src/util.h
@@ -19,7 +19,7 @@
#define UTIL_H
-#include <stddef.h>
+#include "types/output.h"
@@ -101,6 +101,16 @@ void msleep(int ms);
GCC_ONLY(__attribute__((pure, nonnull)))
int verify_utf8(const char* restrict string, int allow_modified_nul);
+/**
+ * Make identity mapping ramps
+ *
+ * @param ramps Output parameter for the ramps
+ * @param output The output for which the ramps shall be configured
+ * @return Zero on success, -1 on error
+ */
+GCC_ONLY(__attribute__((nonnull)))
+int make_plain_ramps(union gamma_ramps* restrict ramps, struct output* restrict output);
+
#endif