diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-09-20 15:03:00 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-09-27 10:28:28 +0200 |
commit | 0bfe7c0ba4b1d297f03c4e3d31d5335f84f3942b (patch) | |
tree | ea630560629d5645be6cad01fbccf5d3a38424f2 /include | |
parent | 4b1ca2369056fcffa5278372004e0926a08c9c04 (diff) | |
download | connman-0bfe7c0ba4b1d297f03c4e3d31d5335f84f3942b.tar.gz connman-0bfe7c0ba4b1d297f03c4e3d31d5335f84f3942b.tar.bz2 connman-0bfe7c0ba4b1d297f03c4e3d31d5335f84f3942b.zip |
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.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/session.h b/include/session.h index e0a508be..b8f7a519 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; |