Added gswe_moment_get_timestamp() to the API.

This commit is contained in:
Gergely Polonkai 2013-09-11 03:28:15 +02:00
parent a57ce7cd2f
commit a9b4e0d10f
2 changed files with 6 additions and 5 deletions

View File

@ -212,13 +212,13 @@ gswe_moment_set_timestamp(GsweMoment *moment, GsweTimestamp *timestamp)
/**
* gswe_moment_get_timestamp:
* @moment: The GsweMoment object of which you requent its timestamp object
* @moment: a GsweMoment object
*
* Get the timestamp object of the given GsweMoment. The moment object holds a
* reference to this object, so if you need the timestamp object after moment
* is disposed, call g_object_ref() on it!
* Gets the #GsweTimestamp object associated with @moment
*
* Returns: a #GsweTimestamp object assigned to the given moment
* Returns: (transfer none): the GsweTimestamp object associated with @moment.
* The returned object is used by @moment exclusively. If you need it even
* after @moment is destroyed, call g_object_ref() on it.
*/
GsweTimestamp *
gswe_moment_get_timestamp(GsweMoment *moment)

View File

@ -188,6 +188,7 @@ GType gswe_moment_get_type(void);
GsweMoment *gswe_moment_new(void);
GsweMoment *gswe_moment_new_full(GsweTimestamp *timestamp, gdouble longitude, gdouble latitude, gdouble altitude, GsweHouseSystem house_system);
void gswe_moment_set_timestamp(GsweMoment *moment, GsweTimestamp *timestamp);
GsweTimestamp *gswe_moment_get_timestamp(GsweMoment *moment);
GList *gswe_moment_get_house_cusps(GsweMoment *moment, GError **err);
gint gswe_moment_get_house(GsweMoment *moment, gdouble position, GError **err);
gboolean gswe_moment_has_planet(GsweMoment *moment, GswePlanet planet);