From 0bfe7c0ba4b1d297f03c4e3d31d5335f84f3942b Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Thu, 20 Sep 2012 15:03:00 +0200 Subject: 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'. --- include/session.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') 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; -- cgit v1.2.3