api,bearer: new 'profile-source' setting

Sometimes it's useful to know how a given stored profile was created,
so devices can store and report this kind of information.
This commit is contained in:
Aleksander Morgado
2021-11-04 22:05:06 +01:00
parent 73a29c3e33
commit fc6bc84d22
4 changed files with 36 additions and 0 deletions

View File

@@ -1858,4 +1858,26 @@ typedef enum { /*< underscore_name=mm_bearer_roaming_allowance >*/
MM_BEARER_ROAMING_ALLOWANCE_NON_PARTNER = 1 << 2,
} MMBearerRoamingAllowance;
/**
* MMBearerProfileSource:
* @MM_BEARER_PROFILE_SOURCE_UNKNOWN: Unknown.
* @MM_BEARER_PROFILE_SOURCE_ADMIN: Profile created by an enterprise IT admin from the OS.
* @MM_BEARER_PROFILE_SOURCE_USER: Profile created by the user.
* @MM_BEARER_PROFILE_SOURCE_OPERATOR: Profile created by the operator through OMA-DM or similar.
* @MM_BEARER_PROFILE_SOURCE_MODEM: Profile created by the OEM that was included with the modem firmware.
* @MM_BEARER_PROFILE_SOURCE_DEVICE: Profile created by the OS APN database.
*
* Value specifying how a given context was created, mostly for informative purposes.
*
* Since: 1.20
*/
typedef enum { /*< underscore_name=mm_bearer_profile_source >*/
MM_BEARER_PROFILE_SOURCE_UNKNOWN = 0,
MM_BEARER_PROFILE_SOURCE_ADMIN = 1,
MM_BEARER_PROFILE_SOURCE_USER = 2,
MM_BEARER_PROFILE_SOURCE_OPERATOR = 3,
MM_BEARER_PROFILE_SOURCE_MODEM = 4,
MM_BEARER_PROFILE_SOURCE_DEVICE = 5,
} MMBearerProfileSource;
#endif /* _MODEMMANAGER_ENUMS_H_ */