aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index 2345d5b..b7cf872 100644
--- a/src/common.h
+++ b/src/common.h
@@ -404,6 +404,11 @@ enum scheme_type {
STATIC_SCHEME
};
+/**
+ * Scheme has not been specified
+ */
+#define UNSPECIFIED_SCHEME STATIC_SCHEME
+
/**
* The sources where an setting was been loaded from
@@ -785,6 +790,12 @@ struct settings {
const char *config_file;
/**
+ * Scheme type to use as according the the command line
+ * options, `UNSPECIFIED_SCHEME` if not unspecified
+ */
+ enum scheme_type scheme_type;
+
+ /**
* Whether the program should, if ran in one-shot mode,
* pause after applying the effect and reset them when
* killed
@@ -833,17 +844,21 @@ struct settings {
* The lowest solar elevation, in degrees, at daytime,
* when using solar scheme
*
- * This represents the "elevation-high" setting
+ * This represents the "elevation-high" setting and the
+ * left value of the -e option
*/
- struct setting_f elevation_high; /* TODO no cmdline option */
+ struct setting_f elevation_high;
/**
* The highest solar elevation, in degrees, at nighttime,
* when using solar scheme
*
* This represents the "elevation-low" setting
+ *
+ * This represents the "elevation-low" setting and the
+ * right value of the -e option
*/
- struct setting_f elevation_low; /* TODO no cmdline option */
+ struct setting_f elevation_low;
/**
* The wall-clock time that marks the end of nighttime,