summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-11-14 18:29:28 +0100
committerAleksander Morgado <aleksander@aleksander.es>2022-01-18 09:00:10 +0000
commit554faa855cdf6baceeb3daa115f8643fab4db580 (patch)
tree7d5bf003656077fa180383eb2995a051ec1eef04 /include
parent322a601b297b8ade1443d8aeb6606d12290ef726 (diff)
downloadModemManager-554faa855cdf6baceeb3daa115f8643fab4db580.tar.gz
api,modem: new 'GetCellInfo()' method
This new method allows querying the modem for information about the current serving cell(s) as well as any other neighboring cell that may be found. The information for the cells is given in an array of dictionaries, where each element of the dictionary is a new dictionary itself. Each cell type has a different set of properties that may be given in the dictionary, and some of those properties in each type are also applicable under certain conditions (e.g. only applicable to the cell if it's a 'serving' cell instead of 'neighboring'). The API documentation explains in detail what is expected in each case.
Diffstat (limited to 'include')
-rw-r--r--include/ModemManager-enums.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h
index bb3c5c0ea..d909b6e36 100644
--- a/include/ModemManager-enums.h
+++ b/include/ModemManager-enums.h
@@ -659,6 +659,30 @@ typedef enum { /*< underscore_name=mm_modem_port_type >*/
} MMModemPortType;
/**
+ * MMCellType:
+ * @MM_CELL_TYPE_UNKNOWN: Unknown.
+ * @MM_CELL_TYPE_CDMA: CDMA cell.
+ * @MM_CELL_TYPE_GSM: GSM cell.
+ * @MM_CELL_TYPE_UMTS: UMTS cell.
+ * @MM_CELL_TYPE_TDSCDMA: TD-SCDMA cell.
+ * @MM_CELL_TYPE_LTE: LTE cell.
+ * @MM_CELL_TYPE_5GNR: 5GNR cell.
+ *
+ * Type of cell information reported.
+ *
+ * Since: 1.20
+ */
+typedef enum { /*< underscore_name=mm_cell_type >*/
+ MM_CELL_TYPE_UNKNOWN = 0,
+ MM_CELL_TYPE_CDMA = 1,
+ MM_CELL_TYPE_GSM = 2,
+ MM_CELL_TYPE_UMTS = 3,
+ MM_CELL_TYPE_TDSCDMA = 4,
+ MM_CELL_TYPE_LTE = 5,
+ MM_CELL_TYPE_5GNR = 6,
+} MMCellType;
+
+/**
* MMSmsPduType:
* @MM_SMS_PDU_TYPE_UNKNOWN: Unknown type.
* @MM_SMS_PDU_TYPE_DELIVER: 3GPP Mobile-Terminated (MT) message.