diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-07-16 07:29:44 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-16 07:29:44 +0200 |
commit | 38df54735fa93299d4e59f94239b15b3696ab12c (patch) | |
tree | 45f8ab15c037c4027941d406d37f045da912d0a9 | |
parent | 528cd49fd2c36674a21d30967c3f6e204f8101e8 (diff) | |
download | connman-gnome-38df54735fa93299d4e59f94239b15b3696ab12c.tar.gz |
Add type for cellular networks
-rw-r--r-- | common/connman-client.h | 1 | ||||
-rw-r--r-- | common/connman-dbus.c | 2 | ||||
-rw-r--r-- | common/test-client.c | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/common/connman-client.h b/common/connman-client.h index d559dd0..c66febb 100644 --- a/common/connman-client.h +++ b/common/connman-client.h @@ -97,6 +97,7 @@ enum { CONNMAN_TYPE_WIFI, CONNMAN_TYPE_WIMAX, CONNMAN_TYPE_BLUETOOTH, + CONNMAN_TYPE_CELLULAR, }; enum { diff --git a/common/connman-dbus.c b/common/connman-dbus.c index cdbecb8..7c98fd4 100644 --- a/common/connman-dbus.c +++ b/common/connman-dbus.c @@ -173,6 +173,8 @@ static guint get_type(const GValue *value) return CONNMAN_TYPE_WIMAX; else if (g_str_equal(type, "bluetooth") == TRUE) return CONNMAN_TYPE_BLUETOOTH; + else if (g_str_equal(type, "cellular") == TRUE) + return CONNMAN_TYPE_CELLULAR; return CONNMAN_TYPE_UNKNOWN; } diff --git a/common/test-client.c b/common/test-client.c index 8e1fc61..4ab3741 100644 --- a/common/test-client.c +++ b/common/test-client.c @@ -51,6 +51,8 @@ static const gchar *type2str(guint type) return "WiMAX"; case CONNMAN_TYPE_BLUETOOTH: return "Bluetooth"; + case CONNMAN_TYPE_CELLULAR: + return "Cellular"; } return NULL; |