|  |  |  | libmbim-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
MbimSmsPduReadRecord; void mbim_sms_pdu_read_record_array_free (MbimSmsPduReadRecord **array); MbimSmsCdmaReadRecord; void mbim_sms_cdma_read_record_array_free (MbimSmsCdmaReadRecord **array); MbimSmsPduSendRecord; void mbim_sms_pdu_send_record_free (MbimSmsPduSendRecord *var); MbimSmsCdmaSendRecord; void mbim_sms_cdma_send_record_free (MbimSmsCdmaSendRecord *var); MbimMessage * mbim_message_sms_configuration_query_new (GError **error); MbimMessage * mbim_message_sms_configuration_set_new (MbimSmsFormat format,const gchar *sc_address,GError **error); gboolean mbim_message_sms_configuration_response_parse (const MbimMessage *message,MbimSmsStorageState *sms_storage_state,MbimSmsFormat *format,guint32 *max_messages,guint32 *cdma_short_message_size,gchar **sc_address,GError **error); MbimMessage * mbim_message_sms_read_query_new (MbimSmsFormat format,MbimSmsFlag flag,guint32 message_index,GError **error); gboolean mbim_message_sms_read_response_parse (const MbimMessage *message,MbimSmsFormat *format,guint32 *messages_count,MbimSmsPduReadRecord ***pdu_messages,MbimSmsCdmaReadRecord ***cdma_messages,GError **error); gboolean mbim_message_sms_read_notification_parse (const MbimMessage *message,MbimSmsFormat *format,guint32 *messages_count,MbimSmsPduReadRecord ***pdu_messages,MbimSmsCdmaReadRecord ***cdma_messages,GError **error); MbimMessage * mbim_message_sms_send_set_new (MbimSmsFormat format,const MbimSmsPduSendRecord *pdu_message,const MbimSmsCdmaSendRecord *cdma_message,GError **error); gboolean mbim_message_sms_send_response_parse (const MbimMessage *message,guint32 *message_reference,GError **error); MbimMessage * mbim_message_sms_delete_set_new (MbimSmsFlag flag,guint32 message_index,GError **error); gboolean mbim_message_sms_delete_response_parse (const MbimMessage *message,GError **error); MbimMessage * mbim_message_sms_message_store_status_query_new (GError **error); gboolean mbim_message_sms_message_store_status_response_parse (const MbimMessage *message,MbimSmsStatusFlag *flag,guint32 *message_index,GError **error); gboolean mbim_message_sms_message_store_status_notification_parse (const MbimMessage *message,MbimSmsStatusFlag *flag,guint32 *message_index,GError **error);
typedef struct {
    guint32 message_index;
    guint32 message_status;
    guint32 pdu_data_size;
    guint8 *pdu_data;
} MbimSmsPduReadRecord;
void                mbim_sms_pdu_read_record_array_free (MbimSmsPduReadRecord **array);
Frees the memory allocated for the array of MbimSmsPduReadRecords.
| 
 | a NULL terminated array of MbimSmsPduReadRecord structs. | 
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;
| 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. | 
void                mbim_sms_cdma_read_record_array_free
                                                        (MbimSmsCdmaReadRecord **array);
Frees the memory allocated for the array of MbimSmsCdmaReadRecords.
| 
 | a NULL terminated array of MbimSmsCdmaReadRecord structs. | 
typedef struct {
    guint32 pdu_data_size;
    guint8 *pdu_data;
} MbimSmsPduSendRecord;
void                mbim_sms_pdu_send_record_free       (MbimSmsPduSendRecord *var);
Frees the memory allocated for the MbimSmsPduSendRecord.
| 
 | a MbimSmsPduSendRecord. | 
typedef struct {
    guint32 encoding;
    guint32 language;
    gchar *address;
    guint32 encoded_message_size;
    guint8 *encoded_message;
    guint32 encoded_message_size_in_characters;
} MbimSmsCdmaSendRecord;
void                mbim_sms_cdma_send_record_free      (MbimSmsCdmaSendRecord *var);
Frees the memory allocated for the MbimSmsCdmaSendRecord.
| 
 | a MbimSmsCdmaSendRecord. | 
MbimMessage *       mbim_message_sms_configuration_query_new
                                                        (GError **error);
Create a new request for the 'Configuration' query command in the 'SMS' service.
| 
 | return location for error or NULL. | 
| Returns : | a newly allocated MbimMessage, which should be freed with mbim_message_unref(). | 
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.
| 
 | the 'Format' field, given as a MbimSmsFormat. | 
| 
 | the 'ScAddress' field, given as a string. | 
| 
 | return location for error or NULL. | 
| Returns : | a newly allocated MbimMessage, which should be freed with mbim_message_unref(). | 
gboolean mbim_message_sms_configuration_response_parse (const MbimMessage *message,MbimSmsStorageState *sms_storage_state,MbimSmsFormat *format,guint32 *max_messages,guint32 *cdma_short_message_size,gchar **sc_address,GError **error);
Create a new request for the 'ScAddress' response command in the 'SMS' service.
| 
 | the MbimMessage. | 
| 
 | return location for a MbimSmsStorageState, or NULLif the 'SmsStorageState' field is not needed. | 
| 
 | return location for a MbimSmsFormat, or NULLif the 'Format' field is not needed. | 
| 
 | return location for a guint32, or NULLif the 'MaxMessages' field is not needed. | 
| 
 | return location for a guint32, or NULLif the 'CdmaShortMessageSize' field is not needed. | 
