* gaflight_info_equal: * @info: A #GAFlightInfo. * @other_info: A #GAFlightInfo to be compared. * * Returns: %TRUE if both of them represents the same information, * %FALSE otherwise. * * Since: 5.0.0 */
| 960 | * Since: 5.0.0 |
| 961 | */ |
| 962 | gboolean |
| 963 | gaflight_info_equal(GAFlightInfo *info, GAFlightInfo *other_info) |
| 964 | { |
| 965 | const auto flight_info = gaflight_info_get_raw(info); |
| 966 | const auto flight_other_info = gaflight_info_get_raw(other_info); |
| 967 | return (flight_info->serialized_schema() == flight_other_info->serialized_schema()) && |
| 968 | (flight_info->descriptor() == flight_other_info->descriptor()) && |
| 969 | (flight_info->endpoints() == flight_other_info->endpoints()) && |
| 970 | (flight_info->total_records() == flight_other_info->total_records()) && |
| 971 | (flight_info->total_bytes() == flight_other_info->total_bytes()); |
| 972 | } |
| 973 | |
| 974 | /** |
| 975 | * gaflight_info_get_schema: |
nothing calls this directly
no test coverage detected