2 * This file is part of Live Wallpaper (livewp)
4 * Copyright (C) 2010 Vlad Vasiliev
5 * Copyright (C) 2010 Tanya Makova
8 * This software is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
13 * This software is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this software; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23 /*******************************************************************************/
24 #ifndef _livewp_astro_h
25 #define _livewp_astro_h 1
26 /*******************************************************************************/
28 /*******************************************************************************/
29 double ut(int hour, int min, int zone);
30 double jd(int year, int month, int day, double uu);
31 double altitude(double lon, double lat, int year, int month, int day, int hour, int min, int zone);
32 double azimuth(double lon, double lat, int year, int month, int day, int hour, int min, int zone);
33 double moon_phase(int year, int month, int day);
34 void sun_rise_set(double lon, double lat,
35 int year, int month, int day,
37 int * hourrise, int *minrise, int *hourset, int *minset);
39 /*******************************************************************************/