diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-11-22 15:00:23 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-23 11:35:10 +0000 |
commit | a025e83e5ab10147861334fd94682fdd20fb69d2 (patch) | |
tree | b5af67d8b4f6d5377445c21e70765b25e21d9538 /src | |
parent | 19e5d5f9269e32cfcfc0110810c8f3c84a4168b6 (diff) |
charsets: define charset enum explicitly as flags
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-charsets.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mm-charsets.h b/src/mm-charsets.h index c064eef5..14a8b375 100644 --- a/src/mm-charsets.h +++ b/src/mm-charsets.h @@ -19,16 +19,16 @@ #include <glib.h> typedef enum { - MM_MODEM_CHARSET_UNKNOWN = 0x00000000, - MM_MODEM_CHARSET_GSM = 0x00000001, - MM_MODEM_CHARSET_IRA = 0x00000002, - MM_MODEM_CHARSET_8859_1 = 0x00000004, - MM_MODEM_CHARSET_UTF8 = 0x00000008, - MM_MODEM_CHARSET_UCS2 = 0x00000010, - MM_MODEM_CHARSET_PCCP437 = 0x00000020, - MM_MODEM_CHARSET_PCDN = 0x00000040, - MM_MODEM_CHARSET_HEX = 0x00000080, - MM_MODEM_CHARSET_UTF16 = 0x00000100, + MM_MODEM_CHARSET_UNKNOWN = 0, + MM_MODEM_CHARSET_GSM = 1 << 0, + MM_MODEM_CHARSET_IRA = 1 << 1, + MM_MODEM_CHARSET_8859_1 = 1 << 2, + MM_MODEM_CHARSET_UTF8 = 1 << 3, + MM_MODEM_CHARSET_UCS2 = 1 << 4, + MM_MODEM_CHARSET_PCCP437 = 1 << 5, + MM_MODEM_CHARSET_PCDN = 1 << 6, + MM_MODEM_CHARSET_HEX = 1 << 7, + MM_MODEM_CHARSET_UTF16 = 1 << 8, } MMModemCharset; const gchar *mm_modem_charset_to_string (MMModemCharset charset); |