Qmi.MessageDpmOpenPortInput

Fields

None

Methods

class

new ()

get_control_ports ()

get_hardware_data_ports ()

get_software_data_ports ()

ref ()

set_control_ports (value_control_ports_ptr)

set_hardware_data_ports (value_hardware_data_ports_ptr)

set_software_data_ports (value_software_data_ports_ptr)

unref ()

Details

class Qmi.MessageDpmOpenPortInput

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

New in version 1.30.

classmethod new()
Returns:

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

Return type:

Qmi.MessageDpmOpenPortInput

Allocates a new Qmi.MessageDpmOpenPortInput.

New in version 1.30.

get_control_ports()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_control_ports_ptr:

a placeholder for the output array of Qmi.MessageDpmOpenPortInputControlPortsElement elements, or None if not required. Do not free or modify it, it is owned by self.

Return type:

(bool, value_control_ports_ptr: [Qmi.MessageDpmOpenPortInputControlPortsElement])

Get the ‘Control Ports’ field from self.

Version of Qmi.MessageDpmOpenPortInput.get_control_ports() using arrays of pointers to structs instead of arrays of structs, for easier binding in other languages.

New in version 1.32.

get_hardware_data_ports()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_hardware_data_ports_ptr:

a placeholder for the output array of Qmi.MessageDpmOpenPortInputHardwareDataPortsElement elements, or None if not required. Do not free or modify it, it is owned by self.

Return type:

(bool, value_hardware_data_ports_ptr: [Qmi.MessageDpmOpenPortInputHardwareDataPortsElement])

Get the ‘Hardware Data Ports’ field from self.

Version of Qmi.MessageDpmOpenPortInput.get_hardware_data_ports() using arrays of pointers to structs instead of arrays of structs, for easier binding in other languages.

New in version 1.32.

get_software_data_ports()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_software_data_ports_ptr:

a placeholder for the output array of Qmi.MessageDpmOpenPortInputSoftwareDataPortsElement elements, or None if not required. Do not free or modify it, it is owned by self.

Return type:

(bool, value_software_data_ports_ptr: [Qmi.MessageDpmOpenPortInputSoftwareDataPortsElement])

Get the ‘Software Data Ports’ field from self.

Version of Qmi.MessageDpmOpenPortInput.get_software_data_ports() using arrays of pointers to structs instead of arrays of structs, for easier binding in other languages.

New in version 1.32.

ref()
Returns:

the new reference to self.

Return type:

Qmi.MessageDpmOpenPortInput

Atomically increments the reference count of self by one.

New in version 1.30.

set_control_ports(value_control_ports_ptr)
Parameters:

value_control_ports_ptr ([Qmi.MessageDpmOpenPortInputControlPortsElement]) – array of Qmi.MessageDpmOpenPortInputControlPortsElement elements. The contents of the given array will be copied, the GLib.PtrArray will not increase its reference count.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘Control Ports’ field in the message.

New in version 1.32.

set_hardware_data_ports(value_hardware_data_ports_ptr)
Parameters:

value_hardware_data_ports_ptr ([Qmi.MessageDpmOpenPortInputHardwareDataPortsElement]) – array of Qmi.MessageDpmOpenPortInputHardwareDataPortsElement elements. The contents of the given array will be copied, the GLib.PtrArray will not increase its reference count.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘Hardware Data Ports’ field in the message.

New in version 1.32.

set_software_data_ports(value_software_data_ports_ptr)
Parameters:

value_software_data_ports_ptr ([Qmi.MessageDpmOpenPortInputSoftwareDataPortsElement]) – array of Qmi.MessageDpmOpenPortInputSoftwareDataPortsElement elements. The contents of the given array will be copied, the GLib.PtrArray will not increase its reference count.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘Software Data Ports’ field in the message.

New in version 1.32.

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