| 1 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 |
/* |
| 3 |
* libqmi-glib -- GLib/GIO based library to control QMI devices |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the |
| 17 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 |
* Boston, MA 02110-1301 USA. |
| 19 |
* |
| 20 |
* Copyright (C) 2019 Andreas Kling <[email protected]> |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef _LIBQMI_GLIB_QMI_ENUMS_GAS_H_ |
| 24 |
#define _LIBQMI_GLIB_QMI_ENUMS_GAS_H_ |
| 25 |
|
| 26 |
#if !defined (__LIBQMI_GLIB_H_INSIDE__) && !defined (LIBQMI_GLIB_COMPILATION) |
| 27 |
#error "Only <libqmi-glib.h> can be included directly." |
| 28 |
#endif |
| 29 |
|
| 30 |
/** |
| 31 |
* SECTION: qmi-enums-gas |
| 32 |
* @title: GAS enumerations and flags |
| 33 |
* @short_description: Enumerations and flags in the GAS service. |
| 34 |
* |
| 35 |
* This section defines enumerations and flags used in the GAS service |
| 36 |
* interface. |
| 37 |
*/ |
| 38 |
|
| 39 |
/** |
| 40 |
* QmiGasFirmwareListingMode: |
| 41 |
* @QMI_GAS_FIRMWARE_LISTING_MODE_ACTIVE_FIRMWARE: List only the active firmware. |
| 42 |
* @QMI_GAS_FIRMWARE_LISTING_MODE_ALL_FIRMWARE: List all stored firmwares. |
| 43 |
* @QMI_GAS_FIRMWARE_LISTING_MODE_SPECIFIC_FIRMWARE: List only specific firmware with condition. |
| 44 |
* |
| 45 |
* Mode when retrieving a list of stored firmwares. |
| 46 |
* |
| 47 |
* Since: 1.24 |
| 48 |
*/ |
| 49 |
typedef enum { /*< since=1.24 >*/ |
| 50 |
QMI_GAS_FIRMWARE_LISTING_MODE_ACTIVE_FIRMWARE = 0, |
| 51 |
QMI_GAS_FIRMWARE_LISTING_MODE_ALL_FIRMWARE = 1, |
| 52 |
QMI_GAS_FIRMWARE_LISTING_MODE_SPECIFIC_FIRMWARE = 2, |
| 53 |
} QmiGasFirmwareListingMode; |
| 54 |
|
| 55 |
/** |
| 56 |
* QmiGasUsbCompositionEndpointType: |
| 57 |
* @QMI_GAS_USB_COMPOSITION_ENDPOINT_TYPE_HSUSB: High-speed USB. |
| 58 |
* @QMI_GAS_USB_COMPOSITION_ENDPOINT_TYPE_HSIC: High-speed inter-chip interface. |
| 59 |
* |
| 60 |
* Peripheral endpoint type. |
| 61 |
* |
| 62 |
* Since: 1.32 |
| 63 |
*/ |
| 64 |
typedef enum { /*< since=1.32 >*/ |
| 65 |
QMI_GAS_USB_COMPOSITION_ENDPOINT_TYPE_HSUSB = 0, |
| 66 |
QMI_GAS_USB_COMPOSITION_ENDPOINT_TYPE_HSIC = 1, |
| 67 |
} QmiGasUsbCompositionEndpointType; |
| 68 |
|
| 69 |
/** |
| 70 |
* QmiGasFirmwareAutoSimMode: |
| 71 |
* @QMI_GAS_FIRMWARE_AUTO_SIM_DISABLE: Disable the automatic carrier switch according to the SIM. |
| 72 |
* @QMI_GAS_FIRMWARE_AUTO_SIM_ENABLE: Enable the automatic carrier switch according to the SIM. |
| 73 |
* @QMI_GAS_FIRMWARE_AUTO_SIM_ENABLE_ONE_SHOT: Enable the automatic carrier switch according to the SIM just for one time. |
| 74 |
* @QMI_GAS_FIRMWARE_AUTO_SIM_PENDING_ONE_SHOT: Indicate the pending status of a single switch (used only in DMS Get Firmware Auto Sim). |
| 75 |
* |
| 76 |
* Automatic carrier switch according to the SIM mode. |
| 77 |
* |
| 78 |
* Since: 1.36 |
| 79 |
*/ |
| 80 |
typedef enum { /*< since=1.36 >*/ |
| 81 |
QMI_GAS_FIRMWARE_AUTO_SIM_DISABLE = 0, |
| 82 |
QMI_GAS_FIRMWARE_AUTO_SIM_ENABLE = 1, |
| 83 |
QMI_GAS_FIRMWARE_AUTO_SIM_ENABLE_ONE_SHOT = 2, |
| 84 |
QMI_GAS_FIRMWARE_AUTO_SIM_PENDING_ONE_SHOT = 3, |
| 85 |
} QmiGasFirmwareAutoSimMode; |
| 86 |
|
| 87 |
#endif /* _LIBQMI_GLIB_QMI_ENUMS_GAS_H_ */ |