diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-02-29 20:18:48 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-16 14:53:19 +0100 |
commit | 2e1a322837016c826cf3c51f264d15c6b035aa57 (patch) | |
tree | 6cd0d48a65402e3ef09fc7d70fe452e923fd7629 | |
parent | 9a442b01bc6e53fbeb42ce4d74a83b9a1218f915 (diff) |
api,header: define facilities flags with bitwise operations instead of hex values
So that glib-mkenums detects that we're talking about flags.
-rw-r--r-- | include/ModemManager-enums.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h index 0db19ccf..e59d50ae 100644 --- a/include/ModemManager-enums.h +++ b/include/ModemManager-enums.h @@ -461,15 +461,15 @@ typedef enum { /*< underscore_name=mm_modem_3gpp_registration_state >*/ * and the PIN and PIN2 locks, which are SIM locks. */ typedef enum { /*< underscore_name=mm_modem_3gpp_facility >*/ - MM_MODEM_3GPP_FACILITY_NONE = 0x00, - MM_MODEM_3GPP_FACILITY_SIM = 0x01, - MM_MODEM_3GPP_FACILITY_FIXED_DIALING = 0x02, - MM_MODEM_3GPP_FACILITY_PH_SIM = 0x04, - MM_MODEM_3GPP_FACILITY_PH_FSIM = 0x08, - MM_MODEM_3GPP_FACILITY_NET_PERS = 0x10, - MM_MODEM_3GPP_FACILITY_NET_SUB_PERS = 0x20, - MM_MODEM_3GPP_FACILITY_PROVIDER_PERS = 0x40, - MM_MODEM_3GPP_FACILITY_CORP_PERS = 0x80 + MM_MODEM_3GPP_FACILITY_NONE = 0, + MM_MODEM_3GPP_FACILITY_SIM = 1 << 0, + MM_MODEM_3GPP_FACILITY_FIXED_DIALING = 1 << 1, + MM_MODEM_3GPP_FACILITY_PH_SIM = 1 << 2, + MM_MODEM_3GPP_FACILITY_PH_FSIM = 1 << 3, + MM_MODEM_3GPP_FACILITY_NET_PERS = 1 << 4, + MM_MODEM_3GPP_FACILITY_NET_SUB_PERS = 1 << 5, + MM_MODEM_3GPP_FACILITY_PROVIDER_PERS = 1 << 6, + MM_MODEM_3GPP_FACILITY_CORP_PERS = 1 << 7, } MMModem3gppFacility; /** |