aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-server/server.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-17 16:42:49 +0200
committerMattias Andrée <maandree@kth.se>2016-07-17 16:42:49 +0200
commit671efca852ff4aefe653579136ee9b43dbc88324 (patch)
tree2b4739606b6b82a4256fbf41668cc7c556748bdf /src/gamma-server/server.h
parentRestructure (diff)
downloadcoopgammad-671efca852ff4aefe653579136ee9b43dbc88324.tar.gz
coopgammad-671efca852ff4aefe653579136ee9b43dbc88324.tar.bz2
coopgammad-671efca852ff4aefe653579136ee9b43dbc88324.tar.xz
Continue restructure
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/gamma-server/server.h')
-rw-r--r--src/gamma-server/server.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gamma-server/server.h b/src/gamma-server/server.h
index b84a836..96f47b8 100644
--- a/src/gamma-server/server.h
+++ b/src/gamma-server/server.h
@@ -56,6 +56,25 @@ int handle_get_gamma_info(size_t conn, const char* restrict message_id, const ch
GCC_ONLY(__attribute__((nonnull)))
void set_gamma(const struct output* restrict output, const union gamma_ramps* restrict ramps);
+
+/**
+ * Store all current gamma ramps
+ *
+ * @return Zero on success, -1 on error
+ */
+int initialise_gamma_info(void);
+
+/**
+ * Store all current gamma ramps
+ */
+void store_gamma(void);
+
+/**
+ * Restore all gamma ramps
+ */
+void restore_gamma(void);
+
+
/**
* Disconnect from the site
*