Code beautification in GsweTimestamp header

This commit is contained in:
Gergely Polonkai 2014-08-14 12:15:27 +02:00
parent c9e382d04b
commit 68994b8cb5
1 changed files with 67 additions and 78 deletions

View File

@ -100,120 +100,109 @@ GsweTimestamp *gswe_timestamp_new(void);
GsweTimestamp *gswe_timestamp_new_from_julian_day(gdouble julian_day); GsweTimestamp *gswe_timestamp_new_from_julian_day(gdouble julian_day);
GsweTimestamp * gswe_timestamp_new_from_gregorian_full( GsweTimestamp * gswe_timestamp_new_from_gregorian_full(gint year,
gint year, gint month, gint day, gint month,
gint hour, gint minute, gint second, gint microsecond, gint day,
gdouble time_zone_offset); gint hour,
gint minute,
gint second,
gint microsecond,
gdouble time_zone_offset);
void gswe_timestamp_set_gregorian_full( void gswe_timestamp_set_gregorian_full(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gint year,
gint year, gint month, gint day, gint month,
gint hour, gint minute, gint second, gint microsecond, gint day,
gdouble time_zone_offset, gint hour,
GError **err); gint minute,
gint second,
gint microsecond,
gdouble time_zone_offset,
GError **err);
void gswe_timestamp_set_instant_recalc( void gswe_timestamp_set_instant_recalc(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gboolean instant_recalc,
gboolean instant_recalc, GError **err);
GError **err);
gboolean gswe_timestamp_get_instant_recalc(GsweTimestamp *timestamp); gboolean gswe_timestamp_get_instant_recalc(GsweTimestamp *timestamp);
void gswe_timestamp_set_gregorian_year( void gswe_timestamp_set_gregorian_year(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gint gregorian_year,
gint gregorian_year, GError **err);
GError **err);
gint gswe_timestamp_get_gregorian_year(GsweTimestamp *timestamp, GError **err); gint gswe_timestamp_get_gregorian_year(GsweTimestamp *timestamp, GError **err);
void gswe_timestamp_set_gregorian_month( void gswe_timestamp_set_gregorian_month(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gint gregorian_month,
gint gregorian_month, GError **err);
GError **err);
gint gswe_timestamp_get_gregorian_month(GsweTimestamp *timestamp, GError **err); gint gswe_timestamp_get_gregorian_month(GsweTimestamp *timestamp, GError **err);
void gswe_timestamp_set_gregorian_day( void gswe_timestamp_set_gregorian_day(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gint gregorian_day,
gint gregorian_day, GError **err);
GError **err);
gint gswe_timestamp_get_gregorian_day(GsweTimestamp *timestamp, GError **err); gint gswe_timestamp_get_gregorian_day(GsweTimestamp *timestamp, GError **err);
void gswe_timestamp_set_gregorian_hour( void gswe_timestamp_set_gregorian_hour(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gint gregorian_hour,
gint gregorian_hour, GError **err);
GError **err);
gint gswe_timestamp_get_gregorian_hour(GsweTimestamp *timestamp, GError **err); gint gswe_timestamp_get_gregorian_hour(GsweTimestamp *timestamp, GError **err);
void gswe_timestamp_set_gregorian_minute( void gswe_timestamp_set_gregorian_minute(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gint gregorian_minute,
gint gregorian_minute, GError **err);
GError **err);
gint gswe_timestamp_get_gregorian_minute( gint gswe_timestamp_get_gregorian_minute(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, GError **err);
GError **err);
void gswe_timestamp_set_gregorian_second( void gswe_timestamp_set_gregorian_second(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gint gregorian_second,
gint gregorian_second, GError **err);
GError **err);
gint gswe_timestamp_get_gregorian_second( gint gswe_timestamp_get_gregorian_second(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, GError **err);
GError **err);
void gswe_timestamp_set_gregorian_microsecond( void gswe_timestamp_set_gregorian_microsecond(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gint gregorian_microsecond,
gint gregorian_microsecond, GError **err);
GError **err);
gint gswe_timestamp_get_gregorian_microsecond( gint gswe_timestamp_get_gregorian_microsecond(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, GError **err);
GError **err);
void gswe_timestamp_set_gregorian_timezone( void gswe_timestamp_set_gregorian_timezone(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gdouble gregorian_timezone_offset,
gdouble gregorian_timezone_offset, GError **err);
GError **err);
gdouble gswe_timestamp_get_gregorian_timezone(GsweTimestamp *timestamp); gdouble gswe_timestamp_get_gregorian_timezone(GsweTimestamp *timestamp);
#ifndef GSWE_DISABLE_DEPRECATED #ifndef GSWE_DISABLE_DEPRECATED
G_DEPRECATED_FOR(gswe_timestamp_set_julian_day_et) G_DEPRECATED_FOR(gswe_timestamp_set_julian_day_et)
void gswe_timestamp_set_julian_day( void gswe_timestamp_set_julian_day(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gdouble julian_day);
gdouble julian_day);
G_DEPRECATED_FOR(gswe_timestamp_get_julian_day_et) G_DEPRECATED_FOR(gswe_timestamp_get_julian_day_et)
gdouble gswe_timestamp_get_julian_day( gdouble gswe_timestamp_get_julian_day(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, GError **err);
GError **err);
#endif #endif
void gswe_timestamp_set_julian_day_et( void gswe_timestamp_set_julian_day_et(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gdouble julian_day,
gdouble julian_day, GError **err);
GError **err);
gdouble gswe_timestamp_get_julian_day_et( gdouble gswe_timestamp_get_julian_day_et(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, GError **err);
GError **err);
void gswe_timestamp_set_julian_day_ut( void gswe_timestamp_set_julian_day_ut(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, gdouble julian_day,
gdouble julian_day, GError **err);
GError **err);
gdouble gswe_timestamp_get_julian_day_ut( gdouble gswe_timestamp_get_julian_day_ut(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, GError **err);
GError **err);
gdouble gswe_timestamp_get_sidereal_time( gdouble gswe_timestamp_get_sidereal_time(GsweTimestamp *timestamp,
GsweTimestamp *timestamp, GError **err);
GError **err);
#endif /* __SWE_GLIB_GSWE_TIMESTAMP_H__ */ #endif /* __SWE_GLIB_GSWE_TIMESTAMP_H__ */