Functions

access_media_type_get_string (val)

activation_command_get_string (val)

activation_state_get_string (val)

atds_provider_array_free (array)

atds_provider_plmn_mode_get_string (val)

atds_rat_mode_get_string (val)

auth_protocol_get_string (val)

carrier_lock_cause_get_string (val)

carrier_lock_modem_state_get_string (val)

carrier_lock_status_get_string (val)

cell_info_cdma_array_free (array)

cell_info_neighboring_gsm_array_free (array)

cell_info_neighboring_lte_array_free (array)

cell_info_neighboring_nr_array_free (array)

cell_info_neighboring_tdscdma_array_free (array)

cell_info_neighboring_umts_array_free (array)

cell_info_serving_nr_array_free (array)

cellular_class_build_string_from_mask (mask)

cid_atds_get_string (val)

cid_auth_get_string (val)

cid_basic_connect_get_string (val)

cid_can_notify (service, cid)

cid_can_query (service, cid)

cid_can_set (service, cid)

cid_dss_get_string (val)

cid_get_printable (service, cid)

cid_google_get_string (val)

cid_intel_firmware_update_get_string (val)

cid_intel_mutual_authentication_get_string (val)

cid_intel_thermal_rf_get_string (val)

cid_intel_tools_get_string (val)

cid_ms_basic_connect_extensions_get_string (val)

cid_ms_firmware_id_get_string (val)

cid_ms_host_shutdown_get_string (val)

cid_ms_sar_get_string (val)

cid_ms_uicc_low_level_access_get_string (val)

cid_ms_voice_extensions_get_string (val)

cid_phonebook_get_string (val)

cid_proxy_control_get_string (val)

cid_qdu_get_string (val)

cid_qmi_get_string (val)

cid_quectel_get_string (val)

cid_sms_get_string (val)

cid_stk_get_string (val)

cid_ussd_get_string (val)

compression_get_string (val)

context_ip_type_get_string (val)

context_media_type_get_string (val)

context_operation_get_string (val)

context_roaming_control_get_string (val)

context_source_get_string (val)

context_state_get_string (val)

context_type_get_string (val)

core_error_get_string (val)

core_error_quark ()

ctrl_caps_build_string_from_mask (mask)

data_class_build_string_from_mask (mask)

data_class_v3_build_string_from_mask (mask)

data_subclass_build_string_from_mask (mask)

default_pdu_activation_hint_get_string (val)

device_service_element_array_free (array)

device_type_get_string (val)

drx_cycle_get_string (val)

dss_link_state_get_string (val)

emergency_mode_state_get_string (val)

event_entry_array_free (array)

frequency_range_build_string_from_mask (mask)

intel_boot_mode_get_string (val)

intel_rfim_frequency_value_array_free (array)

intel_serving_cell_info_get_string (val)

ip_configuration_available_flag_build_string_from_mask (mask)

ipv4_element_array_free (array)

ipv6_element_array_free (array)

ladn_info_get_string (val)

lte_attach_configuration_array_free (array)

lte_attach_context_operation_get_string (val)

lte_attach_context_roaming_control_get_string (val)

lte_attach_state_get_string (val)

lte_attach_status_free (var)

message_command_type_get_string (val)

message_type_get_string (val)

mico_mode_get_string (val)

modem_configuration_status_get_string (val)

network_idle_hint_state_get_string (val)

nw_error_get_string (val)

packet_filter_array_free (array)

packet_filter_v3_array_free (array)

packet_service_action_get_string (val)

packet_service_state_get_string (val)

pco_type_get_string (val)

phonebook_entry_array_free (array)

phonebook_flag_get_string (val)

phonebook_state_get_string (val)

phonebook_write_flag_get_string (val)

pin_format_get_string (val)

pin_mode_get_string (val)

pin_operation_get_string (val)

pin_state_get_string (val)

pin_type_get_string (val)

protocol_error_get_string (val)

protocol_error_quark ()

provider_array_free (array)

provider_state_build_string_from_mask (mask)

provisioned_context_element_array_free (array)

provisioned_context_element_v2_array_free (array)

qdu_file_type_get_string (val)

qdu_quectel_reboot_type_get_string (val)

qdu_quectel_version_type_get_string (val)

qdu_session_action_get_string (val)

qdu_session_result_get_string (val)

qdu_session_status_get_string (val)

qdu_session_type_get_string (val)

quectel_radio_switch_state_get_string (val)

radio_switch_state_get_string (val)

ready_info_flag_build_string_from_mask (mask)

register_action_get_string (val)

register_custom_service (uuid, nickname)

register_mode_get_string (val)

register_state_get_string (val)

registration_flag_build_string_from_mask (mask)

rsrp_snr_info_array_free (array)

sar_backoff_state_get_string (val)

sar_config_state_array_free (array)

sar_control_mode_get_string (val)

sar_wifi_hardware_state_get_string (val)

service_get_string (val)

service_id_is_custom (id)

service_lookup_name (service)

sim_class_build_string_from_mask (mask)

slot_array_free (array)

sms_caps_build_string_from_mask (mask)

sms_cdma_encoding_get_string (val)

sms_cdma_lang_get_string (val)

sms_cdma_read_record_array_free (array)

sms_flag_get_string (val)

sms_format_get_string (val)

sms_pdu_read_record_array_free (array)

sms_status_flag_build_string_from_mask (mask)

sms_status_flag_get_string (val)

sms_status_get_string (val)

sms_storage_state_get_string (val)

status_error_get_string (val)

status_error_quark ()

stk_pac_profile_get_string (val)

stk_pac_type_get_string (val)

