Add gswe_all_(planets|aspects|antiscion_axes) functions

This commit is contained in:
Gergely Polonkai 2014-09-22 00:20:05 +02:00
parent 188a12d1ee
commit 510e440ef4
3 changed files with 61 additions and 3 deletions

View File

@ -81,6 +81,7 @@ gswe_sign_info_get_type
<FILE>gswe-planet-info</FILE>
GswePlanetInfo
gswe_find_planet_info_by_id
gswe_all_planets
gswe_planet_info_new
gswe_planet_info_ref
gswe_planet_info_unref
@ -125,6 +126,7 @@ gswe_planet_data_get_type
<FILE>gswe-aspect-info</FILE>
GsweAspectInfo
gswe_find_aspect_info_by_id
gswe_all_aspects
gswe_aspect_info_new
gswe_aspect_info_ref
gswe_aspect_info_unref
@ -169,6 +171,7 @@ gswe_aspect_data_get_type
<FILE>gswe-antiscion-axis-info</FILE>
GsweAntiscionAxisInfo
gswe_find_antiscion_axis_info_by_id
gswe_all_antiscion_axes
gswe_antiscion_axis_info_new
gswe_antiscion_axis_info_ref
gswe_antiscion_axis_info_unref

View File

@ -831,9 +831,10 @@ gswe_find_antiscion_axis_info_by_id(
/**
* gswe_all_house_systems:
*
* Returns: (element-type GsweHouseSystemInfo) (transfer container): All
* #GsweHouseSystemInfo registered with SWE-GLib. This list should not be
* modified nor freed and is only valid until a new house system is registered.
* Returns: (element-type GsweHouseSystemInfo) (transfer container):
* All #GsweHouseSystemInfo registered with SWE-GLib. The elements of
* this list should not be modified nor freed. The list is only valid
* until a new house system is registered.
*
* Since: 2.1.0
*/
@ -842,3 +843,51 @@ gswe_all_house_systems(void)
{
return g_hash_table_get_values(gswe_house_system_info_table);
}
/**
* gswe_all_planets:
*
* Returns: (element-type GswePlanetInfo) (transfer container): All
* #GswePlanetInfo registered with SWE-GLib. The elements of this list
* should not be modified nor freed. The list is only valid until a
* new planet is registered.
*
* Since: 2.1.0
*/
GList *
gswe_all_planets(void)
{
return g_hash_table_get_values(gswe_planet_info_table);
}
/**
* gswe_all_aspects:
*
* Returns: (element-type GsweAspectInfo) (transfer container): All
* #GsweAspectInfo registered with SWE-GLib. The elements of this list
* should not be modified nor freed. The list is only valid until a
* new aspect is registered.
*
* Since: 2.1.0
*/
GList *
gswe_all_aspects(void)
{
return g_hash_table_get_values(gswe_aspect_info_table);
}
/**
* gswe_all_antiscion_axes:
*
* Returns: (element-type GsweAntiscionAxisInfo) (transfer container):
* All #GsweAntiscionAxisInfo registered with SWE-GLib. The elements
* of this list should not be modified nor freed. The list is only
* valid until a new antiscion axis is registered.
*
* Since: 2.1.0
*/
GList *
gswe_all_antiscion_axes(void)
{
return g_hash_table_get_values(gswe_antiscion_axis_info_table);
}

View File

@ -69,4 +69,10 @@ GsweAntiscionAxisInfo *gswe_find_antiscion_axis_info_by_id(
GList *gswe_all_house_systems(void);
GList *gswe_all_planets(void);
GList *gswe_all_aspects(void);
GList *gswe_all_antiscion_axes(void);
#endif /* __SWE_GLIB_H__ */