GAS DMS Set Firmware Auto Sim response: libqmi-glib Reference Manual

## GAS DMS Set Firmware Auto Sim response GAS DMS Set Firmware Auto Sim response — Methods to manage the GAS DMS Set Firmware Auto Sim response. |

## Functions

QmiMessageGasDmsSetFirmwareAutoSimInput * | qmi_message_gas_dms_set_firmware_auto_sim_input_new ()
QmiMessageGasDmsSetFirmwareAutoSimInput * | qmi_message_gas_dms_set_firmware_auto_sim_input_ref ()
void | qmi_message_gas_dms_set_firmware_auto_sim_input_unref ()
gboolean | qmi_message_gas_dms_set_firmware_auto_sim_input_get_config_id ()
gboolean | qmi_message_gas_dms_set_firmware_auto_sim_input_set_config_id ()
gboolean | qmi_message_gas_dms_set_firmware_auto_sim_input_get_auto_sim_mode ()
gboolean | qmi_message_gas_dms_set_firmware_auto_sim_input_set_auto_sim_mode ()
QmiMessageGasDmsSetFirmwareAutoSimOutput * | qmi_message_gas_dms_set_firmware_auto_sim_output_ref ()
void | qmi_message_gas_dms_set_firmware_auto_sim_output_unref ()
gboolean | qmi_message_gas_dms_set_firmware_auto_sim_output_get_result ()
QmiMessageGasDmsSetFirmwareAutoSimOutput * | qmi_message_gas_dms_set_firmware_auto_sim_response_parse ()
void | qmi_client_gas_dms_set_firmware_auto_sim ()
QmiMessageGasDmsSetFirmwareAutoSimOutput * | qmi_client_gas_dms_set_firmware_auto_sim_finish ()

## Types and Values

| QmiMessageGasDmsSetFirmwareAutoSimInput
| QmiMessageGasDmsSetFirmwareAutoSimOutput

## Object Hierarchy

        GBoxed
        ├── QmiMessageGasDmsSetFirmwareAutoSimInput
        ╰── QmiMessageGasDmsSetFirmwareAutoSimOutput

## Description

Collection of methods to create requests and parse responses of the GAS DMS Set Firmware Auto Sim message.

## Functions

### qmi_message_gas_dms_set_firmware_auto_sim_input_new ()

    QmiMessageGasDmsSetFirmwareAutoSimInput *
    qmi_message_gas_dms_set_firmware_auto_sim_input_new
                                   (void);

Allocates a new QmiMessageGasDmsSetFirmwareAutoSimInput.

#### Returns

the newly created QmiMessageGasDmsSetFirmwareAutoSimInput. The returned value should be freed with `qmi_message_gas_dms_set_firmware_auto_sim_input_unref()`.

Since: 1.36

### qmi_message_gas_dms_set_firmware_auto_sim_input_ref ()

    QmiMessageGasDmsSetFirmwareAutoSimInput *
    qmi_message_gas_dms_set_firmware_auto_sim_input_ref
                                   (QmiMessageGasDmsSetFirmwareAutoSimInput *self);

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

#### Parameters

self | a QmiMessageGasDmsSetFirmwareAutoSimInput. |

#### Returns

the new reference to `self` .

Since: 1.36

### qmi_message_gas_dms_set_firmware_auto_sim_input_unref ()

    void
    qmi_message_gas_dms_set_firmware_auto_sim_input_unref
                                   (QmiMessageGasDmsSetFirmwareAutoSimInput *self);

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

#### Parameters

self | a QmiMessageGasDmsSetFirmwareAutoSimInput. |

Since: 1.36

### qmi_message_gas_dms_set_firmware_auto_sim_input_get_config_id ()

    gboolean
    qmi_message_gas_dms_set_firmware_auto_sim_input_get_config_id
                                   (QmiMessageGasDmsSetFirmwareAutoSimInput *self,
                                    guint8 *value_config_id,
                                    GError **error);

Get the 'Config Id' field from `self` .

#### Parameters

self | a QmiMessageGasDmsSetFirmwareAutoSimInput. |
value_config_id | a placeholder for the output guint8, 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_gas_dms_set_firmware_auto_sim_input_set_config_id ()

    gboolean
    qmi_message_gas_dms_set_firmware_auto_sim_input_set_config_id
                                   (QmiMessageGasDmsSetFirmwareAutoSimInput *self,
                                    guint8 value_config_id,
                                    GError **error);

Set the 'Config Id' field in the message.

#### Parameters

self | a QmiMessageGasDmsSetFirmwareAutoSimInput. |
value_config_id | a guint8. |
error | Return location for error or `NULL`. |

#### Returns

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

[skip]

Since: 1.36