subscriber_ready_state_get_string (val)

subscriber_ready_status_flag_build_string_from_mask (mask)

terminal_capability_info_array_free (array)

tlv_type_get_string (val)

trace_command_get_string (val)

transmission_notification_status_get_string (val)

transmission_state_get_string (val)

uicc_application_array_free (array)

uicc_application_type_get_string (val)

uicc_class_byte_type_get_string (val)

uicc_file_accessibility_get_string (val)

uicc_file_structure_get_string (val)

uicc_file_type_get_string (val)

uicc_pass_through_action_get_string (val)

uicc_pass_through_status_get_string (val)

uicc_secure_messaging_get_string (val)

uicc_slot_state_get_string (val)

unregister_custom_service (id)

ussd_action_get_string (val)

ussd_response_get_string (val)

ussd_session_state_get_string (val)

utils_get_show_personal_info ()

utils_get_traces_enabled ()

utils_set_show_personal_info (show_personal_info)

utils_set_traces_enabled (enabled)

uuid_from_context_type (context_type)

uuid_from_printable (str, uuid)

uuid_from_service (service)

visible_providers_action_get_string (val)

voice_call_state_get_string (val)

voice_class_get_string (val)

wake_type_get_string (val)

Details

Mbim.access_media_type_get_string(val)
Parameters:

val (Mbim.AccessMediaType) – a Mbim.AccessMediaType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.AccessMediaType specified at val.

New in version 1.28.

Mbim.activation_command_get_string(val)
Parameters:

val (Mbim.ActivationCommand) – a Mbim.ActivationCommand.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ActivationCommand specified at val.

New in version 1.0.

Mbim.activation_state_get_string(val)
Parameters:

val (Mbim.ActivationState) – a Mbim.ActivationState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ActivationState specified at val.

New in version 1.0.

Mbim.atds_provider_array_free(array)
Parameters:

array (Mbim.AtdsProvider) – a None terminated array of Mbim.AtdsProvider structs.

Frees the memory allocated for the array of Mbim.AtdsProvider structs.

New in version 1.16.

Mbim.atds_provider_plmn_mode_get_string(val)
Parameters:

val (Mbim.AtdsProviderPlmnMode) – a Mbim.AtdsProviderPlmnMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.AtdsProviderPlmnMode specified at val.

New in version 1.16.

Mbim.atds_rat_mode_get_string(val)
Parameters:

val (Mbim.AtdsRatMode) – a Mbim.AtdsRatMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.AtdsRatMode specified at val.

New in version 1.16.

Mbim.auth_protocol_get_string(val)
Parameters:

val (Mbim.AuthProtocol) – a Mbim.AuthProtocol.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.AuthProtocol specified at val.

New in version 1.0.

Mbim.carrier_lock_cause_get_string(val)
Parameters:

val (Mbim.CarrierLockCause) – a Mbim.CarrierLockCause.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CarrierLockCause specified at val.

New in version 1.30.

Mbim.carrier_lock_modem_state_get_string(val)
Parameters:

val (Mbim.CarrierLockModemState) – a Mbim.CarrierLockModemState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CarrierLockModemState specified at val.

New in version 1.30.

Mbim.carrier_lock_status_get_string(val)
Parameters:

val (Mbim.CarrierLockStatus) – a Mbim.CarrierLockStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CarrierLockStatus specified at val.

New in version 1.30.

Mbim.cell_info_cdma_array_free(array)
Parameters:

array (Mbim.CellInfoCdma) – a None terminated array of Mbim.CellInfoCdma structs.

Frees the memory allocated for the array of Mbim.CellInfoCdma structs.

New in version 1.28.

Mbim.cell_info_neighboring_gsm_array_free(array)
Parameters:

array (Mbim.CellInfoNeighboringGsm) – a None terminated array of Mbim.CellInfoNeighboringGsm structs.

Frees the memory allocated for the array of Mbim.CellInfoNeighboringGsm structs.

New in version 1.28.

Mbim.cell_info_neighboring_lte_array_free(array)
Parameters:

array (Mbim.CellInfoNeighboringLte) – a None terminated array of Mbim.CellInfoNeighboringLte structs.

Frees the memory allocated for the array of Mbim.CellInfoNeighboringLte structs.

New in version 1.28.

Mbim.cell_info_neighboring_nr_array_free(array)
Parameters:

array (Mbim.CellInfoNeighboringNr) – a None terminated array of Mbim.CellInfoNeighboringNr structs.

Frees the memory allocated for the array of Mbim.CellInfoNeighboringNr structs.

New in version 1.28.

Mbim.cell_info_neighboring_tdscdma_array_free(array)
Parameters:

array (Mbim.CellInfoNeighboringTdscdma) – a None terminated array of Mbim.CellInfoNeighboringTdscdma structs.

Frees the memory allocated for the array of Mbim.CellInfoNeighboringTdscdma structs.

New in version 1.28.

Mbim.cell_info_neighboring_umts_array_free(array)
Parameters:

array (Mbim.CellInfoNeighboringUmts) – a None terminated array of Mbim.CellInfoNeighboringUmts structs.

Frees the memory allocated for the array of Mbim.CellInfoNeighboringUmts structs.

New in version 1.28.

Mbim.cell_info_serving_nr_array_free(array)
Parameters:

array (Mbim.CellInfoServingNr) – a None terminated array of Mbim.CellInfoServingNr structs.

Frees the memory allocated for the array of Mbim.CellInfoServingNr structs.

New in version 1.28.

Mbim.cellular_class_build_string_from_mask(mask)
Parameters:

mask (Mbim.CellularClass) – bitmask of Mbim.CellularClass values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.CellularClass in mask.

