aboutsummaryrefslogtreecommitdiffstats
path: root/src/solar.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-05 19:26:58 +0100
committerMattias Andrée <m@maandree.se>2025-03-05 19:26:58 +0100
commitb42c9662303d1a33ebe038d1895c08945cdbd40f (patch)
treec05b169b1d28e8d42b111290f9181d2cbad1138b /src/solar.h
parentMerge redshift.h into common.h (diff)
downloadredshift-ng-b42c9662303d1a33ebe038d1895c08945cdbd40f.tar.gz
redshift-ng-b42c9662303d1a33ebe038d1895c08945cdbd40f.tar.bz2
redshift-ng-b42c9662303d1a33ebe038d1895c08945cdbd40f.tar.xz
Cleanup and style update (avoid typedef)
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/solar.h')
-rw-r--r--src/solar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solar.h b/src/solar.h
index 389484e..56f7041 100644
--- a/src/solar.h
+++ b/src/solar.h
@@ -28,7 +28,7 @@
#define SOLAR_CIVIL_TWILIGHT_ELEV -6.0
#define SOLAR_DAYTIME_ELEV (0.0 - SOLAR_ATM_REFRAC)
-typedef enum {
+enum solar_time {
SOLAR_TIME_NOON = 0,
SOLAR_TIME_MIDNIGHT,
SOLAR_TIME_ASTRO_DAWN,
@@ -40,7 +40,7 @@ typedef enum {
SOLAR_TIME_NAUT_DUSK,
SOLAR_TIME_ASTRO_DUSK,
SOLAR_TIME_MAX
-} solar_time_t;
+};
double solar_elevation(double date, double lat, double lon);