From 73a29c3e330ab44780661324b2d24e964a34f55b Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 4 Nov 2021 21:49:36 +0100 Subject: api,bearer: new 'roaming-allowance' setting The 'allow-roaming' setting should be considered deprecated for 3GPP devices that support the new 'roaming-allowance' setting, which is much more detailed (as it allows to differentiate between partner and non-partner networks) and may also be stored as part of a profile. --- include/ModemManager-enums.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include') diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h index 6abad2c1..422ed52c 100644 --- a/include/ModemManager-enums.h +++ b/include/ModemManager-enums.h @@ -1840,4 +1840,22 @@ typedef enum { /*< underscore_name=mm_bearer_access_type_preference >*/ MM_BEARER_ACCESS_TYPE_PREFERENCE_NON_3GPP_ONLY = 3, } MMBearerAccessTypePreference; +/** + * MMBearerRoamingAllowance: + * @MM_BEARER_ROAMING_ALLOWANCE_NONE: No explicit roaming allowance rules. + * @MM_BEARER_ROAMING_ALLOWANCE_HOME: Home network allowed. + * @MM_BEARER_ROAMING_ALLOWANCE_PARTNER: Partner network allowed. + * @MM_BEARER_ROAMING_ALLOWANCE_NON_PARTNER: Non-parter network allowed. + * + * Bitmask specifying roaming allowance rules for different network types. + * + * Since: 1.20 + */ +typedef enum { /*< underscore_name=mm_bearer_roaming_allowance >*/ + MM_BEARER_ROAMING_ALLOWANCE_NONE = 0, + MM_BEARER_ROAMING_ALLOWANCE_HOME = 1 << 0, + MM_BEARER_ROAMING_ALLOWANCE_PARTNER = 1 << 1, + MM_BEARER_ROAMING_ALLOWANCE_NON_PARTNER = 1 << 2, +} MMBearerRoamingAllowance; + #endif /* _MODEMMANAGER_ENUMS_H_ */ -- cgit v1.2.3-70-g09d2