New in version 1.0.

Mbim.cid_atds_get_string(val)
Parameters:

val (Mbim.CidAtds) – a Mbim.CidAtds.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidAtds specified at val.

New in version 1.16.

Mbim.cid_auth_get_string(val)
Parameters:

val (Mbim.CidAuth) – a Mbim.CidAuth.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidAuth specified at val.

New in version 1.0.

Mbim.cid_basic_connect_get_string(val)
Parameters:

val (Mbim.CidBasicConnect) – a Mbim.CidBasicConnect.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidBasicConnect specified at val.

New in version 1.0.

Mbim.cid_can_notify(service, cid)
Parameters:
Returns:

True if the command allows notifying, False otherwise.

Return type:

bool

Checks whether the given command allows notifying.

New in version 1.0.

Mbim.cid_can_query(service, cid)
Parameters:
Returns:

True if the command allows querying, False otherwise.

Return type:

bool

Checks whether the given command allows querying.

New in version 1.0.

Mbim.cid_can_set(service, cid)
Parameters:
Returns:

True if the command allows setting, False otherwise.

Return type:

bool

Checks whether the given command allows setting.

New in version 1.0.

Mbim.cid_dss_get_string(val)
Parameters:

val (Mbim.CidDss) – a Mbim.CidDss.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidDss specified at val.

New in version 1.0.

Mbim.cid_get_printable(service, cid)
Parameters:
Returns:

a constant string.

Return type:

str

Gets a printable string for the command specified by the service and the cid.

New in version 1.0.

Mbim.cid_google_get_string(val)
Parameters:

val (Mbim.CidGoogle) – a Mbim.CidGoogle.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidGoogle specified at val.

New in version 1.30.

Mbim.cid_intel_firmware_update_get_string(val)
Parameters:

val (Mbim.CidIntelFirmwareUpdate) – a Mbim.CidIntelFirmwareUpdate.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidIntelFirmwareUpdate specified at val.

New in version 1.16.

Mbim.cid_intel_mutual_authentication_get_string(val)
Parameters:

val (Mbim.CidIntelMutualAuthentication) – a Mbim.CidIntelMutualAuthentication.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidIntelMutualAuthentication specified at val.

New in version 1.30.

Mbim.cid_intel_thermal_rf_get_string(val)
Parameters:

val (Mbim.CidIntelThermalRf) – a Mbim.CidIntelThermalRf.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidIntelThermalRf specified at val.

New in version 1.28.

Mbim.cid_intel_tools_get_string(val)
Parameters:

val (Mbim.CidIntelTools) – a Mbim.CidIntelTools.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidIntelTools specified at val.

New in version 1.30.

Mbim.cid_ms_basic_connect_extensions_get_string(val)
Parameters:

val (Mbim.CidMsBasicConnectExtensions) – a Mbim.CidMsBasicConnectExtensions.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsBasicConnectExtensions specified at val.

New in version 1.18.

Mbim.cid_ms_firmware_id_get_string(val)
Parameters:

val (Mbim.CidMsFirmwareId) – a Mbim.CidMsFirmwareId.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsFirmwareId specified at val.

New in version 1.0.

Mbim.cid_ms_host_shutdown_get_string(val)
Parameters:

val (Mbim.CidMsHostShutdown) – a Mbim.CidMsHostShutdown.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsHostShutdown specified at val.

New in version 1.8.

Mbim.cid_ms_sar_get_string(val)
Parameters:

val (Mbim.CidMsSar) – a Mbim.CidMsSar.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsSar specified at val.

New in version 1.26.

Mbim.cid_ms_uicc_low_level_access_get_string(val)
Parameters:

val (Mbim.CidMsUiccLowLevelAccess) – a Mbim.CidMsUiccLowLevelAccess.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsUiccLowLevelAccess specified at val.

New in version 1.26.

Mbim.cid_ms_voice_extensions_get_string(val)
Parameters:

val (Mbim.CidMsVoiceExtensions) – a Mbim.CidMsVoiceExtensions.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidMsVoiceExtensions specified at val.

New in version 1.28.

Mbim.cid_phonebook_get_string(val)
Parameters:

val (Mbim.CidPhonebook) – a Mbim.CidPhonebook.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidPhonebook specified at val.

New in version 1.0.

Mbim.cid_proxy_control_get_string(val)
Parameters:

val (Mbim.CidProxyControl) – a Mbim.CidProxyControl.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidProxyControl specified at val.

New in version 1.10.

Mbim.cid_qdu_get_string(val)
Parameters:

val (Mbim.CidQdu) – a Mbim.CidQdu.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidQdu specified at val.

New in version 1.26.

Mbim.cid_qmi_get_string(val)
Parameters:

val (Mbim.CidQmi) – a Mbim.CidQmi.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidQmi specified at val.

New in version 1.14.

Mbim.cid_quectel_get_string(val)
Parameters:

val (Mbim.CidQuectel) – a Mbim.CidQuectel.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidQuectel specified at val.

New in version 1.26.2.

Mbim.cid_sms_get_string(val)
Parameters:

val (Mbim.CidSms) – a Mbim.CidSms.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidSms specified at val.

New in version 1.0.

Mbim.cid_stk_get_string(val)
Parameters:

val (Mbim.CidStk) – a Mbim.CidStk.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidStk specified at val.

New in version 1.0.

Mbim.cid_ussd_get_string(val)
Parameters:

val (Mbim.CidUssd) – a Mbim.CidUssd.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CidUssd specified at val.

New in version 1.0.

Mbim.compression_get_string(val)
Parameters:

