summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-20 13:03:00 (GMT)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-27 08:28:28 (GMT)
commit0bfe7c0ba4b1d297f03c4e3d31d5335f84f3942b (patch)
treeea630560629d5645be6cad01fbccf5d3a38424f2 /include
parent4b1ca2369056fcffa5278372004e0926a08c9c04 (diff)
downloadconnman-0bfe7c0ba4b1d297f03c4e3d31d5335f84f3942b.zip
connman-0bfe7c0ba4b1d297f03c4e3d31d5335f84f3942b.tar.gz
connman-0bfe7c0ba4b1d297f03c4e3d31d5335f84f3942b.tar.bz2
session: Enforce correct ConnectionType settings
Up to now an empty or wrong ConnectionType was interpreted as 'any'. If the ConnectionType is either wrong ignore it. If no ConnectionType setting is passed in during creation of the session choose 'any'.
Diffstat (limited to 'include')
-rw-r--r--include/session.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/session.h b/include/session.h
index e0a508b..b8f7a51 100644
--- a/include/session.h
+++ b/include/session.h
@@ -43,9 +43,10 @@ enum connman_session_roaming_policy {
};
enum connman_session_type {
- CONNMAN_SESSION_TYPE_ANY = 0,
- CONNMAN_SESSION_TYPE_LOCAL = 1,
- CONNMAN_SESSION_TYPE_INTERNET = 2,
+ CONNMAN_SESSION_TYPE_UNKNOWN = 0,
+ CONNMAN_SESSION_TYPE_ANY = 1,
+ CONNMAN_SESSION_TYPE_LOCAL = 2,
+ CONNMAN_SESSION_TYPE_INTERNET = 3,
};
struct connman_session;