WDA Loopback Configuration response: libqmi-glib Reference Manual

## WDA Loopback Configuration response WDA Loopback Configuration response — Methods to manage the WDA Loopback Configuration response. |

## Functions

QmiMessageWdaLoopbackConfigurationInput * | qmi_message_wda_loopback_configuration_input_new ()
QmiMessageWdaLoopbackConfigurationInput * | qmi_message_wda_loopback_configuration_input_ref ()
void | qmi_message_wda_loopback_configuration_input_unref ()
gboolean | qmi_message_wda_loopback_configuration_input_get_replication_factor ()
gboolean | qmi_message_wda_loopback_configuration_input_set_replication_factor ()
gboolean | qmi_message_wda_loopback_configuration_input_get_loopback_state ()
gboolean | qmi_message_wda_loopback_configuration_input_set_loopback_state ()
QmiMessageWdaLoopbackConfigurationOutput * | qmi_message_wda_loopback_configuration_output_ref ()
void | qmi_message_wda_loopback_configuration_output_unref ()
gboolean | qmi_message_wda_loopback_configuration_output_get_result ()
QmiMessageWdaLoopbackConfigurationOutput * | qmi_message_wda_loopback_configuration_response_parse ()
void | qmi_client_wda_loopback_configuration ()
QmiMessageWdaLoopbackConfigurationOutput * | qmi_client_wda_loopback_configuration_finish ()

## Types and Values

| QmiMessageWdaLoopbackConfigurationInput
| QmiMessageWdaLoopbackConfigurationOutput

## Object Hierarchy

        GBoxed
        ├── QmiMessageWdaLoopbackConfigurationInput
        ╰── QmiMessageWdaLoopbackConfigurationOutput

## Description

Collection of methods to create requests and parse responses of the WDA Loopback Configuration message.

## Functions

### qmi_message_wda_loopback_configuration_input_new ()

    QmiMessageWdaLoopbackConfigurationInput *
    qmi_message_wda_loopback_configuration_input_new
                                   (void);

Allocates a new QmiMessageWdaLoopbackConfigurationInput.

#### Returns

the newly created QmiMessageWdaLoopbackConfigurationInput. The returned value should be freed with `qmi_message_wda_loopback_configuration_input_unref()`.

Since: 1.36

### qmi_message_wda_loopback_configuration_input_ref ()

    QmiMessageWdaLoopbackConfigurationInput *
    qmi_message_wda_loopback_configuration_input_ref
                                   (QmiMessageWdaLoopbackConfigurationInput *self);

Atomically increments the reference count of `self` by one.

#### Parameters

self | a QmiMessageWdaLoopbackConfigurationInput. |

#### Returns

the new reference to `self` .

Since: 1.36

### qmi_message_wda_loopback_configuration_input_unref ()

    void
    qmi_message_wda_loopback_configuration_input_unref
                                   (QmiMessageWdaLoopbackConfigurationInput *self);

Atomically decrements the reference count of `self` by one. If the reference count drops to 0, `self` is completely disposed.

#### Parameters

self | a QmiMessageWdaLoopbackConfigurationInput. |

Since: 1.36

### qmi_message_wda_loopback_configuration_input_get_replication_factor ()

    gboolean
    qmi_message_wda_loopback_configuration_input_get_replication_factor
                                   (QmiMessageWdaLoopbackConfigurationInput *self,
                                    guint32 *value_replication_factor,
                                    GError **error);

Get the 'Replication factor' field from `self` .

#### Parameters

self | a QmiMessageWdaLoopbackConfigurationInput. |
value_replication_factor | a placeholder for the output guint32, or `NULL` if not required. | [out][optional]
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if the field is found, `FALSE` otherwise.

[skip]

Since: 1.36

### qmi_message_wda_loopback_configuration_input_set_replication_factor ()

    gboolean
    qmi_message_wda_loopback_configuration_input_set_replication_factor
                                   (QmiMessageWdaLoopbackConfigurationInput *self,
                                    guint32 value_replication_factor,
                                    GError **error);

Set the 'Replication factor' field in the message.

#### Parameters

self | a QmiMessageWdaLoopbackConfigurationInput. |
value_replication_factor | a guint32. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.36

### qmi_message_wda_loopback_configuration_input_get_loopback_state ()

    gboolean
    qmi_message_wda_loopback_configuration_input_get_loopback_state
                                   (QmiMessageWdaLoopbackConfigurationInput *self,
                                    QmiWdaLoopBackState *value_loopback_state,
                                    GError **error);

Get the 'Loopback state' field from `self` .

#### Parameters

self | a QmiMessageWdaLoopbackConfigurationInput. |
value_loopback_state | a placeholder for the output QmiWdaLoopBackState, or `NULL` if not required. | [out][optional]
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if the field is found, `FALSE` otherwise.