val (Mbim.Compression) – a Mbim.Compression.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.Compression specified at val.

New in version 1.0.

Mbim.context_ip_type_get_string(val)
Parameters:

val (Mbim.ContextIpType) – a Mbim.ContextIpType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextIpType specified at val.

New in version 1.0.

Mbim.context_media_type_get_string(val)
Parameters:

val (Mbim.ContextMediaType) – a Mbim.ContextMediaType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextMediaType specified at val.

New in version 1.28.

Mbim.context_operation_get_string(val)
Parameters:

val (Mbim.ContextOperation) – a Mbim.ContextOperation.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextOperation specified at val.

New in version 1.28.

Mbim.context_roaming_control_get_string(val)
Parameters:

val (Mbim.ContextRoamingControl) – a Mbim.ContextRoamingControl.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextRoamingControl specified at val.

New in version 1.28.

Mbim.context_source_get_string(val)
Parameters:

val (Mbim.ContextSource) – a Mbim.ContextSource.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextSource specified at val.

New in version 1.18.

Mbim.context_state_get_string(val)
Parameters:

val (Mbim.ContextState) – a Mbim.ContextState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextState specified at val.

New in version 1.28.

Mbim.context_type_get_string(val)
Parameters:

val (Mbim.ContextType) – a Mbim.ContextType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ContextType specified at val.

New in version 1.0.

Mbim.core_error_get_string(val)
Parameters:

val (Mbim.CoreError) – a Mbim.CoreError.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.CoreError specified at val.

Mbim.core_error_quark()
Return type:

int

Mbim.ctrl_caps_build_string_from_mask(mask)
Parameters:

mask (Mbim.CtrlCaps) – bitmask of Mbim.CtrlCaps values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.CtrlCaps in mask.

New in version 1.0.

Mbim.data_class_build_string_from_mask(mask)
Parameters:

mask (Mbim.DataClass) – bitmask of Mbim.DataClass values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.DataClass in mask.

New in version 1.0.

Mbim.data_class_v3_build_string_from_mask(mask)
Parameters:

mask (Mbim.DataClassV3) – bitmask of Mbim.DataClassV3 values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.DataClassV3 in mask.

New in version 1.28.

Mbim.data_subclass_build_string_from_mask(mask)
Parameters:

mask (Mbim.DataSubclass) – bitmask of Mbim.DataSubclass values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.DataSubclass in mask.

New in version 1.28.

Mbim.default_pdu_activation_hint_get_string(val)
Parameters:

val (Mbim.DefaultPduActivationHint) – a Mbim.DefaultPduActivationHint.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.DefaultPduActivationHint specified at val.

New in version 1.28.

Mbim.device_service_element_array_free(array)
Parameters:

array (Mbim.DeviceServiceElement) – a None terminated array of Mbim.DeviceServiceElement structs.

Frees the memory allocated for the array of Mbim.DeviceServiceElement structs.

New in version 1.0.

Mbim.device_type_get_string(val)
Parameters:

val (Mbim.DeviceType) – a Mbim.DeviceType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.DeviceType specified at val.

New in version 1.0.

Mbim.drx_cycle_get_string(val)
Parameters:

val (Mbim.DrxCycle) – a Mbim.DrxCycle.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.DrxCycle specified at val.

New in version 1.28.

Parameters:

val (Mbim.DssLinkState) – a Mbim.DssLinkState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.DssLinkState specified at val.

New in version 1.4.

Mbim.emergency_mode_state_get_string(val)
Parameters:

val (Mbim.EmergencyModeState) – a Mbim.EmergencyModeState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.EmergencyModeState specified at val.

New in version 1.4.

Mbim.event_entry_array_free(array)
Parameters:

array (Mbim.EventEntry) – a None terminated array of Mbim.EventEntry structs.

Frees the memory allocated for the array of Mbim.EventEntry structs.

New in version 1.4.

Mbim.frequency_range_build_string_from_mask(mask)
Parameters:

mask (Mbim.FrequencyRange) – bitmask of Mbim.FrequencyRange values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.FrequencyRange in mask.

New in version 1.28.

Mbim.intel_boot_mode_get_string(val)
Parameters:

val (Mbim.IntelBootMode) – a Mbim.IntelBootMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.IntelBootMode specified at val.

New in version 1.28.

Mbim.intel_rfim_frequency_value_array_free(array)
Parameters:

array (Mbim.IntelRfimFrequencyValue) – a None terminated array of Mbim.IntelRfimFrequencyValue structs.

Frees the memory allocated for the array of Mbim.IntelRfimFrequencyValue structs.

New in version 1.28.

Mbim.intel_serving_cell_info_get_string(val)
Parameters:

val (Mbim.IntelServingCellInfo) – a Mbim.IntelServingCellInfo.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.IntelServingCellInfo specified at val.

New in version 1.28.

Mbim.ip_configuration_available_flag_build_string_from_mask(mask)
Parameters:

mask (Mbim.IPConfigurationAvailableFlag) – bitmask of Mbim.IPConfigurationAvailableFlag values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.IPConfigurationAvailableFlag in mask.

New in version 1.0.

Mbim.ipv4_element_array_free(array)
Parameters:

array (Mbim.IPv4Element) – a None terminated array of Mbim.IPv4Element structs.

Frees the memory allocated for the array of Mbim.IPv4Element structs.

New in version 1.0.

Mbim.ipv6_element_array_free(array)
Parameters:

array (Mbim.IPv6Element) – a None terminated array of Mbim.IPv6Element structs.

Frees the memory allocated for the array of Mbim.IPv6Element structs.

New in version 1.0.

