| Top |  |  |  |  | 
| MbimTlv * | mbim_tlv_new () | 
| MbimTlv * | mbim_tlv_dup () | 
| MbimTlv * | mbim_tlv_ref () | 
| void | mbim_tlv_unref () | 
| const guint8 * | mbim_tlv_get_raw () | 
| MbimTlvType | mbim_tlv_get_tlv_type () | 
| const guint8 * | mbim_tlv_get_tlv_data () | 
| const gchar * | mbim_tlv_type_get_string () | 
| MbimTlv * | mbim_tlv_string_new () | 
| gchar * | mbim_tlv_string_get () | 
| gboolean | mbim_tlv_guint16_array_get () | 
| gboolean | mbim_tlv_wake_command_get () | 
| gboolean | mbim_tlv_wake_packet_get () | 
The MbimTlv structure is capable of exchanging a wide range of information between an MBIM host and an MBIM device.
CID payloads for requests, responses, and/or notifications may contain zero or more unnamed and optional Information Elements (IE) encoded as MbimTlv fields.
MbimTlv * mbim_tlv_new (MbimTlvType type,const guint8 *data,guint32 data_length);
Create a MbimTlv with the given contents.
Since: 1.28
MbimTlv *
mbim_tlv_dup (const MbimTlv *self);
Create a MbimTlv with the same contents as self
.
Since: 1.28
MbimTlv *
mbim_tlv_ref (MbimTlv *self);
Atomically increments the reference count of self
 by one.
Since: 1.28
void
mbim_tlv_unref (MbimTlv *self);
Atomically decrements the reference count of self
 by one.
If the reference count drops to 0, self
 is completely disposed.
Since: 1.28
const guint8 * mbim_tlv_get_raw (const MbimTlv *self,guint32 *length,GError **error);
Gets the whole raw data buffer of the MbimTlv.
| self | a MbimTlv. | |
| length | return location for the size of the output buffer. | [out] | 
| error | return location for error or  | 
Since: 1.28
MbimTlvType
mbim_tlv_get_tlv_type (const MbimTlv *self);
Gets the message type.
Since: 1.28
const guint8 * mbim_tlv_get_tlv_data (const MbimTlv *self,guint32 *out_length);
Gets the TLV raw data.
Since: 1.28
const gchar *
mbim_tlv_type_get_string (MbimTlvType val);
Gets the nickname string for the MbimTlvType specified at val
.
a string with the nickname, or NULL if not found. Do not free the returned value. 
[transfer none]
Since: 1.28
MbimTlv * mbim_tlv_string_new (const gchar *str,GError **error);
Create a MbimTlv of type MBIM_TLV_TYPE_WCHAR_STR with the given contents.
a newly created MbimTlv which should be freed with mbim_tlv_unref(), or NULL if error
is set. 
[transfer full]
Since: 1.28
gchar * mbim_tlv_string_get (const MbimTlv *self,GError **error);
Get a string with the contents in the MbimTlv.
a newly created string, which should be freed with g_free(), or NULL if error
is set. 
[transfer full]
Since: 1.28
gboolean mbim_tlv_guint16_array_get (const MbimTlv *self,guint32 *array_size,guint16 **array,GError **error);
Get an array of guint16 values with the contents in the MbimTlv.
The method may return a successful return even with on empty arrays (i.e.
with array_size
 set to 0 and array
 set to NULL).
| self | a MbimTlv of type  | |
| array_size | return location for a guint32,
or  | [out][optional][transfer none] | 
| array | return location for a
newly allocated array of guint16 values, or  | [out][optional][transfer full][type guint16] | 
| error | return location for error or  | 
Since: 1.28
gboolean mbim_tlv_wake_command_get (const MbimTlv *self,const MbimUuid **service,guint32 *cid,guint32 *payload_size,guint8 **payload,GError **error);
Get the contents of a wake command TLV.
The method may return a successful return even with on empty payload (i.e.
with payload_size
 set to 0 and payload
 set to NULL).
| self | a MbimTlv of type  | |
| service | return location for a MbimUuid specifying the service that triggered the wake. | [out][optional][transfer none] | 
| cid | return location for the command id that triggered the wake. | [out][optional][transfer none] | 
| payload_size | return location for a guint32,
or  | [out][optional][transfer none] | 
| payload | return location for a
newly allocated array of guint8 values, or  | [out][optional][transfer full][type guint8] | 
| error | return location for error or  | 
Since: 1.28
gboolean mbim_tlv_wake_packet_get (const MbimTlv *self,guint32 *filter_id,guint32 *original_packet_size,guint32 *packet_size,guint8 **packet,GError **error);
Get the contents of a wake packet TLV.
| self | a MbimTlv of type  | |
| filter_id | return location for a guint32 specifying the filter id. | [out][optional][transfer none] | 
| original_packet_size | return location for a
guint32, or  | [out][optional][transfer none] | 
| packet_size | return location for a guint32,
or  | [out][optional][transfer none] | 
| packet | return location for a
newly allocated array of guint8 values, or  | [out][optional][transfer full][type guint8] | 
| error | return location for error or  | 
Since: 1.28
Type of the MBIM TLV.
| Invalid TLV type. | ||
| UE policies. | ||
| Single NSSAI. | ||
| Allowed NSSAI. | ||
| Configured NSSAI. | ||
| Default configured NSSAI. | ||
| Preconfigured default configured NSSAI. | ||
| Rejected NSSAI. | ||
| Local Area Data Network (LADN). | ||
| Tracking Area Identity (TAI). | ||
| WCHAR string. | ||
| Array of 1 or more  | ||
| Extensible Authentication Protocol packet. | ||
| Protocol Configuration Option (PCO). | ||
| One or more route selection descriptors. | ||
| A traffic parameters record. | ||
| Wake command. | ||
| Wake packet. | 
Since: 1.28