/*
 * Subset of the Swiss Ephemeris public API (swephexp.h, v2.10.3) used by
 * App\Services\Astrology\SwissEphemeris through PHP FFI.
 *
 * Only declare functions that are called from PHP. int32 is int on the
 * supported x86_64 Linux target (see sweodef.h).
 */

char *swe_version(char *s);
void swe_set_ephe_path(const char *path);
void swe_close(void);
void swe_set_sid_mode(int sid_mode, double t0, double ayan_t0);
double swe_julday(int year, int month, int day, double hour, int gregflag);
void swe_revjul(double jd, int gregflag, int *jyear, int *jmon, int *jday, double *jut);
int swe_calc_ut(double tjd_ut, int ipl, int iflag, double *xx, char *serr);
double swe_get_ayanamsa_ut(double tjd_ut);
double swe_sidtime(double tjd_ut);
int swe_houses_ex(double tjd_ut, int iflag, double geolat, double geolon, int hsys, double *cusps, double *ascmc);
int swe_rise_trans(double tjd_ut, int ipl, char *starname, int epheflag, int rsmi, double *geopos, double atpress, double attemp, double *tret, char *serr);
int swe_sol_eclipse_when_glob(double tjd_start, int ifl, int ifltype, double *tret, int backward, char *serr);
int swe_lun_eclipse_when(double tjd_start, int ifl, int ifltype, double *tret, int backward, char *serr);
