Top |
QmiMessageWmsRawWriteInput *
qmi_message_wms_raw_write_input_new (void
);
Allocates a new QmiMessageWmsRawWriteInput.
the newly created QmiMessageWmsRawWriteInput. The returned value should be freed with qmi_message_wms_raw_write_input_unref()
.
Since: 1.0
QmiMessageWmsRawWriteInput *
qmi_message_wms_raw_write_input_ref (QmiMessageWmsRawWriteInput *self
);
Atomically increments the reference count of self
by one.
Since: 1.0
void
qmi_message_wms_raw_write_input_unref (QmiMessageWmsRawWriteInput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.0
gboolean qmi_message_wms_raw_write_input_get_raw_message_data (QmiMessageWmsRawWriteInput *self
,QmiWmsStorageType *value_raw_message_data_storage_type
,QmiWmsMessageFormat *value_raw_message_data_format
,GArray **value_raw_message_data_raw_data
,GError **error
);
Get the 'Raw Message Data' field from self
.
self |
||
value_raw_message_data_storage_type |
a placeholder for the output QmiWmsStorageType, or |
|
value_raw_message_data_format |
a placeholder for the output QmiWmsMessageFormat, or |
|
value_raw_message_data_raw_data |
a placeholder for the output GArray of guint8 elements, or |
|
error |
Return location for error or |
Since: 1.0
gboolean qmi_message_wms_raw_write_input_set_raw_message_data (QmiMessageWmsRawWriteInput *self
,QmiWmsStorageType value_raw_message_data_storage_type
,QmiWmsMessageFormat value_raw_message_data_format
,GArray *value_raw_message_data_raw_data
,GError **error
);
Set the 'Raw Message Data' field in the message.
Since: 1.0
QmiMessageWmsRawWriteOutput *
qmi_message_wms_raw_write_output_ref (QmiMessageWmsRawWriteOutput *self
);
Atomically increments the reference count of self
by one.
Since: 1.0
void
qmi_message_wms_raw_write_output_unref
(QmiMessageWmsRawWriteOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.0
gboolean qmi_message_wms_raw_write_output_get_result (QmiMessageWmsRawWriteOutput *self
,GError **error
);
Get the result of the QMI operation.
Since: 1.0
gboolean qmi_message_wms_raw_write_output_get_memory_index (QmiMessageWmsRawWriteOutput *self
,guint32 *value_memory_index
,GError **error
);
Get the 'Memory Index' field from self
.
Since: 1.0
void qmi_client_wms_raw_write (QmiClientWms *self
,QmiMessageWmsRawWriteInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Raw Write 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_wms_raw_write_finish()
to get the result of the operation.
self |
a QmiClientWms. |
|
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.0
QmiMessageWmsRawWriteOutput * qmi_client_wms_raw_write_finish (QmiClientWms *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_wms_raw_write()
.
self |
a QmiClientWms. |
|
res |
the GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
a QmiMessageWmsRawWriteOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_wms_raw_write_output_unref()
.
Since: 1.0
typedef struct _QmiMessageWmsRawWriteInput QmiMessageWmsRawWriteInput;
The QmiMessageWmsRawWriteInput structure contains private data and should only be accessed using the provided API.
Since: 1.0
typedef struct _QmiMessageWmsRawWriteOutput QmiMessageWmsRawWriteOutput;
The QmiMessageWmsRawWriteOutput structure contains private data and should only be accessed using the provided API.
Since: 1.0