| Top |  |  |  |  | 
This section implements support for requests, responses and notifications in the Sms service.
void
mbim_sms_pdu_read_record_array_free (MbimSmsPduReadRecordArray *array);
Frees the memory allocated for the array of MbimSmsPduReadRecord structs.
Since: 1.4
void
mbim_sms_cdma_read_record_array_free (MbimSmsCdmaReadRecordArray *array);
Frees the memory allocated for the array of MbimSmsCdmaReadRecord structs.
Since: 1.4
void
mbim_sms_pdu_send_record_free (MbimSmsPduSendRecord *var);
Frees the memory allocated for the MbimSmsPduSendRecord.
Since: 1.4
void
mbim_sms_cdma_send_record_free (MbimSmsCdmaSendRecord *var);
Frees the memory allocated for the MbimSmsCdmaSendRecord.
Since: 1.4
MbimMessage *
mbim_message_sms_configuration_query_new
                               (GError **error);
Create a new request for the 'Configuration' query command in the 'SMS' service.
Since: 1.4
MbimMessage * mbim_message_sms_configuration_set_new (MbimSmsFormat format,const gchar *sc_address,GError **error);
Create a new request for the 'Configuration' set command in the 'SMS' service.
| format | the 'Format' field, given as a MbimSmsFormat. | [in] | 
| sc_address | the 'ScAddress' field, given as a string. | [in] | 
| error | return location for error or  | 
Since: 1.4
gboolean mbim_message_sms_configuration_response_parse (const MbimMessage *message,MbimSmsStorageState *out_sms_storage_state,MbimSmsFormat *out_format,guint32 *out_max_messages,guint32 *out_cdma_short_message_size,gchar **out_sc_address,GError **error);
Parses and returns parameters of the 'Configuration' response command in the 'SMS' service.
| message | the MbimMessage. | |
| out_sms_storage_state | return location for a MbimSmsStorageState, or  | [out][optional][transfer none] | 
| out_format | return location for a MbimSmsFormat, or  | [out][optional][transfer none] | 
| out_max_messages | return location for a guint32, or  | [out][optional][transfer none] | 
| out_cdma_short_message_size | return location for a guint32, or  | [out][optional][transfer none] | 
| out_sc_address | return location for a newly allocated string, or  | [out][optional][transfer full] | 
| error | return location for error or  | 
Since: 1.4
MbimMessage * mbim_message_sms_read_query_new (MbimSmsFormat format,MbimSmsFlag flag,guint32 message_index,GError **error);
Create a new request for the 'Read' query command in the 'SMS' service.
| format | the 'Format' field, given as a MbimSmsFormat. | [in] | 
| flag | the 'Flag' field, given as a MbimSmsFlag. | [in] | 
| message_index | the 'MessageIndex' field, given as a guint32. | [in] | 
| error | return location for error or  | 
Since: 1.4
gboolean mbim_message_sms_read_response_parse (const MbimMessage *message,MbimSmsFormat *out_format,guint32 *out_messages_count,MbimSmsPduReadRecordArray **out_pdu_messages,MbimSmsCdmaReadRecordArray **out_cdma_messages,GError **error);
Parses and returns parameters of the 'Read' response command in the 'SMS' service.
| message | the MbimMessage. | |
| out_format | return location for a MbimSmsFormat, or  | [out][optional][transfer none] | 
| out_messages_count | return location for a guint32, or  | [out][optional][transfer none] | 
| out_pdu_messages | return location for a newly allocated array of MbimSmsPduReadRecord items, or  | [out][optional][transfer full][array zero-terminated=1][element-type MbimSmsPduReadRecord] | 
| out_cdma_messages | return location for a newly allocated array of MbimSmsCdmaReadRecord items, or  | [out][optional][transfer full][array zero-terminated=1][element-type MbimSmsCdmaReadRecord] | 
| error | return location for error or  | 
Since: 1.4
gboolean mbim_message_sms_read_notification_parse (const MbimMessage *message,MbimSmsFormat *out_format,guint32 *out_messages_count,MbimSmsPduReadRecordArray **out_pdu_messages,MbimSmsCdmaReadRecordArray **out_cdma_messages,GError **error);
Parses and returns parameters of the 'Read' notification command in the 'SMS' service.
| message | the MbimMessage. | |
| out_format | return location for a MbimSmsFormat, or  | [out][optional][transfer none] | 
| out_messages_count | return location for a guint32, or  | [out][optional][transfer none] | 
| out_pdu_messages | return location for a newly allocated array of MbimSmsPduReadRecord items, or  | [out][optional][transfer full][array zero-terminated=1][element-type MbimSmsPduReadRecord] | 
| out_cdma_messages | return location for a newly allocated array of MbimSmsCdmaReadRecord items, or  | [out][optional][transfer full][array zero-terminated=1][element-type MbimSmsCdmaReadRecord] | 
| error | return location for error or  | 
Since: 1.4
MbimMessage * mbim_message_sms_send_set_new (MbimSmsFormat format,const MbimSmsPduSendRecord *pdu_message,const MbimSmsCdmaSendRecord *cdma_message,GError **error);
Create a new request for the 'Send' set command in the 'SMS' service.
| format | the 'Format' field, given as a MbimSmsFormat. | [in] | 
| pdu_message | the 'PduMessage' field, given as a MbimSmsPduSendRecord. | [in] | 
| cdma_message | the 'CdmaMessage' field, given as a MbimSmsCdmaSendRecord. | [in] | 
| error | return location for error or  | 
Since: 1.4
gboolean mbim_message_sms_send_response_parse (const MbimMessage *message,guint32 *out_message_reference,GError **error);
Parses and returns parameters of the 'Send' response command in the 'SMS' service.
| message | the MbimMessage. | |
| out_message_reference | return location for a guint32, or  | [out][optional][transfer none] | 
| error | return location for error or  | 
Since: 1.4
MbimMessage * mbim_message_sms_delete_set_new (MbimSmsFlag flag,guint32 message_index,GError **error);
Create a new request for the 'Delete' set command in the 'SMS' service.
| flag | the 'Flag' field, given as a MbimSmsFlag. | [in] | 
| message_index | the 'MessageIndex' field, given as a guint32. | [in] | 
| error | return location for error or  | 
Since: 1.4
gboolean mbim_message_sms_delete_response_parse (const MbimMessage *message,GError **error);
Parses and returns parameters of the 'Delete' response command in the 'SMS' service.
Since: 1.4
MbimMessage *
mbim_message_sms_message_store_status_query_new
                               (GError **error);
