From 79c93f4333868fc7aedaf1bf1302c2a00fc67d1c Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 26 Mar 2012 15:46:25 +0200 Subject: at-serial-port: define flags by shifting bits Otherwise glib-mkenums doesn't take the enumeration as being flags. --- src/mm-at-serial-port.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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, -- cgit v1.2.3-70-g09d2