* gaflight_info_get_endpoints: * @info: A #GAFlightInfo. * * Returns: (element-type GAFlightEndpoint) (transfer full): * The list of #GAFlightEndpoint of the information. * * Since: 5.0.0 */
| 1026 | * Since: 5.0.0 |
| 1027 | */ |
| 1028 | GList * |
| 1029 | gaflight_info_get_endpoints(GAFlightInfo *info) |
| 1030 | { |
| 1031 | const auto flight_info = gaflight_info_get_raw(info); |
| 1032 | GList *endpoints = NULL; |
| 1033 | for (const auto &flight_endpoint : flight_info->endpoints()) { |
| 1034 | auto endpoint = gaflight_endpoint_new_raw(&flight_endpoint, nullptr); |
| 1035 | endpoints = g_list_prepend(endpoints, endpoint); |
| 1036 | } |
| 1037 | return g_list_reverse(endpoints); |
| 1038 | } |
| 1039 | |
| 1040 | /** |
| 1041 | * gaflight_info_get_total_records: |
nothing calls this directly
no test coverage detected