diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-17 21:20:14 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-17 21:20:14 +0200 |
commit | 5b804da16b09f97ad0c944daf35900a796f3bc66 (patch) | |
tree | 6da26f1f2707283a3fd00ac8effecde27addd345 /src/util.h | |
parent | Even more refactoring (diff) | |
download | coopgammad-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 '')
-rw-r--r-- | src/util.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |