Commit Graph

246 Commits

Author SHA1 Message Date
Gergely Polonkai a50a967ad3 Add gswe_find_*_info() functions to find registered Gswe*Info objects 2014-07-05 22:58:54 +02:00
Gergely Polonkai 75a9318629 Add version information related functions 2014-07-05 22:57:34 +02:00
Gergely Polonkai 95face8294 Add function gswe_timestamp_get_sidereal_time() 2014-06-11 15:59:55 +02:00
Gergely Polonkai 784987a2b6 Remove deprecated function calls from own code 2014-06-11 15:41:32 +02:00
Gergely Polonkai 07a351c373 Add Universal Time calculation functions
This is required for sidereal time calculations later. get/set Julian
day functions have been renamed to have an _et suffix. Meanwhile, the
old gswe_timestamp_get_julian_day() and gswe_timestamp_set_julian_day()
functions have been deprecated.
2014-06-11 15:41:32 +02:00
Gergely Polonkai 55621bc25d Add asteroid Hygiea 2014-05-29 08:14:00 +02:00
Gergely Polonkai c9a0944504 Comment block fixup for GswePlanet
Add Orcus and Asbolus
Reorder comments so it lines up with the actual values
2014-05-29 08:07:45 +02:00
Gergely Polonkai d3e4443922 Add GswePlanet planet offsets for later use 2014-05-28 16:39:43 +02:00
Gergely Polonkai 6a69271007 Add asteroids Orcus and Asbolus 2014-05-28 16:39:43 +02:00
Gergely Polonkai b6071a4e46 Reordered planets in GswePlanet
This is to bring some consistency in the API
2014-05-28 16:39:43 +02:00
Gergely Polonkai 21298fb219 Add alias to GSWE_PLANET_MOON_APOGEE as GSWE_PLANET_LILITH 2014-05-24 09:57:51 +02:00
Gergely Polonkai 243eac9de8 Add asteroid Circe as GSWE_PLANET_CIRCE 2014-05-23 21:42:49 +02:00
Gergely Polonkai de5ac1b63b Add dwarf planet Dejanira 2014-05-18 20:38:29 +02:00
Gergely Polonkai 97df73c64f Add dwarf planets Sedna and Eris 2014-05-18 17:19:25 +02:00
Gergely Polonkai 2d75226310 Reindent some planet table creating lines 2014-05-18 17:19:04 +02:00
Gergely Polonkai e3a6e25bda Add gswe_moment_get_antiscion_by_planets() function 2014-05-07 10:00:23 +02:00
Gergely Polonkai 6566e5356a Add gswe_moment_get_aspect_by_planets() function 2014-05-07 10:00:23 +02:00
Gergely Polonkai 12c08c865d Add Vala API generating code to build tools configuration 2014-05-07 08:36:24 +02:00
Gergely Polonkai 2116c8103a Add NULL protection to gswe_moment_get_planet()'s find part 2014-04-05 22:38:43 +02:00
Gergely Polonkai 8cd8cd67e2 Add NULL protection to GswePlanetData functions 2014-04-05 22:34:06 +02:00
Gergely Polonkai f2bc764f87 Add new asteroids to the planet list
* Pholus
* Nessus
* Chariklo

