aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-17 21:20:14 +0200
committerMattias Andrée <maandree@kth.se>2016-07-17 21:20:14 +0200
commit5b804da16b09f97ad0c944daf35900a796f3bc66 (patch)
tree6da26f1f2707283a3fd00ac8effecde27addd345 /src/util.h
parentEven more refactoring (diff)
downloadcoopgammad-5b804da16b09f97ad0c944daf35900a796f3bc66.tar.gz
coopgammad-5b804da16b09f97ad0c944daf35900a796f3bc66.tar.bz2
coopgammad-5b804da16b09f97ad0c944daf35900a796f3bc66.tar.xz
When reconnecting, reapply the ramps
Signed-off-by: Mattias Andrée <maandree@kth.se>
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