Top |
GBoxed ├── QmiMessageDpmOpenPortInput ├── QmiMessageDpmOpenPortInputControlPortsElement ├── QmiMessageDpmOpenPortInputHardwareDataPortsElement ├── QmiMessageDpmOpenPortInputSoftwareDataPortsElement ╰── QmiMessageDpmOpenPortOutput
Collection of methods to create requests and parse responses of the DPM Open Port message.
QmiMessageDpmOpenPortInput *
qmi_message_dpm_open_port_input_new (void
);
Allocates a new QmiMessageDpmOpenPortInput.
the newly created QmiMessageDpmOpenPortInput. The returned value should be freed with qmi_message_dpm_open_port_input_unref()
.
Since: 1.30
QmiMessageDpmOpenPortInput *
qmi_message_dpm_open_port_input_ref (QmiMessageDpmOpenPortInput *self
);
Atomically increments the reference count of self
by one.
Since: 1.30
void
qmi_message_dpm_open_port_input_unref (QmiMessageDpmOpenPortInput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.30
gboolean qmi_message_dpm_open_port_input_get_software_data_ports (QmiMessageDpmOpenPortInput *self
,GArray **value_software_data_ports
,GError **error
);
Get the 'Software Data Ports' field from self
.
[skip]
self |
||
value_software_data_ports |
a placeholder for the output GArray of QmiMessageDpmOpenPortInputSoftwareDataPortsElement elements, or |
[out][optional][element-type QmiMessageDpmOpenPortInputSoftwareDataPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.30
gboolean qmi_message_dpm_open_port_input_get_software_data_ports_gir (QmiMessageDpmOpenPortInput *self
,GPtrArray **value_software_data_ports_ptr
,GError **error
);
Get the 'Software Data Ports' field from self
.
Version of qmi_message_dpm_open_port_input_get_software_data_ports()
using arrays of pointers to
structs instead of arrays of structs, for easier binding in other languages.
[rename-to qmi_message_dpm_open_port_input_get_software_data_ports]
self |
||
value_software_data_ports_ptr |
a placeholder for the output array of QmiMessageDpmOpenPortInputSoftwareDataPortsElement elements, or |
[out][optional][element-type QmiMessageDpmOpenPortInputSoftwareDataPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.32
gboolean qmi_message_dpm_open_port_input_set_software_data_ports (QmiMessageDpmOpenPortInput *self
,GArray *value_software_data_ports
,GError **error
);
Set the 'Software Data Ports' field in the message.
[skip]
self |
||
value_software_data_ports |
a GArray of QmiMessageDpmOpenPortInputSoftwareDataPortsElement elements. A new reference to |
[in][element-type QmiMessageDpmOpenPortInputSoftwareDataPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.30
gboolean qmi_message_dpm_open_port_input_set_software_data_ports_gir (QmiMessageDpmOpenPortInput *self
,GPtrArray *value_software_data_ports_ptr
,GError **error
);
Set the 'Software Data Ports' field in the message.
[rename-to qmi_message_dpm_open_port_input_set_software_data_ports]
self |
||
value_software_data_ports_ptr |
array of QmiMessageDpmOpenPortInputSoftwareDataPortsElement elements. The contents of the given array will be copied, the GPtrArray will not increase its reference count. |
[in][element-type QmiMessageDpmOpenPortInputSoftwareDataPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.32
gboolean qmi_message_dpm_open_port_input_get_hardware_data_ports (QmiMessageDpmOpenPortInput *self
,GArray **value_hardware_data_ports
,GError **error
);
Get the 'Hardware Data Ports' field from self
.
[skip]
self |
||
value_hardware_data_ports |
a placeholder for the output GArray of QmiMessageDpmOpenPortInputHardwareDataPortsElement elements, or |
[out][optional][element-type QmiMessageDpmOpenPortInputHardwareDataPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.30
gboolean qmi_message_dpm_open_port_input_get_hardware_data_ports_gir (QmiMessageDpmOpenPortInput *self
,GPtrArray **value_hardware_data_ports_ptr
,GError **error
);
Get the 'Hardware Data Ports' field from self
.
Version of qmi_message_dpm_open_port_input_get_hardware_data_ports()
using arrays of pointers to
structs instead of arrays of structs, for easier binding in other languages.
[rename-to qmi_message_dpm_open_port_input_get_hardware_data_ports]
self |
||
value_hardware_data_ports_ptr |
a placeholder for the output array of QmiMessageDpmOpenPortInputHardwareDataPortsElement elements, or |
[out][optional][element-type QmiMessageDpmOpenPortInputHardwareDataPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.32
gboolean qmi_message_dpm_open_port_input_set_hardware_data_ports (QmiMessageDpmOpenPortInput *self
,GArray *value_hardware_data_ports
,GError **error
);
Set the 'Hardware Data Ports' field in the message.
[skip]
self |
||
value_hardware_data_ports |
a GArray of QmiMessageDpmOpenPortInputHardwareDataPortsElement elements. A new reference to |
[in][element-type QmiMessageDpmOpenPortInputHardwareDataPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.30
gboolean qmi_message_dpm_open_port_input_set_hardware_data_ports_gir (QmiMessageDpmOpenPortInput *self
,GPtrArray *value_hardware_data_ports_ptr
,GError **error
);
Set the 'Hardware Data Ports' field in the message.
[rename-to qmi_message_dpm_open_port_input_set_hardware_data_ports]
self |
||
value_hardware_data_ports_ptr |
array of QmiMessageDpmOpenPortInputHardwareDataPortsElement elements. The contents of the given array will be copied, the GPtrArray will not increase its reference count. |
[in][element-type QmiMessageDpmOpenPortInputHardwareDataPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.32
gboolean qmi_message_dpm_open_port_input_get_control_ports (QmiMessageDpmOpenPortInput *self
,GArray **value_control_ports
,GError **error
);
Get the 'Control Ports' field from self
.
[skip]
self |
||
value_control_ports |
a placeholder for the output GArray of QmiMessageDpmOpenPortInputControlPortsElement elements, or |
[out][optional][element-type QmiMessageDpmOpenPortInputControlPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.30
gboolean qmi_message_dpm_open_port_input_get_control_ports_gir (QmiMessageDpmOpenPortInput *self
,GPtrArray **value_control_ports_ptr
,GError **error
);
Get the 'Control Ports' field from self
.
Version of qmi_message_dpm_open_port_input_get_control_ports()
using arrays of pointers to
structs instead of arrays of structs, for easier binding in other languages.
[rename-to qmi_message_dpm_open_port_input_get_control_ports]
self |
||
value_control_ports_ptr |
a placeholder for the output array of QmiMessageDpmOpenPortInputControlPortsElement elements, or |
[out][optional][element-type QmiMessageDpmOpenPortInputControlPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.32
gboolean qmi_message_dpm_open_port_input_set_control_ports (QmiMessageDpmOpenPortInput *self
,GArray *value_control_ports
,GError **error
);
Set the 'Control Ports' field in the message.
[skip]
self |
||
value_control_ports |
a GArray of QmiMessageDpmOpenPortInputControlPortsElement elements. A new reference to |
[in][element-type QmiMessageDpmOpenPortInputControlPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.30
gboolean qmi_message_dpm_open_port_input_set_control_ports_gir (QmiMessageDpmOpenPortInput *self
,GPtrArray *value_control_ports_ptr
,GError **error
);
Set the 'Control Ports' field in the message.
[rename-to qmi_message_dpm_open_port_input_set_control_ports]
self |
||
value_control_ports_ptr |
array of QmiMessageDpmOpenPortInputControlPortsElement elements. The contents of the given array will be copied, the GPtrArray will not increase its reference count. |
[in][element-type QmiMessageDpmOpenPortInputControlPortsElement][transfer none] |
error |
Return location for error or |
Since: 1.32
QmiMessageDpmOpenPortOutput *
qmi_message_dpm_open_port_output_ref (QmiMessageDpmOpenPortOutput *self
);
Atomically increments the reference count of self
by one.
Since: 1.30
void
qmi_message_dpm_open_port_output_unref
(QmiMessageDpmOpenPortOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.30
gboolean qmi_message_dpm_open_port_output_get_result (QmiMessageDpmOpenPortOutput *self
,GError **error
);
Get the result of the QMI operation.
Since: 1.30
QmiMessageDpmOpenPortOutput * qmi_message_dpm_open_port_response_parse (QmiMessage *message
,GError **error
);
Parses a QmiMessage and builds a QmiMessageDpmOpenPortOutput out of it. The operation fails if the message is of the wrong type.
a QmiMessageDpmOpenPortOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_dpm_open_port_output_unref()
.
Since: 1.34
void qmi_client_dpm_open_port (QmiClientDpm *self
,QmiMessageDpmOpenPortInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Open Port request to the device.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call qmi_client_dpm_open_port_finish()
to get the result of the operation.
self |
a QmiClientDpm. |
|
input |
||
timeout |
maximum time to wait for the method to complete, in seconds. |
|
cancellable |
a GCancellable or |
|
callback |
a GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
user data to pass to |
Since: 1.30
QmiMessageDpmOpenPortOutput * qmi_client_dpm_open_port_finish (QmiClientDpm *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_dpm_open_port()
.
self |
a QmiClientDpm. |
|
res |
the GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
a QmiMessageDpmOpenPortOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_dpm_open_port_output_unref()
.
Since: 1.30
typedef struct _QmiMessageDpmOpenPortInput QmiMessageDpmOpenPortInput;
The QmiMessageDpmOpenPortInput structure contains private data and should only be accessed using the provided API.
Since: 1.30
typedef struct { QmiDataEndpointType endpoint_type; guint32 interface_number; gchar *port_name; } QmiMessageDpmOpenPortInputSoftwareDataPortsElement;
A QmiMessageDpmOpenPortInputSoftwareDataPortsElement struct.
QmiDataEndpointType |
||
guint32 |
a guint32. |
|
gchar * |
a string. |
Since: 1.30
typedef struct { QmiDataEndpointType endpoint_type; guint32 interface_number; guint32 rx_endpoint_number; guint32 tx_endpoint_number; } QmiMessageDpmOpenPortInputHardwareDataPortsElement;
A QmiMessageDpmOpenPortInputHardwareDataPortsElement struct.
Since: 1.30
typedef struct { gchar *port_name; QmiDataEndpointType endpoint_type; guint32 interface_number; } QmiMessageDpmOpenPortInputControlPortsElement;
A QmiMessageDpmOpenPortInputControlPortsElement struct.
gchar * |
a string. |
|
QmiDataEndpointType |
||
guint32 |
a guint32. |
Since: 1.30
typedef struct _QmiMessageDpmOpenPortOutput QmiMessageDpmOpenPortOutput;
The QmiMessageDpmOpenPortOutput structure contains private data and should only be accessed using the provided API.
Since: 1.30