Mbim.ladn_info_get_string(val)
Parameters:

val (Mbim.LadnInfo) – a Mbim.LadnInfo.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.LadnInfo specified at val.

New in version 1.28.

Mbim.lte_attach_configuration_array_free(array)
Parameters:

array (Mbim.LteAttachConfiguration) – a None terminated array of Mbim.LteAttachConfiguration structs.

Frees the memory allocated for the array of Mbim.LteAttachConfiguration structs.

New in version 1.18.

Mbim.lte_attach_context_operation_get_string(val)
Parameters:

val (Mbim.LteAttachContextOperation) – a Mbim.LteAttachContextOperation.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.LteAttachContextOperation specified at val.

New in version 1.18.

Mbim.lte_attach_context_roaming_control_get_string(val)
Parameters:

val (Mbim.LteAttachContextRoamingControl) – a Mbim.LteAttachContextRoamingControl.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.LteAttachContextRoamingControl specified at val.

New in version 1.18.

Mbim.lte_attach_state_get_string(val)
Parameters:

val (Mbim.LteAttachState) – a Mbim.LteAttachState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.LteAttachState specified at val.

New in version 1.18.

Mbim.lte_attach_status_free(var)
Parameters:

var (Mbim.DeprecatedLteAttachStatus) – a #MbimLteAttachStatus.

Frees the memory allocated for the #MbimLteAttachStatus.

New in version 1.18.

Deprecated since version 1.26.

Mbim.message_command_type_get_string(val)
Parameters:

val (Mbim.MessageCommandType) – a Mbim.MessageCommandType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.MessageCommandType specified at val.

New in version 1.0.

Mbim.message_type_get_string(val)
Parameters:

val (Mbim.MessageType) – a Mbim.MessageType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.MessageType specified at val.

New in version 1.0.

Mbim.mico_mode_get_string(val)
Parameters:

val (Mbim.MicoMode) – a Mbim.MicoMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.MicoMode specified at val.

New in version 1.28.

Mbim.modem_configuration_status_get_string(val)
Parameters:

val (Mbim.ModemConfigurationStatus) – a Mbim.ModemConfigurationStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ModemConfigurationStatus specified at val.

New in version 1.28.

Mbim.network_idle_hint_state_get_string(val)
Parameters:

val (Mbim.NetworkIdleHintState) – a Mbim.NetworkIdleHintState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.NetworkIdleHintState specified at val.

New in version 1.4.

Mbim.nw_error_get_string(val)
Parameters:

val (Mbim.NwError) – a Mbim.NwError.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.NwError specified at val.

New in version 1.0.

Mbim.packet_filter_array_free(array)
Parameters:

array (Mbim.PacketFilter) – a None terminated array of Mbim.PacketFilter structs.

Frees the memory allocated for the array of Mbim.PacketFilter structs.

New in version 1.4.

Mbim.packet_filter_v3_array_free(array)
Parameters:

array (Mbim.PacketFilterV3) – a None terminated array of Mbim.PacketFilterV3 structs.

Frees the memory allocated for the array of Mbim.PacketFilterV3 structs.

New in version 1.28.

Mbim.packet_service_action_get_string(val)
Parameters:

val (Mbim.PacketServiceAction) – a Mbim.PacketServiceAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PacketServiceAction specified at val.

New in version 1.0.

Mbim.packet_service_state_get_string(val)
Parameters:

val (Mbim.PacketServiceState) – a Mbim.PacketServiceState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PacketServiceState specified at val.

New in version 1.0.

Mbim.pco_type_get_string(val)
Parameters:

val (Mbim.PcoType) – a Mbim.PcoType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PcoType specified at val.

New in version 1.18.

Mbim.phonebook_entry_array_free(array)
Parameters:

array (Mbim.PhonebookEntry) – a None terminated array of Mbim.PhonebookEntry structs.

Frees the memory allocated for the array of Mbim.PhonebookEntry structs.

New in version 1.4.

Mbim.phonebook_flag_get_string(val)
Parameters:

val (Mbim.PhonebookFlag) – a Mbim.PhonebookFlag.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PhonebookFlag specified at val.

New in version 1.4.

Mbim.phonebook_state_get_string(val)
Parameters:

val (Mbim.PhonebookState) – a Mbim.PhonebookState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PhonebookState specified at val.

New in version 1.4.

Mbim.phonebook_write_flag_get_string(val)
Parameters:

val (Mbim.PhonebookWriteFlag) – a Mbim.PhonebookWriteFlag.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PhonebookWriteFlag specified at val.

New in version 1.4.

Mbim.pin_format_get_string(val)
Parameters:

val (Mbim.PinFormat) – a Mbim.PinFormat.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinFormat specified at val.

New in version 1.0.

Mbim.pin_mode_get_string(val)
Parameters:

val (Mbim.PinMode) – a Mbim.PinMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinMode specified at val.

New in version 1.0.

Mbim.pin_operation_get_string(val)
Parameters:

val (Mbim.PinOperation) – a Mbim.PinOperation.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinOperation specified at val.

New in version 1.0.

Mbim.pin_state_get_string(val)
Parameters:

val (Mbim.PinState) – a Mbim.PinState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinState specified at val.

New in version 1.0.

Mbim.pin_type_get_string(val)
Parameters:

val (Mbim.PinType) – a Mbim.PinType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.PinType specified at val.

New in version 1.0.

Mbim.protocol_error_get_string(val)
Parameters:

val (Mbim.ProtocolError) – a Mbim.ProtocolError.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.ProtocolError specified at val.

Mbim.protocol_error_quark()
Return type:

int