### qmi_message_gas_dms_set_firmware_auto_sim_input_get_auto_sim_mode ()

    gboolean
    qmi_message_gas_dms_set_firmware_auto_sim_input_get_auto_sim_mode
                                   (QmiMessageGasDmsSetFirmwareAutoSimInput *self,
                                    QmiGasFirmwareAutoSimMode *value_auto_sim_mode,
                                    GError **error);

Get the 'Auto Sim Mode' field from `self` .

#### Parameters

self | a QmiMessageGasDmsSetFirmwareAutoSimInput. |
value_auto_sim_mode | a placeholder for the output QmiGasFirmwareAutoSimMode, 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_gas_dms_set_firmware_auto_sim_input_set_auto_sim_mode ()

    gboolean
    qmi_message_gas_dms_set_firmware_auto_sim_input_set_auto_sim_mode
                                   (QmiMessageGasDmsSetFirmwareAutoSimInput *self,
                                    QmiGasFirmwareAutoSimMode value_auto_sim_mode,
                                    GError **error);

Set the 'Auto Sim Mode' field in the message.

#### Parameters

self | a QmiMessageGasDmsSetFirmwareAutoSimInput. |
value_auto_sim_mode | a QmiGasFirmwareAutoSimMode. |
error | Return location for error or `NULL`. |

#### Returns

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

[skip]

Since: 1.36

### qmi_message_gas_dms_set_firmware_auto_sim_output_ref ()

    QmiMessageGasDmsSetFirmwareAutoSimOutput *
    qmi_message_gas_dms_set_firmware_auto_sim_output_ref
                                   (QmiMessageGasDmsSetFirmwareAutoSimOutput *self);

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

#### Parameters

self | a QmiMessageGasDmsSetFirmwareAutoSimOutput. |

#### Returns

the new reference to `self` .

Since: 1.36

### qmi_message_gas_dms_set_firmware_auto_sim_output_unref ()

    void
    qmi_message_gas_dms_set_firmware_auto_sim_output_unref
                                   (QmiMessageGasDmsSetFirmwareAutoSimOutput *self);

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

#### Parameters

self | a QmiMessageGasDmsSetFirmwareAutoSimOutput. |

Since: 1.36

### qmi_message_gas_dms_set_firmware_auto_sim_output_get_result ()

    gboolean
    qmi_message_gas_dms_set_firmware_auto_sim_output_get_result
                                   (QmiMessageGasDmsSetFirmwareAutoSimOutput *self,
                                    GError **error);

Get the result of the QMI operation.

#### Parameters

self | a QmiMessageGasDmsSetFirmwareAutoSimOutput. |
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_gas_dms_set_firmware_auto_sim_response_parse ()

    QmiMessageGasDmsSetFirmwareAutoSimOutput *
    qmi_message_gas_dms_set_firmware_auto_sim_response_parse
                                   (QmiMessage *message,
                                    GError **error);

Parses a QmiMessage and builds a QmiMessageGasDmsSetFirmwareAutoSimOutput 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 QmiMessageGasDmsSetFirmwareAutoSimOutput, or `NULL` if `error` is set. The returned value should be freed with `qmi_message_gas_dms_set_firmware_auto_sim_output_unref()`.

Since: 1.36

### qmi_client_gas_dms_set_firmware_auto_sim ()

    void
    qmi_client_gas_dms_set_firmware_auto_sim
                                   (QmiClientGas *self,
                                    QmiMessageGasDmsSetFirmwareAutoSimInput *input,
                                    guint timeout,
                                    GCancellable *cancellable,
                                    GAsyncReadyCallback callback,
                                    gpointer user_data);

Asynchronously sends a DMS Set Firmware Auto Sim 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_gas_dms_set_firmware_auto_sim_finish()` to get the result of the operation.

#### Parameters

self | a QmiClientGas. |
input | a QmiMessageGasDmsSetFirmwareAutoSimInput. |
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_gas_dms_set_firmware_auto_sim_finish ()

    QmiMessageGasDmsSetFirmwareAutoSimOutput *
    qmi_client_gas_dms_set_firmware_auto_sim_finish
                                   (QmiClientGas *self,
                                    GAsyncResult *res,
                                    GError **error);

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

#### Parameters

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

#### Returns

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

Since: 1.36

## Types and Values

### QmiMessageGasDmsSetFirmwareAutoSimInput

    typedef struct _QmiMessageGasDmsSetFirmwareAutoSimInput QmiMessageGasDmsSetFirmwareAutoSimInput;

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

Since: 1.36

### QmiMessageGasDmsSetFirmwareAutoSimOutput

    typedef struct _QmiMessageGasDmsSetFirmwareAutoSimOutput QmiMessageGasDmsSetFirmwareAutoSimOutput;

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

Since: 1.36