aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamma.c')
-rw-r--r--src/gamma.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gamma.c b/src/gamma.c
index 628105b..5b64f8c 100644
--- a/src/gamma.c
+++ b/src/gamma.c
@@ -1,4 +1,5 @@
-/* redshift-ng - Automatically adjust display colour temperature according the Sun
+/*-
+ * redshift-ng - Automatically adjust display colour temperature according the Sun
*
* Copyright (c) 2009-2018 Jon Lund Steffensen <jonlst@gmail.com>
* Copyright (c) 2014-2016, 2025 Mattias Andrée <m@maandree.se>
@@ -43,6 +44,15 @@ const struct gamma_method *gamma_methods[] = {
};
+/**
+ * Attempt to start a specific adjustment method
+ *
+ * @param method The adjustment method
+ * @param state_out Output parameter for the adjustment method state
+ * @param config Loaded information file
+ * @param args `NULL` or option part of the command line argument for the adjustment method
+ * @return 0 on success, -1 on failure
+ */
static int
try_start(const struct gamma_method *method, GAMMA_STATE **state_out, struct config_ini_state *config, char *args)
{