aboutsummaryrefslogtreecommitdiff
path: root/include/ModemManager-enums.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-08-22 09:35:15 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-22 09:38:21 +0200
commit1ac18a06bb37d8745480a9af4fd6bc2f762bf265 (patch)
tree2074fb1f3cb16e483779dcd4f19db3d6c1c936c1 /include/ModemManager-enums.h
parentc15525a1b3c2006e614f75a372f374176f576c23 (diff)
api,dbus: 'ip-type' property now given as a MMBearerIpFamily (u)
Instead of using a predefined set of string values for 'ip-type' in Modem.CreateBearer() and Simple.Connect(), we'll use an enumeration. The implementation will then need to convert the requested IP family type to e.g. the correct PDP type in 3GPP modems. This change also consolidates the use of enums in dictionary properties when possible to do so, as with the Rm Protocol.
Diffstat (limited to 'include/ModemManager-enums.h')
-rw-r--r--include/ModemManager-enums.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h
index 7ad10655..d853106d 100644
--- a/include/ModemManager-enums.h
+++ b/include/ModemManager-enums.h
@@ -445,6 +445,22 @@ typedef enum { /*< underscore_name=mm_bearer_ip_method >*/
} MMBearerIpMethod;
/**
+ * MMBearerIpFamily:
+ * @MM_BEARER_IP_FAMILY_UNKNOWN: Unknown.
+ * @MM_BEARER_IP_FAMILY_IPV4: IPv4.
+ * @MM_BEARER_IP_FAMILY_IPV6: IPv6.
+ * @MM_BEARER_IP_FAMILY_IPV4V6: IPv4 and IPv6.
+ *
+ * Type of IP family to be used in a given Bearer.
+ */
+typedef enum { /*< underscore_name=mm_bearer_ip_family >*/
+ MM_BEARER_IP_FAMILY_UNKNOWN = 0,
+ MM_BEARER_IP_FAMILY_IPV4 = 4,
+ MM_BEARER_IP_FAMILY_IPV6 = 6,
+ MM_BEARER_IP_FAMILY_IPV4V6 = 10
+} MMBearerIpFamily;
+
+/**
* MMModemCdmaRegistrationState:
* @MM_MODEM_CDMA_REGISTRATION_STATE_UNKNOWN: Registration status is unknown or the device is not registered.
* @MM_MODEM_CDMA_REGISTRATION_STATE_REGISTERED: Registered, but roaming status is unknown or cannot be provided by the device. The device may or may not be roaming.