QMI

QMI

Synopsis

MbimMessage *       mbim_message_qmi_msg_set_new        (const guint32 qmi_msg_size,
                                                         const guint8 *qmi_msg,
                                                         GError **error);
gboolean            mbim_message_qmi_msg_response_parse (const MbimMessage *message,
                                                         guint32 *qmux_size,
                                                         const guint8 **qmux,
                                                         GError **error);

Description

Details

mbim_message_qmi_msg_set_new ()

MbimMessage *       mbim_message_qmi_msg_set_new        (const guint32 qmi_msg_size,
                                                         const guint8 *qmi_msg,
                                                         GError **error);

Create a new request for the 'msg' set command in the 'QMI' service.

qmi_msg_size :

size of the qmi_msg array.

qmi_msg :

the 'QmiMsg' field, given as an array of guint8 values.

error :

return location for error or NULL.

Returns :

a newly allocated MbimMessage, which should be freed with mbim_message_unref().

mbim_message_qmi_msg_response_parse ()

gboolean            mbim_message_qmi_msg_response_parse (const MbimMessage *message,
                                                         guint32 *qmux_size,
                                                         const guint8 **qmux,
                                                         GError **error);

Create a new request for the 'QMUX' response command in the 'QMI' service.

message :

the MbimMessage.

qmux_size :

return location for the size of the qmux array.

qmux :

return location for an array of guint8 values. Do not free the returned value, it is owned by message.

error :

return location for error or NULL.

Returns :

TRUE if the message was correctly parsed, FALSE if error is set.