Fix #10
2014-04-01 22:23:53 +02:00
Gergely Polonkai b394e31f0a Add function gswe_init_with_dir()
This is to be able to specify the SWE data files' path
2014-04-01 08:15:10 +02:00
Gergely Polonkai cbf2201249 Free all objects in gswe_moment_finalize() 2014-03-29 14:55:29 +01:00
Gergely Polonkai 0326770d73 Remove unneeded gswe_planet_data_ref() call 2014-03-29 14:44:17 +01:00
Gergely Polonkai a320abc71e Remove unnecessary gswe_*_ref() calls
This is to revert part of 41a80ca365,
which was kind of an overhead.
2014-03-19 20:32:46 +01:00
Gergely Polonkai 0fb888a940 Make gswe_planet_info_free() free its name only if it is set 2014-03-16 09:52:18 +01:00
Gergely Polonkai b689d3153d Add comment to find_aspect() 2014-03-16 09:46:09 +01:00
Gergely Polonkai ddf4732dc9 Add comment to find_antiscion() 2014-03-16 09:35:25 +01:00
Gergely Polonkai fd24246bae Reduce local variable count in planet_add() 2014-03-16 09:20:10 +01:00
Gergely Polonkai 41a80ca365 Make gswe_antiscion_axis_info_free() to unref its start_sign
This is to fix a bug that makes the library crash when the timestamp
or the chart changes.
2014-03-15 18:38:27 +01:00
Gergely Polonkai e23c789ff0 Change GList->next calls to g_list_next(GList) 2014-03-15 11:40:52 +01:00
Gergely Polonkai 2a48f402b8 Fix a typo 2014-03-09 22:34:54 +01:00
Gergely Polonkai e8819f9a47 Create glforeach convenience macro 2013-10-09 00:06:08 +02:00
Gergely Polonkai 551ea4cee0 Add missing documentation
gswe_antiscion_data_new_with_planets() and gswe_antiscion_data_calculate()
were not documented, nor exposed to the public API as they should be.
2013-10-09 00:05:38 +02:00
Gergely Polonkai bd8c1532e7 Protect gswe_init() from re-entry
As gswe_init() calls functions that call gswe_init(), gswe_init() must
be protected against such re-entry.
2013-10-05 03:04:03 +02:00
Gergely Polonkai 367b777a2d Initialize SWE-GLib from each class init function
This is to satisfy #8. Also, this makes SWE-GLib available for GLib
before 2.36, as gswe_init() also calls g_type_init(), which was necessary
before GLib 2.36
2013-10-05 02:18:30 +02:00
Gergely Polonkai 695f5b96ae Initialize GLib type system when necessary
With 2.36 it became deprecated, as the type system is initialized
automatically. Before that version, just call g_type_init()
from gswe_init()
2013-10-05 02:11:12 +02:00
Gergely Polonkai 5f8939d730 Make gswe_error_quark() available to glib < 2.34 2013-10-05 01:12:09 +02:00
Gergely Polonkai e81df2e4b0 Moved antiscion calculation code to GsweAntiscionData 2013-10-04 17:01:15 +02:00
Gergely Polonkai 8ae0c4de71 Removed unnecessary variable from gswe_aspect_data_calculate() 2013-10-04 17:00:52 +02:00
Gergely Polonkai acedf464f4 Documentation fix on GsweAntiscionAxisInfo 2013-10-04 01:46:53 +02:00
Gergely Polonkai f3c72120a7 Documentation fix for GsweMoonPhaseData 2013-10-04 01:46:53 +02:00
Gergely Polonkai d261e5ab4f Added warning if the planet position can not be calculated due to missing planet info 2013-10-04 01:46:53 +02:00
Gergely Polonkai c5a82b2aae Added missing parameter for Moon phase calculation call 2013-10-04 01:46:53 +02:00
Gergely Polonkai 5dcd5cdd17 Outsourced Moon phase calculation to GsweMoonPhaseData 2013-10-04 01:18:34 +02:00
Gergely Polonkai 20a350eacc Small performance fixes
Removed some unnecessary checks
2013-10-04 01:00:26 +02:00
Gergely Polonkai bd54b5d37a Fixed GsweAntiscionAxisInfo API to comply with GsweAspectInfo API 2013-10-04 00:33:28 +02:00
Gergely Polonkai a224f5ab99 Bug fix in gswe_moment_calculate_antiscia()
antiscion_data->antiscion_axis_info can be NULL, but at that point
antiscion_data->antiscion_axis_info->axes can't be GSWE_ANTISCION_AXIS_NONE
2013-10-04 00:20:32 +02:00
Gergely Polonkai 54698df423 Removed unnecessary const prefix from GsweMoment methods returning boxed types 2013-10-04 00:19:11 +02:00
Gergely Polonkai c78108ce84 Fixed Makefile to install all header files as required 2013-10-04 00:17:32 +02:00
Gergely Polonkai 4506e31946 Fixed name of Ascendant
it was typed consequently as “ascendent”
2013-10-03 23:09:55 +02:00
Gergely Polonkai 981c91d702 Fixed gswe_moment_calculate_planet() so it now understands Asc, MC and Vertex 2013-10-01 01:48:43 +02:00
Gergely Polonkai 2ec9bacf91 Fixed up things so RPM for 2.0.0 can be built 2013-10-01 01:06:45 +02:00
Gergely Polonkai 0b15005e3a Made GsweHouseData a refcounted boxed type
This is to satisfy #7
2013-09-30 23:11:52 +02:00
Gergely Polonkai 6d88993fa3 Made GsweAntiscionData a refcounted boxed type
This is to satisfy #7
2013-09-30 23:02:18 +02:00
Gergely Polonkai dc8146925d Made GsweHouseSystemInfo a refcounted boxed type
This is to satisfy #7
2013-09-30 22:53:44 +02:00
Gergely Polonkai f92caa4e1a Made GsweMoonPhaseData a refcounted boxed type
This is to satisfy #7
2013-09-30 22:39:46 +02:00
Gergely Polonkai 3a06d4bcee Fixed gswe_sign_info_table creation
This is a fixup for commit a1f8d1f7da
2013-09-30 22:25:20 +02:00
Gergely Polonkai bc9ff2fc09 Fixed gswe_planet_info_table creation
This is a fixup for commit dcd58b5dd1
2013-09-30 22:25:19 +02:00
Gergely Polonkai 27ee3747ad Fixed gswe_antiscion_axis_info_table creation
This is a fixup for commit 84195964ab
2013-09-30 22:15:40 +02:00
Gergely Polonkai 6b712794c0 Made GswePlanetData a refcounted boxed type
This is to satisfy #7
2013-09-30 22:13:37 +02:00
Gergely Polonkai dbee248a6e Made GsweAspectData a refcounted boxed type
This is to satisfy #7, but it also satisfies #8, as gswe_init() is
called where data initialized there is necessary.
2013-09-30 21:42:19 +02:00
Gergely Polonkai 7564183aa2 Made GsweAspectInfo a refcounted boxed type
This is to satisfy #7
2013-09-30 21:31:21 +02:00
Gergely Polonkai dcd58b5dd1 Changed GswePlanetInfo to a refcounted boxed type 2013-09-27 18:33:52 +02:00
Gergely Polonkai 6d84d650b5 Now calling gswe_init() in GsweMoment constructors
This is to satisfy #8, although it's not fully implemented yet.
2013-09-27 03:49:51 +02:00
Gergely Polonkai 84195964ab Made GsweAntiscionAxisInfo a refcounted boxed type 2013-09-27 03:09:29 +02:00
Gergely Polonkai b73ac78f17 Moved all GError domains into one global GSWE_ERROR domain 2013-09-27 02:39:24 +02:00
Gergely Polonkai 8f52abadf0 Typo fix in house system name, in gswe-types.h 2013-09-27 02:39:24 +02:00
Gergely Polonkai a1f8d1f7da Made GsweSignInfo a refcounted boxed type 2013-09-27 02:39:24 +02:00
Gergely Polonkai 347dae00d3 Went to major version 2.0
There are too many API (and ABI) changes there, so let's just switch to 2.0
2013-09-26 22:30:31 +02:00
Gergely Polonkai 60b51c2ed2 Fixed plural in GsweAspectInfo description 2013-09-24 01:24:18 +02:00
Gergely Polonkai 9ee5569bb1 Moved GsweHouseData to its own sources 2013-09-24 01:24:00 +02:00
Gergely Polonkai 20c3aafe85 Moved GsweHouseSystemInfo to its own sources 2013-09-24 01:16:33 +02:00
Gergely Polonkai 39ddb2ee0e Moved GsweSignInfo to its own sources 2013-09-24 00:42:42 +02:00
Gergely Polonkai ebeaf1eb4d Moved GswePlanetInfo to its own sources 2013-09-24 00:00:58 +02:00
Gergely Polonkai 886ff03353 Fixed documentation link in gswe-antiscion-data.c 2013-09-23 23:37:57 +02:00
Gergely Polonkai 1b0f831333 Added section information to GsweAspectInfo 2013-09-23 23:13:08 +02:00
Gergely Polonkai e06c73c23d Moved GsweAntiscionAxisInfo to its own source files 2013-09-23 23:12:50 +02:00
Gergely Polonkai 6ee6650d84 Moved GsweAntiscionData to its own source files 2013-09-23 22:27:18 +02:00
Gergely Polonkai eb5b3fff5d Fixed GsweAspectData's short description 2013-09-23 22:14:40 +02:00
Gergely Polonkai d4015cae75 Moved GsweAspectData to its own source files 2013-09-23 21:36:26 +02:00
Gergely Polonkai 3fd8c200e0 Moved GswePlanetData to its own source files 2013-09-23 21:18:41 +02:00
Gergely Polonkai 9a788f8164 Fixed MoonPhaseData related errors
• Added missing include in swe-glib.h
• Fixed @include in GsweMoonPhaseData section documentation
2013-09-23 20:16:28 +02:00
Gergely Polonkai 8044519535 Removed unneeded includes from gswe-moment.c 2013-09-23 20:14:30 +02:00
Gergely Polonkai 0e17962278 Moved GsweAspectData to its own source files 2013-09-23 20:13:56 +02:00
Gergely Polonkai 197f6922c7 Outsourced GsweMoonPhaseData to its own sources
This messed up documentation, still checking why
2013-09-23 00:03:10 +02:00
Gergely Polonkai e7bd73fdc1 Renamed gswe_headers to gswe_enum_headers for better understanding 2013-09-22 23:48:35 +02:00
Gergely Polonkai a5a29c7c33 Added GSWE_MOON_PHASE_NONE as a new Moon phase
!!!ABI BREAKAGE!!!
2013-09-22 23:46:54 +02:00
Gergely Polonkai fc6f7ea159 Fixet protector definition in gswe-types.h 2013-09-22 23:18:33 +02:00
Gergely Polonkai 835dfddccd Added comment block at the beginning of gswe-types.c 2013-09-22 23:03:30 +02:00
Gergely Polonkai 20aacb8c6d Typo fix - = instead of == 2013-09-22 22:58:18 +02:00
Gergely Polonkai a918338bdf Added some comments, mostly TODO items 2013-09-22 18:59:19 +02:00
Gergely Polonkai 67979d9890 Made HOUSE_SYSTEM_NONE a valid and working house system
Solves #1
2013-09-22 18:59:01 +02:00
Gergely Polonkai 4f61aea449 Now using enum values instead of numbers in gswe_calculate_data_by_position()
It's just more beautiful.
2013-09-22 18:56:55 +02:00
Gergely Polonkai cac67e57e3 Fixed licensing issue
Fixes #2
2013-09-22 18:22:13 +02:00
Gergely Polonkai ac012aada2 Bug fix in find_antiscion()
Was assuming that first parameter is a pointer to an enum. It is
actually an int converted to a pointer with GINT_TO_POINTER.
2013-09-18 22:15:53 +02:00
Gergely Polonkai 5b0a2b33c1 Bug fix - house, aspect and antiscia lists were not freed correctly
After calling g_list_free_full(), the list must be set to NULL.
2013-09-18 21:55:49 +02:00
Gergely Polonkai 984ed5d527 Setting the time zone value now doesn't validate the Gregorian date 2013-09-18 21:54:52 +02:00
Gergely Polonkai a790512f13 Fixed GsweTimestamp to comply with documentation
Although documentation states that an "empty" timestamp object has
the current date and time in the current time zone, it was not true.
2013-09-18 21:54:17 +02:00
Gergely Polonkai b7f7f0c02a Bug fix: gswe_moment_get_all_planets() didn't calculate planet positions before returning the list 2013-09-18 11:55:26 +02:00