diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-09-20 16:34:55 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-09-27 10:28:28 +0200 |
commit | fb3bca5099f1c0204d4d85da8fab570899b889f1 (patch) | |
tree | 08a6975dd3aadd01b2848d2a0e54be66a132f47a /unit | |
parent | 9ecab17d611ed6c932f50b887d9b495a5bc1212a (diff) | |
download | connman-fb3bca5099f1c0204d4d85da8fab570899b889f1.tar.gz connman-fb3bca5099f1c0204d4d85da8fab570899b889f1.tar.bz2 connman-fb3bca5099f1c0204d4d85da8fab570899b889f1.zip |
unit: Support ConnectionType unknown
Diffstat (limited to 'unit')
-rw-r--r-- | unit/session-api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/unit/session-api.c b/unit/session-api.c index c5df0105..e808bd21 100644 --- a/unit/session-api.c +++ b/unit/session-api.c @@ -41,12 +41,14 @@ static enum connman_session_state string2state(const char *state) static enum connman_session_state string2type(const char *type) { + if (g_strcmp0(type, "any") == 0) + return CONNMAN_SESSION_TYPE_ANY; if (g_strcmp0(type, "local") == 0) return CONNMAN_SESSION_TYPE_LOCAL; if (g_strcmp0(type, "internet") == 0) return CONNMAN_SESSION_TYPE_INTERNET; - return CONNMAN_SESSION_TYPE_ANY; + return CONNMAN_SESSION_TYPE_UNKNOWN; } void bearer_info_cleanup(gpointer data, gpointer user_data) |