aboutsummaryrefslogtreecommitdiff
path: root/src/sun.h
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-05-28 19:12:49 +0200
committeraxtloss <axtlos@getcryst.al>2024-05-28 19:12:49 +0200
commite2d8b96945423c14adbf7a54693f5064d5b157c1 (patch)
tree0052bad56749bcdf9dd99e822bd9c2ebd54999d4 /src/sun.h
parentad8ba2db29c0f3abecb292b1059dad554bf7f3b5 (diff)
downloadautodarkmode-e2d8b96945423c14adbf7a54693f5064d5b157c1.tar.gz
autodarkmode-e2d8b96945423c14adbf7a54693f5064d5b157c1.tar.bz2
add configuration system
Diffstat (limited to '')
-rw-r--r--src/sun.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sun.h b/src/sun.h
index 9a571e8..dc22a6c 100644
--- a/src/sun.h
+++ b/src/sun.h
@@ -1,5 +1,10 @@
+#include <stdbool.h>
float to_rad (float n);
float to_deg (float n);
-float calculateSun(int year,int month,int day,float lat, float lng,int localOffset, int sunset);
+float calculateSun(int year,int month,int day,float lat, float lng,int localOffset, bool sunset);
+float getSunrise(float lat, float lang);
+float getSunset(float lat, float lang);
+
+bool isDark (float sunrise, float sunset);