Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: include/service.h

Issue 5167004: Enhance portal check code to return connectivity_state (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: Remove old code, add property Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | plugins/portal_check.c » ('j') | plugins/portal_check.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/service.h
diff --git a/include/service.h b/include/service.h
index 06ec3b02ab89db7940299a0f75dd6944e6d9822d..86e9d16a5875e8ee902f4b4dc3b3ef9e6b638eea 100644
--- a/include/service.h
+++ b/include/service.h
@@ -78,6 +78,15 @@ enum connman_service_state {
CONNMAN_SERVICE_STATE_MAX
};
+enum connman_service_connectivity_state {
Sam Leffler 2010/11/19 16:06:52 please add an explanation of the different states
Jason Glasgow 2010/11/19 19:48:19 Done.
+ CONNMAN_SERVICE_CONNECTIVITY_STATE_UNKNOWN = 0,
+ CONNMAN_SERVICE_CONNECTIVITY_STATE_UNRESTRICTED = 1,
+ CONNMAN_SERVICE_CONNECTIVITY_STATE_RESTRICTED = 2,
+ CONNMAN_SERVICE_CONNECTIVITY_STATE_NONE = 3,
+
+ CONNMAN_SERVICE_CONNECTIVITY_STATE_MAX
+};
+
enum connman_service_error {
CONNMAN_SERVICE_ERROR_UNKNOWN = 0,
CONNMAN_SERVICE_ERROR_OUT_OF_RANGE = 1,
@@ -113,8 +122,9 @@ connman_bool_t connman_service_get_favorite(const struct connman_service *
service);
int connman_service_set_favorite(struct connman_service *service,
connman_bool_t favorite);
-void connman_service_set_restricted_pool(struct connman_service *service,
- connman_bool_t restricted);
+
+void connman_service_set_connectivity_state(struct connman_service *service,
+ enum connman_service_connectivity_state connectivity);
struct connman_device;
struct connman_device *connman_service_get_device(struct connman_service
« no previous file with comments | « no previous file | plugins/portal_check.c » ('j') | plugins/portal_check.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698