From dc154cf005bbcb2f0bd1123093f6ac3c402c4de8 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 11 Nov 2018 14:46:53 +0100 Subject: api,bearer: new 'BearerType' property Until now we have only allowed to use and setup 'default bearers' (in 4G) or 'primary contexts' (in 2G/3G). We can define a couple of additional bearer types, though: * The 'dedicated bearers' (in 4G) or 'secondary contexts' (in 2G/3G), which are associated to a specific default/primary one, but which provide specific QoS settings configured via traffic flow templates. * The 'initial default EPS bearer', which is a special case of default bearer in LTE, which is automatically created and connected when the modem is registered in the LTE network. This commit introduces a new 'MMBearerType' enumeration that will be associated to each bearer through a 'BearerType' property in the org.freedesktop.ModemManager1.Bearer interface, showing what kind of bearer/context this is. By default, right now, all bearer objects created are 'default' bearers. --- docs/reference/api/ModemManager-sections.txt | 1 + docs/reference/libmm-glib/libmm-glib-sections.txt | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'docs/reference') diff --git a/docs/reference/api/ModemManager-sections.txt b/docs/reference/api/ModemManager-sections.txt index 6848c6cf..a3fafe6b 100644 --- a/docs/reference/api/ModemManager-sections.txt +++ b/docs/reference/api/ModemManager-sections.txt @@ -10,6 +10,7 @@ MM_CHECK_VERSION
mm-enums Flags and Enumerations +MMBearerType MMBearerIpFamily MMBearerIpMethod MMBearerAllowedAuth diff --git a/docs/reference/libmm-glib/libmm-glib-sections.txt b/docs/reference/libmm-glib/libmm-glib-sections.txt index 69e0731d..bd169db6 100644 --- a/docs/reference/libmm-glib/libmm-glib-sections.txt +++ b/docs/reference/libmm-glib/libmm-glib-sections.txt @@ -984,6 +984,7 @@ mm_bearer_dup_interface mm_bearer_get_connected mm_bearer_get_suspended mm_bearer_get_ip_timeout +mm_bearer_get_bearer_type mm_bearer_peek_ipv4_config mm_bearer_get_ipv4_config mm_bearer_peek_ipv6_config @@ -1385,6 +1386,7 @@ mm_call_audio_format_get_type
mm-enums-types Flags and Enumerations +mm_bearer_type_get_string mm_bearer_ip_method_get_string mm_bearer_ip_family_get_string mm_bearer_allowed_auth_build_string_from_mask @@ -1445,6 +1447,7 @@ mm_sms_cdma_service_category_build_string_from_mask mm_modem_location_source_get_string mm_modem_location_assistance_data_type_get_string mm_modem_contacts_storage_build_string_from_mask +mm_bearer_type_build_string_from_mask mm_bearer_ip_family_build_string_from_mask mm_bearer_ip_method_build_string_from_mask mm_bearer_allowed_auth_get_string @@ -1467,6 +1470,7 @@ mm_call_direction_build_string_from_mask mm_call_state_build_string_from_mask mm_call_state_reason_build_string_from_mask +MM_TYPE_BEARER_TYPE MM_TYPE_BEARER_IP_FAMILY MM_TYPE_BEARER_IP_METHOD MM_TYPE_BEARER_ALLOWED_AUTH @@ -1507,6 +1511,7 @@ MM_TYPE_OMA_SESSION_TYPE MM_TYPE_CALL_DIRECTION MM_TYPE_CALL_STATE MM_TYPE_CALL_STATE_REASON +mm_bearer_type_get_type mm_bearer_ip_family_get_type mm_bearer_ip_method_get_type mm_bearer_allowed_auth_get_type @@ -1596,6 +1601,7 @@ mm_gdbus_bearer_get_properties mm_gdbus_bearer_dup_properties mm_gdbus_bearer_get_connected mm_gdbus_bearer_get_suspended +mm_gdbus_bearer_get_bearer_type mm_gdbus_bearer_get_stats mm_gdbus_bearer_dup_stats @@ -1614,6 +1620,7 @@ mm_gdbus_bearer_set_ip6_config mm_gdbus_bearer_set_ip_timeout mm_gdbus_bearer_set_properties mm_gdbus_bearer_set_suspended +mm_gdbus_bearer_set_bearer_type mm_gdbus_bearer_set_stats mm_gdbus_bearer_override_properties mm_gdbus_bearer_complete_connect -- cgit v1.2.3-70-g09d2