Create a new request for the 'Message Store Status' query command in the 'SMS' service.
Since: 1.4
gboolean mbim_message_sms_message_store_status_response_parse (const MbimMessage *message,MbimSmsStatusFlag *out_flag,guint32 *out_message_index,GError **error);
Parses and returns parameters of the 'Message Store Status' response command in the 'SMS' service.
| message | the MbimMessage. | |
| out_flag | return location for a MbimSmsStatusFlag, or  | [out][optional][transfer none] | 
| out_message_index | return location for a guint32, or  | [out][optional][transfer none] | 
| error | return location for error or  | 
Since: 1.4
gboolean mbim_message_sms_message_store_status_notification_parse (const MbimMessage *message,MbimSmsStatusFlag *out_flag,guint32 *out_message_index,GError **error);
Parses and returns parameters of the 'Message Store Status' notification command in the 'SMS' service.
| message | the MbimMessage. | |
| out_flag | return location for a MbimSmsStatusFlag, or  | [out][optional][transfer none] | 
| out_message_index | return location for a guint32, or  | [out][optional][transfer none] | 
| error | return location for error or  | 
Since: 1.4
typedef struct {
    guint32 message_index;
    guint32 message_status;
    guint32 pdu_data_size;
    guint8 *pdu_data;
} MbimSmsPduReadRecord;
A MbimSmsPduReadRecord element.
Since: 1.4
typedef MbimSmsPduReadRecord *MbimSmsPduReadRecordArray;
A NULL-terminated array of MbimSmsPduReadRecord elements.
Since: 1.24
typedef struct {
    guint32 message_index;
    guint32 message_status;
    gchar *address;
    gchar *timestamp;
    guint32 encoding;
    guint32 language;
    guint32 encoded_message_size;
    guint8 *encoded_message;
    guint32 encoded_message_size_in_characters;
} MbimSmsCdmaReadRecord;
A MbimSmsCdmaReadRecord element.
| guint32  | a guint32. | |
| guint32  | a guint32. | |
| gchar * | a string. | |
| gchar * | a string. | |
| guint32  | a guint32. | |
| guint32  | a guint32. | |
| guint32  | size of the encoded_message array. | |
| guint8 * | an array of guint8 values. | |
| guint32  | a guint32. | 
Since: 1.4
typedef MbimSmsCdmaReadRecord *MbimSmsCdmaReadRecordArray;
A NULL-terminated array of MbimSmsCdmaReadRecord elements.
Since: 1.24
typedef struct {
    guint32 pdu_data_size;
    guint8 *pdu_data;
} MbimSmsPduSendRecord;
A MbimSmsPduSendRecord element.
Since: 1.4
typedef struct {
    guint32 encoding;
    guint32 language;
    gchar *address;
    guint32 encoded_message_size;
    guint8 *encoded_message;
    guint32 encoded_message_size_in_characters;
} MbimSmsCdmaSendRecord;
A MbimSmsCdmaSendRecord element.
Since: 1.4