diff --git a/docs/reference/swe-glib/swe-glib-sections.txt b/docs/reference/swe-glib/swe-glib-sections.txt index 2558ec6..77a3859 100644 --- a/docs/reference/swe-glib/swe-glib-sections.txt +++ b/docs/reference/swe-glib/swe-glib-sections.txt @@ -81,6 +81,7 @@ gswe_sign_info_get_type gswe-planet-info 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 gswe-aspect-info 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 gswe-antiscion-axis-info 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 diff --git a/src/swe-glib.c b/src/swe-glib.c index bb4cbcc..bf22dfb 100644 --- a/src/swe-glib.c +++ b/src/swe-glib.c @@ -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); +} diff --git a/src/swe-glib.h b/src/swe-glib.h index cf01392..4ef6d92 100644 --- a/src/swe-glib.h +++ b/src/swe-glib.h @@ -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__ */