api,introspection: update 'Validity' property in the SMS interface
We don't want to support only 'relative' validity, so don't assume that the Validity property will always be a uint32 value. Instead, we define the Validity propery as '(uv)' tuple, where the first value (a MMSmsValidityType) specifies the type of validity, and the second value is a variant formatted accordingly to what the validity type specifies (e.g. a uint32 value if the type is MM_SMS_VALIDITY_TYPE_RELATIVE).
This commit is contained in:
@@ -521,6 +521,22 @@ typedef enum { /*< underscore_name=mm_sms_storage >*/
|
||||
MM_SMS_STORAGE_TA = 6,
|
||||
} MMSmsStorage;
|
||||
|
||||
/**
|
||||
* MMSmsValidityType:
|
||||
* @MM_SMS_VALIDITY_TYPE_UNKNOWN: Validity type unknown.
|
||||
* @MM_SMS_VALIDITY_TYPE_RELATIVE: Relative validity.
|
||||
* @MM_SMS_VALIDITY_TYPE_ABSOLUTE: Absolute validity.
|
||||
* @MM_SMS_VALIDITY_TYPE_ENHANCED: Enhanced validity.
|
||||
*
|
||||
* Type of SMS validity value.
|
||||
*/
|
||||
typedef enum { /*< underscore_name=mm_sms_validity_type >*/
|
||||
MM_SMS_VALIDITY_TYPE_UNKNOWN = 0,
|
||||
MM_SMS_VALIDITY_TYPE_RELATIVE = 1,
|
||||
MM_SMS_VALIDITY_TYPE_ABSOLUTE = 2,
|
||||
MM_SMS_VALIDITY_TYPE_ENHANCED = 3,
|
||||
} MMSmsValidityType;
|
||||
|
||||
/**
|
||||
* MMModemLocationSource:
|
||||
* @MM_MODEM_LOCATION_SOURCE_NONE: None.
|
||||
|
Reference in New Issue
Block a user