aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-26 15:46:25 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-03-28 15:50:51 +0200
commit79c93f4333868fc7aedaf1bf1302c2a00fc67d1c (patch)
treed34f495c5c14997de7e3a441d3e23eeb6e3884d2
parent62923f9086c80412f95a79c3a3148933837e74c9 (diff)
at-serial-port: define flags by shifting bits
Otherwise glib-mkenums doesn't take the enumeration as being flags.
-rw-r--r--src/mm-at-serial-port.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mm-at-serial-port.h b/src/mm-at-serial-port.h
index e851be27..35aa8ac9 100644
--- a/src/mm-at-serial-port.h
+++ b/src/mm-at-serial-port.h
@@ -41,13 +41,13 @@ typedef struct _MMAtSerialPortClass MMAtSerialPortClass;
* only when connecting is port 0 opened for dialing (ATD) and PPP
*/
typedef enum { /*< underscore_name=mm_at_port_flag >*/
- MM_AT_PORT_FLAG_NONE = 0x0000,
+ MM_AT_PORT_FLAG_NONE = 0,
/* This port is preferred for command and status */
- MM_AT_PORT_FLAG_PRIMARY = 0x0001,
+ MM_AT_PORT_FLAG_PRIMARY = 1 << 0,
/* Use port for command and status if the primary port is connected */
- MM_AT_PORT_FLAG_SECONDARY = 0x0002,
+ MM_AT_PORT_FLAG_SECONDARY = 1 << 1,
/* This port should be used for PPP */
- MM_AT_PORT_FLAG_PPP = 0x0004
+ MM_AT_PORT_FLAG_PPP = 1 << 2,
} MMAtPortFlag;
typedef gboolean (*MMAtSerialResponseParserFn) (gpointer user_data,