Mbim.provider_array_free(array)
Parameters:

array (Mbim.Provider) – a None terminated array of Mbim.Provider structs.

Frees the memory allocated for the array of Mbim.Provider structs.

New in version 1.2.

Mbim.provider_state_build_string_from_mask(mask)
Parameters:

mask (Mbim.ProviderState) – bitmask of Mbim.ProviderState values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.ProviderState in mask.

New in version 1.2.

Mbim.provisioned_context_element_array_free(array)
Parameters:

array (Mbim.ProvisionedContextElement) – a None terminated array of Mbim.ProvisionedContextElement structs.

Frees the memory allocated for the array of Mbim.ProvisionedContextElement structs.

New in version 1.0.

Mbim.provisioned_context_element_v2_array_free(array)
Parameters:

array (Mbim.ProvisionedContextElementV2) – a None terminated array of Mbim.ProvisionedContextElementV2 structs.

Frees the memory allocated for the array of Mbim.ProvisionedContextElementV2 structs.

New in version 1.28.

Mbim.qdu_file_type_get_string(val)
Parameters:

val (Mbim.QduFileType) – a Mbim.QduFileType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduFileType specified at val.

New in version 1.26.

Mbim.qdu_quectel_reboot_type_get_string(val)
Parameters:

val (Mbim.QduQuectelRebootType) – a Mbim.QduQuectelRebootType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduQuectelRebootType specified at val.

New in version 1.28.

Mbim.qdu_quectel_version_type_get_string(val)
Parameters:

val (Mbim.QduQuectelVersionType) – a Mbim.QduQuectelVersionType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduQuectelVersionType specified at val.

New in version 1.28.

Mbim.qdu_session_action_get_string(val)
Parameters:

val (Mbim.QduSessionAction) – a Mbim.QduSessionAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduSessionAction specified at val.

New in version 1.26.

Mbim.qdu_session_result_get_string(val)
Parameters:

val (Mbim.QduSessionResult) – a Mbim.QduSessionResult.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduSessionResult specified at val.

New in version 1.26.

Mbim.qdu_session_status_get_string(val)
Parameters:

val (Mbim.QduSessionStatus) – a Mbim.QduSessionStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduSessionStatus specified at val.

New in version 1.26.

Mbim.qdu_session_type_get_string(val)
Parameters:

val (Mbim.QduSessionType) – a Mbim.QduSessionType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QduSessionType specified at val.

New in version 1.26.

Mbim.quectel_radio_switch_state_get_string(val)
Parameters:

val (Mbim.QuectelRadioSwitchState) – a Mbim.QuectelRadioSwitchState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.QuectelRadioSwitchState specified at val.

New in version 1.26.2.

Mbim.radio_switch_state_get_string(val)
Parameters:

val (Mbim.RadioSwitchState) – a Mbim.RadioSwitchState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.RadioSwitchState specified at val.

New in version 1.0.

Mbim.ready_info_flag_build_string_from_mask(mask)
Parameters:

mask (Mbim.ReadyInfoFlag) – bitmask of Mbim.ReadyInfoFlag values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.ReadyInfoFlag in mask.

New in version 1.0.

Mbim.register_action_get_string(val)
Parameters:

val (Mbim.RegisterAction) – a Mbim.RegisterAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.RegisterAction specified at val.

New in version 1.0.

Mbim.register_custom_service(uuid, nickname)
Parameters:
  • uuid (Mbim.Uuid) – Mbim.Uuid structure corresponding to service

  • nickname (str) – a printable name for service

Returns:

True if service has been registered, False otherwise.

Return type:

int

Register a custom service

New in version 1.10.

Mbim.register_mode_get_string(val)
Parameters:

val (Mbim.RegisterMode) – a Mbim.RegisterMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.RegisterMode specified at val.

New in version 1.0.

Mbim.register_state_get_string(val)
Parameters:

val (Mbim.RegisterState) – a Mbim.RegisterState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.RegisterState specified at val.

New in version 1.0.

Mbim.registration_flag_build_string_from_mask(mask)
Parameters:

mask (Mbim.RegistrationFlag) – bitmask of Mbim.RegistrationFlag values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.RegistrationFlag in mask.

New in version 1.0.

Mbim.rsrp_snr_info_array_free(array)
Parameters:

array (Mbim.RsrpSnrInfo) – a None terminated array of Mbim.RsrpSnrInfo structs.

Frees the memory allocated for the array of Mbim.RsrpSnrInfo structs.

New in version 1.28.

Mbim.sar_backoff_state_get_string(val)
Parameters:

val (Mbim.SarBackoffState) – a Mbim.SarBackoffState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SarBackoffState specified at val.

New in version 1.26.

Mbim.sar_config_state_array_free(array)
Parameters:

array (Mbim.SarConfigState) – a None terminated array of Mbim.SarConfigState structs.

Frees the memory allocated for the array of Mbim.SarConfigState structs.

New in version 1.26.

Mbim.sar_control_mode_get_string(val)
Parameters:

val (Mbim.SarControlMode) – a Mbim.SarControlMode.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SarControlMode specified at val.

New in version 1.26.

Mbim.sar_wifi_hardware_state_get_string(val)
Parameters:

val (Mbim.SarWifiHardwareState) – a Mbim.SarWifiHardwareState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SarWifiHardwareState specified at val.

New in version 1.26.

Mbim.service_get_string(val)
Parameters:

val (Mbim.Service) – a Mbim.Service.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.Service specified at val.

New in version 1.0.

Mbim.service_id_is_custom(id)
Parameters:

id (int) – ID of the service

Returns:

True if service is custom, False otherwise.

Return type:

bool

Checks whether id is a custom or standard service.

New in version 1.10.

Mbim.service_lookup_name(service)
Parameters:

service (int) – a Mbim.Service or custom service.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the service.

As opposed to Mbim.Service.get_string(), this methods takes into account custom services that may have been registered by the user.

New in version 1.10.

Mbim.sim_class_build_string_from_mask(mask)
Parameters:

mask (Mbim.SimClass) – bitmask of Mbim.SimClass values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.SimClass in mask.

New in version 1.0.

Mbim.slot_array_free(array)
Parameters:

array (Mbim.Slot) – a None terminated array of Mbim.Slot structs.

Frees the memory allocated for the array of Mbim.Slot structs.

New in version 1.26.

Mbim.sms_caps_build_string_from_mask(mask)
Parameters:

mask (Mbim.SmsCaps) – bitmask of Mbim.SmsCaps values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.SmsCaps in mask.

New in version 1.0.

Mbim.sms_cdma_encoding_get_string(val)
Parameters:

val (Mbim.SmsCdmaEncoding) – a Mbim.SmsCdmaEncoding.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsCdmaEncoding specified at val.

New in version 1.4.

Mbim.sms_cdma_lang_get_string(val)
Parameters:

val (Mbim.SmsCdmaLang) – a Mbim.SmsCdmaLang.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsCdmaLang specified at val.

New in version 1.4.

Mbim.sms_cdma_read_record_array_free(array)
Parameters:

array (Mbim.SmsCdmaReadRecord) – a None terminated array of Mbim.SmsCdmaReadRecord structs.

Frees the memory allocated for the array of Mbim.SmsCdmaReadRecord structs.

New in version 1.4.

Mbim.sms_flag_get_string(val)
Parameters:

val (Mbim.SmsFlag) – a Mbim.SmsFlag.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsFlag specified at val.

New in version 1.4.

Mbim.sms_format_get_string(val)
Parameters:

val (Mbim.SmsFormat) – a Mbim.SmsFormat.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsFormat specified at val.

New in version 1.4.

Mbim.sms_pdu_read_record_array_free(array)
Parameters:

array (Mbim.SmsPduReadRecord) – a None terminated array of Mbim.SmsPduReadRecord structs.

Frees the memory allocated for the array of Mbim.SmsPduReadRecord structs.

New in version 1.4.

Mbim.sms_status_flag_build_string_from_mask(mask)
Parameters:

mask (Mbim.SmsStatusFlag) – bitmask of Mbim.SmsStatusFlag values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.SmsStatusFlag in mask.

New in version 1.4.

Mbim.sms_status_flag_get_string(val)
Parameters:

val (Mbim.SmsStatusFlag) – a Mbim.SmsStatusFlag.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsStatusFlag specified at val.

New in version 1.4.

Deprecated since version 1.30: Use Mbim.SmsStatusFlag.build_string_from_mask() instead.

Mbim.sms_status_get_string(val)
Parameters:

val (Mbim.SmsStatus) – a Mbim.SmsStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsStatus specified at val.

New in version 1.4.

Mbim.sms_storage_state_get_string(val)
Parameters:

val (Mbim.SmsStorageState) – a Mbim.SmsStorageState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SmsStorageState specified at val.

New in version 1.4.

Mbim.status_error_get_string(val)
Parameters:

val (Mbim.StatusError) – a Mbim.StatusError.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.StatusError specified at val.

Mbim.status_error_quark()
Return type:

int

Mbim.stk_pac_profile_get_string(val)
Parameters:

val (Mbim.StkPacProfile) – a Mbim.StkPacProfile.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.StkPacProfile specified at val.

New in version 1.4.

Mbim.stk_pac_type_get_string(val)
Parameters:

val (Mbim.StkPacType) – a Mbim.StkPacType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.StkPacType specified at val.

New in version 1.4.

Mbim.subscriber_ready_state_get_string(val)
Parameters:

val (Mbim.SubscriberReadyState) – a Mbim.SubscriberReadyState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.SubscriberReadyState specified at val.

New in version 1.0.

Mbim.subscriber_ready_status_flag_build_string_from_mask(mask)
Parameters:

mask (Mbim.SubscriberReadyStatusFlag) – bitmask of Mbim.SubscriberReadyStatusFlag values.

Returns:

a string with the list of nicknames, or None if none given. The returned value should be freed with GLib.free().

Return type:

str

Builds a string containing a comma-separated list of nicknames for each Mbim.SubscriberReadyStatusFlag in mask.

New in version 1.28.

Mbim.terminal_capability_info_array_free(array)
Parameters:

array (Mbim.TerminalCapabilityInfo) – a None terminated array of Mbim.TerminalCapabilityInfo structs.

Frees the memory allocated for the array of Mbim.TerminalCapabilityInfo structs.

New in version 1.26.

Mbim.tlv_type_get_string(val)
Parameters:

val (Mbim.TlvType) – a Mbim.TlvType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.TlvType specified at val.

New in version 1.28.

Mbim.trace_command_get_string(val)
Parameters:

val (Mbim.TraceCommand) – a Mbim.TraceCommand.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.TraceCommand specified at val.

New in version 1.30.

Mbim.transmission_notification_status_get_string(val)
Parameters:

val (Mbim.TransmissionNotificationStatus) – a Mbim.TransmissionNotificationStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.TransmissionNotificationStatus specified at val.

New in version 1.26.

Mbim.transmission_state_get_string(val)
Parameters:

val (Mbim.TransmissionState) – a Mbim.TransmissionState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.TransmissionState specified at val.

New in version 1.26.

