GAS enumerations and flags: libqmi-glib Reference Manual

## GAS enumerations and flags GAS enumerations and flags — Enumerations and flags in the GAS service. |

## Functions

const gchar * | qmi_gas_firmware_listing_mode_get_string ()
const gchar * | qmi_gas_usb_composition_endpoint_type_get_string ()
const gchar * | qmi_gas_firmware_auto_sim_mode_get_string ()

## Types and Values

enum | QmiGasFirmwareListingMode
enum | QmiGasUsbCompositionEndpointType
enum | QmiGasFirmwareAutoSimMode

## Object Hierarchy

        GEnum
        ├── QmiGasFirmwareAutoSimMode
        ├── QmiGasFirmwareListingMode
        ╰── QmiGasUsbCompositionEndpointType

## Description

This section defines enumerations and flags used in the GAS service interface.

## Functions

### qmi_gas_firmware_listing_mode_get_string ()

    const gchar *
    qmi_gas_firmware_listing_mode_get_string
                                   (QmiGasFirmwareListingMode val);

Gets the nickname string for the QmiGasFirmwareListingMode specified at `val` .

#### Parameters

val | a QmiGasFirmwareListingMode. |

#### Returns

a string with the nickname, or `NULL` if not found. Do not free the returned value.

[transfer none]

Since: 1.24

### qmi_gas_usb_composition_endpoint_type_get_string ()

    const gchar *
    qmi_gas_usb_composition_endpoint_type_get_string
                                   (QmiGasUsbCompositionEndpointType val);

Gets the nickname string for the QmiGasUsbCompositionEndpointType specified at `val` .

#### Parameters

val | a QmiGasUsbCompositionEndpointType. |

#### Returns

a string with the nickname, or `NULL` if not found. Do not free the returned value.

[transfer none]

Since: 1.32

### qmi_gas_firmware_auto_sim_mode_get_string ()

    const gchar *
    qmi_gas_firmware_auto_sim_mode_get_string
                                   (QmiGasFirmwareAutoSimMode val);

Gets the nickname string for the QmiGasFirmwareAutoSimMode specified at `val` .

#### Parameters

val | a QmiGasFirmwareAutoSimMode. |

#### Returns

a string with the nickname, or `NULL` if not found. Do not free the returned value.

[transfer none]

Since: 1.36

## Types and Values

### enum QmiGasFirmwareListingMode

Mode when retrieving a list of stored firmwares.

#### Members

QMI_GAS_FIRMWARE_LISTING_MODE_ACTIVE_FIRMWARE | List only the active firmware. |
QMI_GAS_FIRMWARE_LISTING_MODE_ALL_FIRMWARE | List all stored firmwares. |
QMI_GAS_FIRMWARE_LISTING_MODE_SPECIFIC_FIRMWARE | List only specific firmware with condition. |

Since: 1.24

### enum QmiGasUsbCompositionEndpointType

Peripheral endpoint type.

#### Members

QMI_GAS_USB_COMPOSITION_ENDPOINT_TYPE_HSUSB | High-speed USB. |
QMI_GAS_USB_COMPOSITION_ENDPOINT_TYPE_HSIC | High-speed inter-chip interface. |

Since: 1.32

### enum QmiGasFirmwareAutoSimMode

Automatic carrier switch according to the SIM mode.

#### Members

QMI_GAS_FIRMWARE_AUTO_SIM_DISABLE | Disable the automatic carrier switch according to the SIM. |
QMI_GAS_FIRMWARE_AUTO_SIM_ENABLE | Enable the automatic carrier switch according to the SIM. |
QMI_GAS_FIRMWARE_AUTO_SIM_ENABLE_ONE_SHOT | Enable the automatic carrier switch according to the SIM just for one time. |
QMI_GAS_FIRMWARE_AUTO_SIM_PENDING_ONE_SHOT | Indicate the pending status of a single switch (used only in DMS Get Firmware Auto Sim). |

Since: 1.36