[skip]

Since: 1.36

### qmi_message_wda_loopback_configuration_input_set_loopback_state ()

    gboolean
    qmi_message_wda_loopback_configuration_input_set_loopback_state
                                   (QmiMessageWdaLoopbackConfigurationInput *self,
                                    QmiWdaLoopBackState value_loopback_state,
                                    GError **error);

Set the 'Loopback state' field in the message.

#### Parameters

self | a QmiMessageWdaLoopbackConfigurationInput. |
value_loopback_state | a QmiWdaLoopBackState. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.36

### qmi_message_wda_loopback_configuration_output_ref ()

    QmiMessageWdaLoopbackConfigurationOutput *
    qmi_message_wda_loopback_configuration_output_ref
                                   (QmiMessageWdaLoopbackConfigurationOutput *self);

Atomically increments the reference count of `self` by one.

#### Parameters

self | a QmiMessageWdaLoopbackConfigurationOutput. |

#### Returns

the new reference to `self` .

Since: 1.36

### qmi_message_wda_loopback_configuration_output_unref ()

    void
    qmi_message_wda_loopback_configuration_output_unref
                                   (QmiMessageWdaLoopbackConfigurationOutput *self);

Atomically decrements the reference count of `self` by one. If the reference count drops to 0, `self` is completely disposed.

#### Parameters

self | a QmiMessageWdaLoopbackConfigurationOutput. |

Since: 1.36

### qmi_message_wda_loopback_configuration_output_get_result ()

    gboolean
    qmi_message_wda_loopback_configuration_output_get_result
                                   (QmiMessageWdaLoopbackConfigurationOutput *self,
                                    GError **error);

Get the result of the QMI operation.

#### Parameters

self | a QmiMessageWdaLoopbackConfigurationOutput. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if the QMI operation succeeded, `FALSE` if `error` is set.

[skip]

Since: 1.36

### qmi_message_wda_loopback_configuration_response_parse ()

    QmiMessageWdaLoopbackConfigurationOutput *
    qmi_message_wda_loopback_configuration_response_parse
                                   (QmiMessage *message,
                                    GError **error);

Parses a QmiMessage and builds a QmiMessageWdaLoopbackConfigurationOutput out of it. The operation fails if the message is of the wrong type.

#### Parameters

message | a QmiMessage. |
error | return location for error or `NULL`. |

#### Returns

a QmiMessageWdaLoopbackConfigurationOutput, or `NULL` if `error` is set. The returned value should be freed with `qmi_message_wda_loopback_configuration_output_unref()`.

Since: 1.36

### qmi_client_wda_loopback_configuration ()

    void
    qmi_client_wda_loopback_configuration (QmiClientWda *self,
                                           QmiMessageWdaLoopbackConfigurationInput *input,
                                           guint timeout,
                                           GCancellable *cancellable,
                                           GAsyncReadyCallback callback,
                                           gpointer user_data);

Asynchronously sends a Loopback Configuration 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_wda_loopback_configuration_finish()` to get the result of the operation.

#### Parameters

self | a QmiClientWda. |
input | a QmiMessageWdaLoopbackConfigurationInput. |
timeout | maximum time to wait for the method to complete, in seconds. |
cancellable | a GCancellable or `NULL`. |
callback | a GAsyncReadyCallback to call when the request is satisfied. |
user_data | user data to pass to `callback` . |

Since: 1.36

### qmi_client_wda_loopback_configuration_finish ()

    QmiMessageWdaLoopbackConfigurationOutput *
    qmi_client_wda_loopback_configuration_finish
                                   (QmiClientWda *self,
                                    GAsyncResult *res,
                                    GError **error);

Finishes an async operation started with `qmi_client_wda_loopback_configuration()`.

#### Parameters

self | a QmiClientWda. |
res | the GAsyncResult obtained from the GAsyncReadyCallback passed to `qmi_client_wda_loopback_configuration()`. |
error | Return location for error or `NULL`. |

#### Returns

a QmiMessageWdaLoopbackConfigurationOutput, or `NULL` if `error` is set. The returned value should be freed with `qmi_message_wda_loopback_configuration_output_unref()`.

Since: 1.36

## Types and Values

### QmiMessageWdaLoopbackConfigurationInput

    typedef struct _QmiMessageWdaLoopbackConfigurationInput QmiMessageWdaLoopbackConfigurationInput;

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

Since: 1.36

### QmiMessageWdaLoopbackConfigurationOutput

    typedef struct _QmiMessageWdaLoopbackConfigurationOutput QmiMessageWdaLoopbackConfigurationOutput;

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

Since: 1.36