gswe_init() requires no parameters from now on

SwEph path is automatically initialized to $(pkgdatadir)
This commit is contained in:
Gergely Polonkai 2013-09-06 11:09:45 +02:00
parent c89d08d04e
commit 006c8ae137
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"SWE-GLib\" -DLOCALEDIR=\"$(localedir)\" -D__SWE_GLIB_BUILDING__
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"SWE-GLib\" -DLOCALEDIR=\"$(localedir)\" -D__SWE_GLIB_BUILDING__ -DPKGDATADIR=\"$(pkgdatadir)\"
lib_LTLIBRARIES = libswe-glib-1.0.la

View File

@ -101,7 +101,7 @@ gswe_free_mirror_info(gpointer mirror_info)
* are made.
*/
void
gswe_init(gchar *sweph_path)
gswe_init(void)
{
GswePlanetInfo *planet_info;
GsweSignInfo *sign_info;
@ -184,8 +184,8 @@ gswe_init(gchar *sweph_path)
gswe_full_moon_base_date = gswe_timestamp_new_from_gregorian_full(2005, 5, 8, 3, 48, 0, 0, 0.0);
gswe_ephe_path = g_strdup(sweph_path);
swe_set_ephe_path(sweph_path);
gswe_ephe_path = g_strdup(PKGDATADIR);
swe_set_ephe_path(PKGDATADIR);
gswe_initialized = TRUE;
}

View File

@ -12,7 +12,7 @@ extern GHashTable *gswe_house_system_info_table;
extern GHashTable *gswe_aspect_info_table;
extern GHashTable *gswe_mirror_info_table;
void gswe_init(gchar *sweph_path);
void gswe_init();
#endif /* __SWE_GLIB_H__ */