aboutsummaryrefslogtreecommitdiffstats
path: root/solar.h
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2009-12-23 17:33:17 +0100
committerJon Lund Steffensen <jonlst@gmail.com>2009-12-23 17:33:17 +0100
commit03dcd5d78a8cd5a9706f174f32cdfe8649272904 (patch)
tree2e84bc0e471d47c9ad1c3b1ca2d8e07d3ff65b59 /solar.h
parentMove RandR code to separate file. (diff)
downloadredshift-ng-03dcd5d78a8cd5a9706f174f32cdfe8649272904.tar.gz
redshift-ng-03dcd5d78a8cd5a9706f174f32cdfe8649272904.tar.bz2
redshift-ng-03dcd5d78a8cd5a9706f174f32cdfe8649272904.tar.xz
Move source and headers to src dir.
Diffstat (limited to 'solar.h')
-rw-r--r--solar.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/solar.h b/solar.h
deleted file mode 100644
index 5897373..0000000
--- a/solar.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* solar.h -- Solar position header
- This file is part of Redshift.
-
- Redshift is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- Redshift is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with Redshift. If not, see <http://www.gnu.org/licenses/>.
-
- Copyright (c) 2009 Jon Lund Steffensen <jonlst@gmail.com>
-*/
-
-#ifndef _SOLAR_H
-#define _SOLAR_H
-
-#include <time.h>
-
-/* Model of atmospheric refraction near horizon (in degrees). */
-#define SOLAR_ATM_REFRAC 0.833
-
-#define SOLAR_ASTRO_TWILIGHT_ELEV -18.0
-#define SOLAR_NAUT_TWILIGHT_ELEV -12.0
-#define SOLAR_CIVIL_TWILIGHT_ELEV -6.0
-#define SOLAR_DAYTIME_ELEV (0.0 - SOLAR_ATM_REFRAC)
-
-typedef enum {
- SOLAR_TIME_NOON = 0,
- SOLAR_TIME_MIDNIGHT,
- SOLAR_TIME_ASTRO_DAWN,
- SOLAR_TIME_NAUT_DAWN,
- SOLAR_TIME_CIVIL_DAWN,
- SOLAR_TIME_SUNRISE,
- SOLAR_TIME_SUNSET,
- SOLAR_TIME_CIVIL_DUSK,
- SOLAR_TIME_NAUT_DUSK,
- SOLAR_TIME_ASTRO_DUSK,
- SOLAR_TIME_MAX
-} solar_time_t;
-
-double solar_elevation(time_t t, double lat, double lon);
-void solar_table_fill(time_t date, double lat, double lon, time_t *table);
-
-#endif /* ! _SOLAR_H */