summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-11-02 13:13:04 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-11-02 13:13:04 +0100
commit94addc296e434f4c4352fa33f8b921a5c9b91494 (patch)
tree097eb7fca6369ed1e2e3db55bab495d460fb7f18
parenta4dfb5055fd2f9bee340e1e90b997b294d14429a (diff)
libqmi-glib: make 'QmiCtlDataLinkProtocol' a enum instead of flags
If the values are like flags, but mutually exclusive, just set it as an enum.
-rw-r--r--libqmi-glib/qmi-enums-private.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libqmi-glib/qmi-enums-private.h b/libqmi-glib/qmi-enums-private.h
index 106c293..21afead 100644
--- a/libqmi-glib/qmi-enums-private.h
+++ b/libqmi-glib/qmi-enums-private.h
@@ -44,12 +44,12 @@ typedef enum {
* @QMI_CTL_DATA_LINK_PROTOCOL_802_3: data frames formatted as 802.3 Ethernet
* @QMI_CTL_DATA_LINK_PROTOCOL_RAW_IP: data frames are raw IP packets
*
- * Determines the network port data format. Despite looking like flags, these
- * values are actually mutually exclusive.
+ * Determines the network port data format.
*/
typedef enum {
- QMI_CTL_DATA_LINK_PROTOCOL_802_3 = 1 << 0,
- QMI_CTL_DATA_LINK_PROTOCOL_RAW_IP = 1 << 1,
+ QMI_CTL_DATA_LINK_PROTOCOL_UNKNOWN = 0,
+ QMI_CTL_DATA_LINK_PROTOCOL_802_3 = 1,
+ QMI_CTL_DATA_LINK_PROTOCOL_RAW_IP = 2,
} QmiCtlDataLinkProtocol;
/**