From a878cfa0036f6c0608c3e17697edff08ccd9fab1 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 16 May 2021 23:23:30 +0200 Subject: modem-helpers-mbim: rework nw error code mapping Instead of having a switch with a lot of cases, provide a one to one mapping for the MbimNwError and MMMobileEquipmentError codes in an array, and make use of the mm_mobile_equipment_error_for_code() helper to build the actual GError. --- src/mm-modem-helpers-mbim.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mm-modem-helpers-mbim.h') diff --git a/src/mm-modem-helpers-mbim.h b/src/mm-modem-helpers-mbim.h index bb8c8648..35ee98f1 100644 --- a/src/mm-modem-helpers-mbim.h +++ b/src/mm-modem-helpers-mbim.h @@ -40,7 +40,8 @@ GList *mm_3gpp_network_info_list_from_mbim_providers (const MbimProvider *const MbimPinType mbim_pin_type_from_mm_modem_3gpp_facility (MMModem3gppFacility facility); -GError *mm_mobile_equipment_error_from_mbim_nw_error (MbimNwError nw_error); +GError *mm_mobile_equipment_error_from_mbim_nw_error (MbimNwError nw_error, + gpointer log_object); MMBearerAllowedAuth mm_bearer_allowed_auth_from_mbim_auth_protocol (MbimAuthProtocol auth_protocol); MbimAuthProtocol mm_bearer_allowed_auth_to_mbim_auth_protocol (MMBearerAllowedAuth bearer_auth, -- cgit v1.2.3-70-g09d2