2013-09-16 07:16:49 +00:00
|
|
|
/* SWE-GLib - GLib style wrapper library around Astrodienst's Swiss Ephemeris
|
|
|
|
*
|
2013-09-22 16:22:13 +00:00
|
|
|
* Copyright © 2013 Gergely Polonkai
|
2013-09-16 07:16:49 +00:00
|
|
|
*
|
2013-09-22 16:22:13 +00:00
|
|
|
* SWE-GLib 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.
|
2013-09-16 07:16:49 +00:00
|
|
|
*
|
2013-09-22 16:22:13 +00:00
|
|
|
* SWE-GLib 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.
|
2013-09-16 07:16:49 +00:00
|
|
|
*
|
2013-09-22 16:22:13 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this library; if not, see <http://www.gnu.org/licenses/>.
|
2013-09-16 07:16:49 +00:00
|
|
|
*/
|
2013-09-01 11:52:18 +00:00
|
|
|
#ifndef __SWE_GLIB_H__
|
|
|
|
#define __SWE_GLIB_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include "gswe-types.h"
|
2013-09-23 18:16:28 +00:00
|
|
|
#include "gswe-moon-phase-data.h"
|
2013-09-23 22:42:42 +00:00
|
|
|
#include "gswe-sign-info.h"
|
2013-09-23 22:00:58 +00:00
|
|
|
#include "gswe-planet-info.h"
|
2013-09-23 19:18:41 +00:00
|
|
|
#include "gswe-planet-data.h"
|
2013-09-23 19:36:26 +00:00
|
|
|
#include "gswe-aspect-info.h"
|
2013-09-23 18:13:56 +00:00
|
|
|
#include "gswe-aspect-data.h"
|
2013-09-23 21:12:50 +00:00
|
|
|
#include "gswe-antiscion-axis-info.h"
|
2013-09-23 20:27:18 +00:00
|
|
|
#include "gswe-antiscion-data.h"
|
2013-09-23 23:16:33 +00:00
|
|
|
#include "gswe-house-system-info.h"
|
2013-09-23 23:24:00 +00:00
|
|
|
#include "gswe-house-data.h"
|
2013-09-01 11:52:18 +00:00
|
|
|
#include "gswe-timestamp.h"
|
2013-09-01 20:30:51 +00:00
|
|
|
#include "gswe-moment.h"
|
2013-09-06 09:16:42 +00:00
|
|
|
#include "gswe-enumtypes.h"
|
2013-09-01 11:52:18 +00:00
|
|
|
|
2013-09-27 00:35:11 +00:00
|
|
|
typedef enum {
|
|
|
|
GSWE_ERROR_SUCCESS,
|
|
|
|
GSWE_ERROR_SWE_NONFATAL,
|
|
|
|
GSWE_ERROR_SWE_FATAL,
|
|
|
|
GSWE_ERROR_INVALID_DATE,
|
|
|
|
GSWE_ERROR_INVALID_TIME,
|
|
|
|
GSWE_ERROR_NO_VALID_VALUE,
|
|
|
|
GSWE_ERROR_UNKNOWN_HSYS,
|
|
|
|
GSWE_ERROR_UNKNOWN_SIGN,
|
2013-09-30 20:13:37 +00:00
|
|
|
GSWE_ERROR_UNKNOWN_PLANET,
|
2013-09-30 21:02:18 +00:00
|
|
|
GSWE_ERROR_UNKNOWN_ANTISCION_AXIS,
|
2014-07-05 20:58:54 +00:00
|
|
|
GSWE_ERROR_UNKNOWN_ASPECT,
|
2013-09-27 00:35:11 +00:00
|
|
|
} GsweError;
|
|
|
|
|
|
|
|
#define GSWE_ERROR gswe_error_quark()
|
|
|
|
GQuark gswe_error_quark(void);
|
|
|
|
|
2013-09-06 09:09:45 +00:00
|
|
|
void gswe_init();
|
2014-07-08 08:43:54 +00:00
|
|
|
|
2014-07-05 20:58:54 +00:00
|
|
|
GswePlanetInfo *gswe_find_planet_info_by_id(GswePlanet planet, GError **err);
|
2014-07-08 08:43:54 +00:00
|
|
|
|
2014-07-05 20:58:54 +00:00
|
|
|
GsweSignInfo *gswe_find_sign_info_by_id(GsweZodiac sign, GError **err);
|
2014-07-08 08:43:54 +00:00
|
|
|
|
|
|
|
GsweHouseSystemInfo *gswe_find_house_system_info_by_id(
|
|
|
|
GsweHouseSystem house_system,
|
|
|
|
GError **err);
|
|
|
|
|
2014-07-05 20:58:54 +00:00
|
|
|
GsweAspectInfo *gswe_find_aspect_info_by_id(GsweAspect aspect, GError **err);
|
2014-07-08 08:43:54 +00:00
|
|
|
|
|
|
|
GsweAntiscionAxisInfo *gswe_find_antiscion_axis_info_by_id(
|
|
|
|
GsweAntiscionAxis antiscion_axis,
|
|
|
|
GError **err);
|
2013-09-01 11:52:18 +00:00
|
|
|
|
|
|
|
#endif /* __SWE_GLIB_H__ */
|