Qmi.MessageDmsWriteUserDataInput

Fields

None

Methods

class

new ()

get_user_data ()

ref ()

set_user_data (value_user_data)

unref ()

Details

class Qmi.MessageDmsWriteUserDataInput

The Qmi.MessageDmsWriteUserDataInput structure contains private data and should only be accessed using the provided API.

New in version 1.0.

classmethod new()
Returns:

the newly created Qmi.MessageDmsWriteUserDataInput. The returned value should be freed with Qmi.MessageDmsWriteUserDataInput.unref().

Return type:

Qmi.MessageDmsWriteUserDataInput

Allocates a new Qmi.MessageDmsWriteUserDataInput.

New in version 1.0.

get_user_data()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_user_data:

a placeholder for the output GLib.Array of #guint8 elements, or None if not required. Do not free it, it is owned by self.

Return type:

(bool, value_user_data: bytes)

Get the ‘User Data’ field from self.

New in version 1.0.

ref()
Returns:

the new reference to self.

Return type:

Qmi.MessageDmsWriteUserDataInput

Atomically increments the reference count of self by one.

New in version 1.0.

set_user_data(value_user_data)
Parameters:

value_user_data (bytes) – a GLib.Array of #guint8 elements. A new reference to value_user_data will be taken, so the caller must make sure the array was created with the correct GLib.DestroyNotify as clear function for each element in the array.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘User Data’ field in the message.

New in version 1.0.

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.0.