Qmi.MessageContext

Fields

None

Methods

class new ()
  get_vendor_id ()
  ref ()
  set_vendor_id (vendor_id)
  unref ()

Details

class Qmi.MessageContext

An opaque type representing a QMI message context.

New in version 1.18.

classmethod new()
Returns:a newly created Qmi.MessageContext. The returned value should be freed with Qmi.MessageContext.unref().
Return type:Qmi.MessageContext

Create a new empty Qmi.MessageContext.

New in version 1.18.

get_vendor_id()
Returns:the vendor ID.
Return type:int

Gets the vendor ID associated to the message.

New in version 1.18.

ref()
Returns:the new reference to self.
Return type:Qmi.MessageContext

Atomically increments the reference count of self by one.

New in version 1.18.

set_vendor_id(vendor_id)
Parameters:vendor_id (int) – the vendor ID.

Sets the vendor ID associated to the message.

New in version 1.18.

unref()

Atomically decrements the reference count of self by one. If the reference count drops to 0, self is completely disposed.

New in version 1.18.