Top |
NAS Attach Detach responseNAS Attach Detach response — Methods to manage the NAS Attach Detach response. |
Collection of methods to create requests and parse responses of the NAS Attach Detach message.
QmiMessageNasAttachDetachInput *
qmi_message_nas_attach_detach_input_new
(void
);
Allocates a new QmiMessageNasAttachDetachInput.
the newly created QmiMessageNasAttachDetachInput. The returned value should be freed with qmi_message_nas_attach_detach_input_unref()
.
Since: 1.20
QmiMessageNasAttachDetachInput *
qmi_message_nas_attach_detach_input_ref
(QmiMessageNasAttachDetachInput *self
);
Atomically increments the reference count of self
by one.
Since: 1.20
void
qmi_message_nas_attach_detach_input_unref
(QmiMessageNasAttachDetachInput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.20
gboolean qmi_message_nas_attach_detach_input_get_action (QmiMessageNasAttachDetachInput *self
,QmiNasPsAttachAction *value_action
,GError **error
);
Get the 'Action' field from self
.
self |
||
value_action |
a placeholder for the output QmiNasPsAttachAction, or |
[out][optional] |
error |
Return location for error or |
Since: 1.20
gboolean qmi_message_nas_attach_detach_input_set_action (QmiMessageNasAttachDetachInput *self
,QmiNasPsAttachAction value_action
,GError **error
);
Set the 'Action' field in the message.
Since: 1.20
QmiMessageNasAttachDetachOutput *
qmi_message_nas_attach_detach_output_ref
(QmiMessageNasAttachDetachOutput *self
);
Atomically increments the reference count of self
by one.
Since: 1.20
void
qmi_message_nas_attach_detach_output_unref
(QmiMessageNasAttachDetachOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.20
gboolean qmi_message_nas_attach_detach_output_get_result (QmiMessageNasAttachDetachOutput *self
,GError **error
);
Get the result of the QMI operation.
Since: 1.20
QmiMessageNasAttachDetachOutput * qmi_message_nas_attach_detach_response_parse (QmiMessage *message
,GError **error
);
Parses a QmiMessage and builds a QmiMessageNasAttachDetachOutput out of it. The operation fails if the message is of the wrong type.
a QmiMessageNasAttachDetachOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_nas_attach_detach_output_unref()
.
Since: 1.34
void qmi_client_nas_attach_detach (QmiClientNas *self
,QmiMessageNasAttachDetachInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Attach Detach 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_nas_attach_detach_finish()
to get the result of the operation.
self |
a QmiClientNas. |
|
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.20
QmiMessageNasAttachDetachOutput * qmi_client_nas_attach_detach_finish (QmiClientNas *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_nas_attach_detach()
.
self |
a QmiClientNas. |
|
res |
the GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
a QmiMessageNasAttachDetachOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_nas_attach_detach_output_unref()
.
Since: 1.20
typedef struct _QmiMessageNasAttachDetachInput QmiMessageNasAttachDetachInput;
The QmiMessageNasAttachDetachInput structure contains private data and should only be accessed using the provided API.
Since: 1.20
typedef struct _QmiMessageNasAttachDetachOutput QmiMessageNasAttachDetachOutput;
The QmiMessageNasAttachDetachOutput structure contains private data and should only be accessed using the provided API.
Since: 1.20