sms-part: new symbol to define invalid indexes
SMS parts with invalid indexes are NOT stored yet in the device
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
typedef struct _MMSmsPart MMSmsPart;
|
||||
|
||||
#define SMS_MAX_PDU_LEN 344
|
||||
#define SMS_PART_INVALID_INDEX G_MAXUINT
|
||||
|
||||
MMSmsPart *mm_sms_part_new (guint index);
|
||||
MMSmsPart *mm_sms_part_new_from_pdu (guint index,
|
||||
|
||||
+1
-1
@@ -509,7 +509,7 @@ mm_sms_new_from_properties (MMBaseModem *modem,
|
||||
{
|
||||
MMSmsPart *part;
|
||||
|
||||
part = mm_sms_part_new (0);
|
||||
part = mm_sms_part_new (SMS_PART_INVALID_INDEX);
|
||||
mm_sms_part_set_text (part, mm_common_sms_properties_get_text (properties));
|
||||
mm_sms_part_set_number (part, mm_common_sms_properties_get_number (properties));
|
||||
mm_sms_part_set_smsc (part, mm_common_sms_properties_get_smsc (properties));
|
||||
|
||||
Reference in New Issue
Block a user