Mbim.uicc_application_array_free(array)
Parameters:

array (Mbim.UiccApplication) – a None terminated array of Mbim.UiccApplication structs.

Frees the memory allocated for the array of Mbim.UiccApplication structs.

New in version 1.28.

Mbim.uicc_application_type_get_string(val)
Parameters:

val (Mbim.UiccApplicationType) – a Mbim.UiccApplicationType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccApplicationType specified at val.

New in version 1.28.

Mbim.uicc_class_byte_type_get_string(val)
Parameters:

val (Mbim.UiccClassByteType) – a Mbim.UiccClassByteType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccClassByteType specified at val.

New in version 1.26.

Mbim.uicc_file_accessibility_get_string(val)
Parameters:

val (Mbim.UiccFileAccessibility) – a Mbim.UiccFileAccessibility.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccFileAccessibility specified at val.

New in version 1.28.

Mbim.uicc_file_structure_get_string(val)
Parameters:

val (Mbim.UiccFileStructure) – a Mbim.UiccFileStructure.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccFileStructure specified at val.

New in version 1.28.

Mbim.uicc_file_type_get_string(val)
Parameters:

val (Mbim.UiccFileType) – a Mbim.UiccFileType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccFileType specified at val.

New in version 1.28.

Mbim.uicc_pass_through_action_get_string(val)
Parameters:

val (Mbim.UiccPassThroughAction) – a Mbim.UiccPassThroughAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccPassThroughAction specified at val.

New in version 1.26.

Mbim.uicc_pass_through_status_get_string(val)
Parameters:

val (Mbim.UiccPassThroughStatus) – a Mbim.UiccPassThroughStatus.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccPassThroughStatus specified at val.

New in version 1.26.

Mbim.uicc_secure_messaging_get_string(val)
Parameters:

val (Mbim.UiccSecureMessaging) – a Mbim.UiccSecureMessaging.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccSecureMessaging specified at val.

New in version 1.26.

Mbim.uicc_slot_state_get_string(val)
Parameters:

val (Mbim.UiccSlotState) – a Mbim.UiccSlotState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UiccSlotState specified at val.

New in version 1.26.

Mbim.unregister_custom_service(id)
Parameters:

id (int) – ID of the service to unregister.MbimUuid structure corresponding to service

Returns:

True if service has been unregistered, False otherwise.

Return type:

bool

Unregister a custom service.

New in version 1.10.

Mbim.ussd_action_get_string(val)
Parameters:

val (Mbim.UssdAction) – a Mbim.UssdAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UssdAction specified at val.

New in version 1.4.

Mbim.ussd_response_get_string(val)
Parameters:

val (Mbim.UssdResponse) – a Mbim.UssdResponse.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UssdResponse specified at val.

New in version 1.4.

Mbim.ussd_session_state_get_string(val)
Parameters:

val (Mbim.UssdSessionState) – a Mbim.UssdSessionState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.UssdSessionState specified at val.

New in version 1.4.

Mbim.utils_get_show_personal_info()
Returns:

True to show personal info in trace, False otherwise.

Return type:

bool

Checks whether personal info should be hidden when traces are enabled.

New in version 1.28.

Mbim.utils_get_traces_enabled()
Returns:

True if traces are enabled, False otherwise.

Return type:

bool

Checks whether MBIM message traces are currently enabled.

New in version 1.0.

Mbim.utils_set_show_personal_info(show_personal_info)
Parameters:

show_personal_info (bool) – True to show personal info in traces, False otherwise.

Sets whether personal info is printed when traces are enabled.

New in version 1.28.

Mbim.utils_set_traces_enabled(enabled)
Parameters:

enabled (bool) – True to enable traces, False to disable them.

Sets whether MBIM message traces are enabled or disabled.

New in version 1.0.

Mbim.uuid_from_context_type(context_type)
Parameters:

context_type (Mbim.ContextType) – a Mbim.ContextType.

Returns:

a Mbim.Uuid.

Return type:

Mbim.Uuid

Get the UUID corresponding to context_type.

New in version 1.0.

Mbim.uuid_from_printable(str, uuid)
Parameters:
Returns:

True if uuid was correctly set, False otherwise.

Return type:

bool

Fills in uuid from the printable representation give in str.

Only ccepts str written with dashes separating items, e.g.: a289cc33-bcbb-8b4f-b6b0-133ec2aae6df

New in version 1.8.

Mbim.uuid_from_service(service)
Parameters:

service (Mbim.Service) – a Mbim.Service.

Returns:

a Mbim.Uuid.

Return type:

Mbim.Uuid

Get the UUID corresponding to service.

The service needs to be either a generic one (including Mbim.Service.INVALID) or a custom registered one.

New in version 1.0.

Mbim.visible_providers_action_get_string(val)
Parameters:

val (Mbim.VisibleProvidersAction) – a Mbim.VisibleProvidersAction.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.VisibleProvidersAction specified at val.

New in version 1.2.

Mbim.voice_call_state_get_string(val)
Parameters:

val (Mbim.VoiceCallState) – a Mbim.VoiceCallState.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.VoiceCallState specified at val.

New in version 1.0.

Mbim.voice_class_get_string(val)
Parameters:

val (Mbim.VoiceClass) – a Mbim.VoiceClass.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.VoiceClass specified at val.

New in version 1.0.

Mbim.wake_type_get_string(val)
Parameters:

val (Mbim.WakeType) – a Mbim.WakeType.

Returns:

a string with the nickname, or None if not found. Do not free the returned value.

Return type:

str

Gets the nickname string for the Mbim.WakeType specified at val.

New in version 1.28.