2013-09-01 11:52:18 +00:00
|
|
|
#ifndef __SWE_GLIB_GSWE_PLANETS_H__
|
|
|
|
#define __SWE_GLIB_GSWE_PLANETS_H__
|
|
|
|
|
2013-09-01 20:30:51 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
2013-09-01 11:52:18 +00:00
|
|
|
typedef enum {
|
|
|
|
GSWE_PLANET_NONE,
|
|
|
|
GSWE_PLANET_SUN,
|
|
|
|
GSWE_PLANET_MOON,
|
|
|
|
GSWE_PLANET_MERCURY,
|
|
|
|
GSWE_PLANET_VENUS,
|
|
|
|
GSWE_PLANET_EARTH,
|
|
|
|
GSWE_PLANET_MARS,
|
|
|
|
GSWE_PLANET_JUPITER,
|
|
|
|
GSWE_PLANET_SATURN,
|
|
|
|
GSWE_PLANET_URANUS,
|
|
|
|
GSWE_PLANET_NEPTUNE,
|
|
|
|
GSWE_PLANET_PLUTO,
|
|
|
|
GSWE_PLANET_CHIRON,
|
|
|
|
GSWE_PLANET_CERES,
|
|
|
|
GSWE_PLANET_PALLAS,
|
|
|
|
GSWE_PLANET_JUNO,
|
|
|
|
GSWE_PLANET_VESTA,
|
|
|
|
GSWE_PLANET_MOON_NODE,
|
|
|
|
GSWE_PLANET_MOON_APOGEE,
|
|
|
|
GSWE_PLANET_ASCENDENT,
|
|
|
|
GSWE_PLANET_MC,
|
|
|
|
GSWE_PLANET_VERTEX
|
|
|
|
} GswePlanet;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
GSWE_SIGN_NONE,
|
|
|
|
GSWE_SIGN_ARIES,
|
|
|
|
GSWE_SIGN_TAURUS,
|
|
|
|
GSWE_SIGN_GEMINI,
|
|
|
|
GSWE_SIGN_CANCER,
|
|
|
|
GSWE_SIGN_LEO,
|
|
|
|
GSWE_SIGN_VIRGO,
|
|
|
|
GSWE_SIGN_LIBRA,
|
|
|
|
GSWE_SIGN_SCORPIO,
|
|
|
|
GSWE_SIGN_SAGITTARIUS,
|
|
|
|
GSWE_SIGN_CAPRICORN,
|
|
|
|
GSWE_SIGN_AQUARIUS,
|
|
|
|
GSWE_SIGN_PISCES
|
|
|
|
} GsweZodiac;
|
|
|
|
|
2013-09-01 14:07:30 +00:00
|
|
|
typedef enum {
|
|
|
|
GSWE_ASPECT_NONE,
|
|
|
|
GSWE_ASPECT_CONJUCTION,
|
|
|
|
GSWE_ASPECT_SEXTILE,
|
|
|
|
GSWE_ASPECT_SQUARE,
|
|
|
|
GSWE_ASPECT_TRINE,
|
|
|
|
GSWE_ASPECT_OPPOSITION,
|
|
|
|
GSWE_ASPECT_SEMISEXTILE,
|
|
|
|
GSWE_ASPECT_SEMISQUARE,
|
|
|
|
GSWE_ASPECT_QUINTILE,
|
|
|
|
GSWE_ASPECT_SESQUISQUARE,
|
|
|
|
GSWE_ASPECT_BIQUINTILE,
|
|
|
|
GSWE_ASPECT_QUINCUNX
|
|
|
|
} GsweAspect;
|
|
|
|
|
2013-09-01 11:52:18 +00:00
|
|
|
typedef enum {
|
|
|
|
GSWE_ELEMENT_NONE,
|
|
|
|
GSWE_ELEMENT_FIRE,
|
|
|
|
GSWE_ELEMENT_EARTH,
|
|
|
|
GSWE_ELEMENT_AIR,
|
|
|
|
GSWE_ELEMENT_WATER
|
|
|
|
} GsweElement;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
GSWE_QUALITY_NONE,
|
|
|
|
GSWE_QUALITY_CARDINAL,
|
|
|
|
GSWE_QUALITY_FIX,
|
|
|
|
GSWE_QUALITY_MUTABLE
|
|
|
|
} GsweQuality;
|
|
|
|
|
2013-09-02 08:28:30 +00:00
|
|
|
typedef enum {
|
|
|
|
GSWE_HOUSE_SYSTEM_NONE,
|
|
|
|
GSWE_HOUSE_SYSTEM_PLACIDUS,
|
|
|
|
GSWE_HOUSE_SYSTEM_KOCH,
|
|
|
|
GSWE_HOUSE_SISTEM_EQUAL
|
|
|
|
} GsweHouseSystem;
|
|
|
|
|
2013-09-02 21:12:56 +00:00
|
|
|
typedef enum {
|
|
|
|
GSWE_MOON_PHASE_NEW,
|
|
|
|
GSWE_MOON_PHASE_WAXING_CRESCENT,
|
|
|
|
GSWE_MOON_PHASE_WAXING_HALF,
|
|
|
|
GSWE_MOON_PHASE_WAXING_GIBBOUS,
|
|
|
|
GSWE_MOON_PHASE_FULL,
|
|
|
|
GSWE_MOON_PHASE_WANING_GIBBOUS,
|
|
|
|
GSWE_MOON_PHASE_WANING_HALF,
|
|
|
|
GSWE_MOON_PHASE_WANING_CRESCENT,
|
|
|
|
GSWE_MOON_PHASE_DARK
|
|
|
|
} GsweMoonPhase;
|
|
|
|
|
2013-09-01 11:52:18 +00:00
|
|
|
/**
|
|
|
|
* GswePlanetInfo:
|
|
|
|
* @planet: the planet ID
|
2013-09-01 14:06:25 +00:00
|
|
|
* @sweph_id: the planet ID according to the Swiss Ephemeris libarary
|
|
|
|
* (or -1, if the planet has no such ID)
|
2013-09-02 14:19:02 +00:00
|
|
|
* @real_body: TRUE if the planet is a "real" celestial body on the sky.
|
|
|
|
* Please note that this will be true for Dark Moon (Lilith).
|
|
|
|
* Everything that has a planet ID in Swiss Ephemeris is
|
|
|
|
* treated as a real celestial body.
|
2013-09-01 11:52:18 +00:00
|
|
|
* @orb: the planet's “personal” orb
|
|
|
|
* @name: the planet's name
|
2013-09-02 14:17:23 +00:00
|
|
|
* @points: the value this planet counts in the element/quality points
|
|
|
|
* table
|
2013-09-01 11:52:18 +00:00
|
|
|
* @domicile_sign_1: the first sign in which the planet is domicile
|
|
|
|
* @domicile_sign_2: the second sign in which the planet is domicile
|
|
|
|
* @exile_sign_1: the first sign in which the planet is in exile
|
|
|
|
* @exile_sign_2: the second sign in which the planet is in exile
|
|
|
|
* @exalted_sign: the sign in which the planet is exalted
|
|
|
|
* @fall_sign: the sign in which the planet is in fall
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
GswePlanet planet;
|
2013-09-01 14:06:25 +00:00
|
|
|
gint sweph_id;
|
2013-09-02 14:19:02 +00:00
|
|
|
gboolean real_body;
|
2013-09-01 11:52:18 +00:00
|
|
|
gdouble orb;
|
|
|
|
gchar *name;
|
2013-09-02 10:29:50 +00:00
|
|
|
gint points;
|
2013-09-01 11:52:18 +00:00
|
|
|
GsweZodiac domicile_sign_1;
|
|
|
|
GsweZodiac domicile_sign_2;
|
|
|
|
GsweZodiac exile_sign_1;
|
|
|
|
GsweZodiac exile_sign_2;
|
|
|
|
GsweZodiac exalted_sign;
|
|
|
|
GsweZodiac fall_sign;
|
|
|
|
} GswePlanetInfo;
|
|
|
|
|
2013-09-02 10:31:19 +00:00
|
|
|
typedef struct {
|
|
|
|
GsweZodiac sign_id;
|
|
|
|
gchar *name;
|
|
|
|
GsweElement element;
|
|
|
|
GsweQuality quality;
|
|
|
|
} GsweSignInfo;
|
|
|
|
|
2013-09-01 14:07:30 +00:00
|
|
|
/**
|
|
|
|
* GsweHouseSystemInfo:
|
|
|
|
* @system: the house system's ID
|
|
|
|
* @sweph_id: the character value that represents this house system in the Swiss Ephemeris library
|
|
|
|
* @name: the name of this house system
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
GsweHouseSystem system;
|
|
|
|
gchar sweph_id;
|
|
|
|
gchar *name;
|
|
|
|
} GsweHouseSystemInfo;
|
|
|
|
|
2013-09-01 11:52:18 +00:00
|
|
|
#endif /* __SWE_GLIB_GSWE_PLANETS_H__ */
|
|
|
|
|