aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers-mbim.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-05-16 23:23:30 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-05-22 22:58:37 +0000
commita878cfa0036f6c0608c3e17697edff08ccd9fab1 (patch)
tree9b4fe16bc78f1058ecbd80b62855356c8022ce21 /src/mm-modem-helpers-mbim.h
parent8da8fd0248fa619709aa2a17b1717e7981b641d0 (diff)
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.
Diffstat (limited to 'src/mm-modem-helpers-mbim.h')
-rw-r--r--src/mm-modem-helpers-mbim.h3
1 files changed, 2 insertions, 1 deletions
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,