| 
 | return location for a newly allocated string, or NULLif the 'ScAddress' field is not needed. Free the returned value withg_free(). | 
| 
 | return location for error or NULL. | 
| Returns : | TRUEif the message was correctly parsed,FALSEiferroris set. | 
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.
| 
 | the 'Format' field, given as a MbimSmsFormat. | 
| 
 | the 'Flag' field, given as a MbimSmsFlag. | 
| 
 | the 'MessageIndex' field, given as a guint32. | 
| 
 | return location for error or NULL. | 
| Returns : | a newly allocated MbimMessage, which should be freed with mbim_message_unref(). | 
gboolean mbim_message_sms_read_response_parse (const MbimMessage *message,MbimSmsFormat *format,guint32 *messages_count,MbimSmsPduReadRecord ***pdu_messages,MbimSmsCdmaReadRecord ***cdma_messages,GError **error);
Create a new request for the 'CdmaMessages' response command in the 'SMS' service.
| 
 | the MbimMessage. | 
| 
 | return location for a MbimSmsFormat, or NULLif the 'Format' field is not needed. | 
| 
 | return location for a guint32, or NULLif the 'MessagesCount' field is not needed. | 
| 
 | return location for a newly allocated array of MbimSmsPduReadRecords, or NULLif the 'PduMessages' field is not needed. Free the returned value withmbim_sms_pdu_read_record_array_free(). | 
| 
 | return location for a newly allocated array of MbimSmsCdmaReadRecords, or NULLif the 'CdmaMessages' field is not needed. Free the returned value withmbim_sms_cdma_read_record_array_free(). | 
| 
 | return location for error or NULL. | 
| Returns : | TRUEif the message was correctly parsed,FALSEiferroris set. | 
gboolean mbim_message_sms_read_notification_parse (const MbimMessage *message,MbimSmsFormat *format,guint32 *messages_count,MbimSmsPduReadRecord ***pdu_messages,MbimSmsCdmaReadRecord ***cdma_messages,GError **error);
Create a new request for the 'CdmaMessages' notification command in the 'SMS' service.
| 
 | the MbimMessage. | 
| 
 | return location for a MbimSmsFormat, or NULLif the 'Format' field is not needed. | 
| 
 | return location for a guint32, or NULLif the 'MessagesCount' field is not needed. | 
| 
 | return location for a newly allocated array of MbimSmsPduReadRecords, or NULLif the 'PduMessages' field is not needed. Free the returned value withmbim_sms_pdu_read_record_array_free(). | 
| 
 | return location for a newly allocated array of MbimSmsCdmaReadRecords, or NULLif the 'CdmaMessages' field is not needed. Free the returned value withmbim_sms_cdma_read_record_array_free(). | 
| 
 | return location for error or NULL. | 
| Returns : | TRUEif the message was correctly parsed,FALSEiferroris set. | 
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.
| 
 | the 'Format' field, given as a MbimSmsFormat. | 
| 
 | the 'PduMessage' field, given as a MbimSmsPduSendRecord. | 
| 
 | the 'CdmaMessage' field, given as a MbimSmsCdmaSendRecord. | 
| 
 | return location for error or NULL. | 
| Returns : | a newly allocated MbimMessage, which should be freed with mbim_message_unref(). | 
gboolean mbim_message_sms_send_response_parse (const MbimMessage *message,guint32 *message_reference,GError **error);
Create a new request for the 'MessageReference' response command in the 'SMS' service.
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.
| 
 | the 'Flag' field, given as a MbimSmsFlag. | 
| 
 | the 'MessageIndex' field, given as a guint32. | 
| 
 | return location for error or NULL. | 
| Returns : | a newly allocated MbimMessage, which should be freed with mbim_message_unref(). | 
gboolean mbim_message_sms_delete_response_parse (const MbimMessage *message,GError **error);
Create a new request for the 'Delete' response command in the 'SMS' service.
| 
 | the MbimMessage. | 
| 
 | return location for error or NULL. | 
| Returns : | TRUEif the message was correctly parsed,FALSEiferroris set. | 
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.
| 
 | return location for error or NULL. | 
| Returns : | a newly allocated MbimMessage, which should be freed with mbim_message_unref(). | 
gboolean mbim_message_sms_message_store_status_response_parse (const MbimMessage *message,MbimSmsStatusFlag *flag,guint32 *message_index,GError **error);
Create a new request for the 'MessageIndex' response command in the 'SMS' service.
| 
 | the MbimMessage. | 
| 
 | return location for a MbimSmsStatusFlag, or NULLif the 'Flag' field is not needed. | 
| 
 | return location for a guint32, or NULLif the 'MessageIndex' field is not needed. | 
| 
 | return location for error or NULL. | 
| Returns : | TRUEif the message was correctly parsed,FALSEiferroris set. | 
gboolean mbim_message_sms_message_store_status_notification_parse (const MbimMessage *message,MbimSmsStatusFlag *flag,guint32 *message_index,GError **error);
Create a new request for the 'MessageIndex' notification command in the 'SMS' service.
| 
 | the MbimMessage. | 
| 
 | return location for a MbimSmsStatusFlag, or NULLif the 'Flag' field is not needed. | 
| 
 | return location for a guint32, or NULLif the 'MessageIndex' field is not needed. | 
| 
 | return location for error or NULL. | 
| Returns : | TRUEif the message was correctly parsed,FALSEiferroris set. |