diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-05-22 17:43:21 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-06-05 19:15:13 +0200 |
commit | 804642adc234094717158ff09857de1432565dda (patch) | |
tree | fdcf1cd2fc158e2edc6325b7b67095fa4895932d /src/mm-iface-modem-simple.c | |
parent | a42234dd1c680e7604008fc2e66be849c7bf70de (diff) |
api: let MMBearerIpFamily be flags instead of a enumeration
We want to expose in the Modem interface the list of supported IP families, and
the easiest way to do so is to have the IP family as flags, and provide in the
interface a single enum.
Also, a value of 0 for a MMBearerIpFamily specifies that no flags are set, so
just rename it to 'NONE'.
And add a new 'ANY' value which sets all flags to 1.
Diffstat (limited to 'src/mm-iface-modem-simple.c')
-rw-r--r-- | src/mm-iface-modem-simple.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mm-iface-modem-simple.c b/src/mm-iface-modem-simple.c index d29b9c05..773d091d 100644 --- a/src/mm-iface-modem-simple.c +++ b/src/mm-iface-modem-simple.c @@ -818,8 +818,10 @@ connect_auth_ready (MMBaseModem *self, mm_dbg (" APN: %s", VALIDATE_UNSPECIFIED (mm_simple_connect_properties_get_apn (ctx->properties))); ip_family = mm_simple_connect_properties_get_ip_type (ctx->properties); - if (ip_family != MM_BEARER_IP_FAMILY_UNKNOWN) { - mm_dbg (" IP family: %s", mm_bearer_ip_family_get_string (ip_family)); + if (ip_family != MM_BEARER_IP_FAMILY_NONE) { + str = mm_bearer_ip_family_build_string_from_mask (ip_family); + mm_dbg (" IP family: %s", str); + g_free (str); } else mm_dbg (" IP family: %s", VALIDATE_UNSPECIFIED (NULL)); |