api,enums: let MMModemAccessTech be flags instead of enum

We should be able to report more than one access technology used at a given
time.
This commit is contained in:
Aleksander Morgado
2011-12-20 18:29:42 +01:00
parent e86c8554cc
commit ff60251733

View File

@@ -156,21 +156,21 @@ typedef enum { /*< underscore_name=mm_modem_state_change_reason >*/
*/
typedef enum { /*< underscore_name=mm_modem_access_tech >*/
MM_MODEM_ACCESS_TECH_UNKNOWN = 0,
MM_MODEM_ACCESS_TECH_POTS = 1,
MM_MODEM_ACCESS_TECH_GSM = 2,
MM_MODEM_ACCESS_TECH_GSM_COMPACT = 3,
MM_MODEM_ACCESS_TECH_GPRS = 4,
MM_MODEM_ACCESS_TECH_EDGE = 5,
MM_MODEM_ACCESS_TECH_UMTS = 6,
MM_MODEM_ACCESS_TECH_HSDPA = 7,
MM_MODEM_ACCESS_TECH_HSUPA = 8,
MM_MODEM_ACCESS_TECH_HSPA = 9,
MM_MODEM_ACCESS_TECH_HSPA_PLUS = 10,
MM_MODEM_ACCESS_TECH_1XRTT = 11,
MM_MODEM_ACCESS_TECH_EVDO0 = 12,
MM_MODEM_ACCESS_TECH_EVDOA = 13,
MM_MODEM_ACCESS_TECH_EVDOB = 14,
MM_MODEM_ACCESS_TECH_LTE = 15,
MM_MODEM_ACCESS_TECH_POTS = 1 << 1,
MM_MODEM_ACCESS_TECH_GSM = 1 << 2,
MM_MODEM_ACCESS_TECH_GSM_COMPACT = 1 << 3,
MM_MODEM_ACCESS_TECH_GPRS = 1 << 4,
MM_MODEM_ACCESS_TECH_EDGE = 1 << 5,
MM_MODEM_ACCESS_TECH_UMTS = 1 << 6,
MM_MODEM_ACCESS_TECH_HSDPA = 1 << 7,
MM_MODEM_ACCESS_TECH_HSUPA = 1 << 8,
MM_MODEM_ACCESS_TECH_HSPA = 1 << 9,
MM_MODEM_ACCESS_TECH_HSPA_PLUS = 1 << 10,
MM_MODEM_ACCESS_TECH_1XRTT = 1 << 11,
MM_MODEM_ACCESS_TECH_EVDO0 = 1 << 12,
MM_MODEM_ACCESS_TECH_EVDOA = 1 << 13,
MM_MODEM_ACCESS_TECH_EVDOB = 1 << 14,
MM_MODEM_ACCESS_TECH_LTE = 1 << 15,
} MMModemAccessTech;
/**