From d3e44439228aae813d942afc1bfeb943dd442030 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 24 May 2014 09:59:19 +0200 Subject: [PATCH] Add GswePlanet planet offsets for later use --- src/gswe-types.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/gswe-types.h b/src/gswe-types.h index 214d793..4eebfd4 100644 --- a/src/gswe-types.h +++ b/src/gswe-types.h @@ -104,6 +104,37 @@ typedef enum { /* Moon Apogee in astrology is often referred to as the Dark Moon, or Lilith */ #define GSWE_PLANET_LILITH GSWE_PLANET_MOON_APOGEE +/** + * GSWE_PLANET_OFFSET_VIRTUAL_NODES: + * + * The offset in #GswePlanet for virtual nodes like the ascendant or vertex. + * This is for consistency only, I don’t think anyone would need it. + */ +#define GSWE_PLANET_OFFSET_VIRTUAL_NODES 0 + +/** + * GSWE_PLANET_OFFSET_PLANETS: + * + * The offset in #GswePlanet for real planets in the Solar System. These are + * the objects classified as planets (including Pluto). + */ +#define GSWE_PLANET_OFFSET_PLANETS 10 + +/** + * GSWE_PLANET_OFFSET_ASTEROIDS: + * + * The offset in #GswePlanet for asteroids and dwarf planets. + */ +#define GSWE_PLANET_OFFSET_ASTEROIDS 100 + +/** + * GSWE_PLANET_OFFSET_CUSTOM: + * + * The offset in #GswePlanet for custom planets. This will be used to register + * custom planets later. + */ +#define GSWE_PLANET_OFFSET_CUSTOM 10000 + /** * GsweZodiac: * @GSWE_SIGN_NONE: no sign