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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | plugins/portal_check.c » ('j') | plugins/portal_check.c » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * 2 *
3 * Connection Manager 3 * Connection Manager
4 * 4 *
5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. 5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved.
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as 8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation. 9 * published by the Free Software Foundation.
10 * 10 *
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 CONNMAN_SERVICE_STATE_ASSOCIATION = 3, 71 CONNMAN_SERVICE_STATE_ASSOCIATION = 3,
72 CONNMAN_SERVICE_STATE_CONFIGURATION = 4, 72 CONNMAN_SERVICE_STATE_CONFIGURATION = 4,
73 CONNMAN_SERVICE_STATE_READY = 5, 73 CONNMAN_SERVICE_STATE_READY = 5,
74 CONNMAN_SERVICE_STATE_DISCONNECT = 6, 74 CONNMAN_SERVICE_STATE_DISCONNECT = 6,
75 CONNMAN_SERVICE_STATE_FAILURE = 7, 75 CONNMAN_SERVICE_STATE_FAILURE = 7,
76 CONNMAN_SERVICE_STATE_ACTIVATION_FAILURE = 8, 76 CONNMAN_SERVICE_STATE_ACTIVATION_FAILURE = 8,
77 77
78 CONNMAN_SERVICE_STATE_MAX 78 CONNMAN_SERVICE_STATE_MAX
79 }; 79 };
80 80
81 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.
82 CONNMAN_SERVICE_CONNECTIVITY_STATE_UNKNOWN = 0,
83 CONNMAN_SERVICE_CONNECTIVITY_STATE_UNRESTRICTED = 1,
84 CONNMAN_SERVICE_CONNECTIVITY_STATE_RESTRICTED = 2,
85 CONNMAN_SERVICE_CONNECTIVITY_STATE_NONE = 3,
86
87 CONNMAN_SERVICE_CONNECTIVITY_STATE_MAX
88 };
89
81 enum connman_service_error { 90 enum connman_service_error {
82 CONNMAN_SERVICE_ERROR_UNKNOWN = 0, 91 CONNMAN_SERVICE_ERROR_UNKNOWN = 0,
83 CONNMAN_SERVICE_ERROR_OUT_OF_RANGE = 1, 92 CONNMAN_SERVICE_ERROR_OUT_OF_RANGE = 1,
84 CONNMAN_SERVICE_ERROR_PIN_MISSING = 2, 93 CONNMAN_SERVICE_ERROR_PIN_MISSING = 2,
85 CONNMAN_SERVICE_ERROR_DHCP_FAILED = 3, 94 CONNMAN_SERVICE_ERROR_DHCP_FAILED = 3,
86 CONNMAN_SERVICE_ERROR_CONNECT_FAILED = 4, 95 CONNMAN_SERVICE_ERROR_CONNECT_FAILED = 4,
87 CONNMAN_SERVICE_ERROR_BAD_PASSPHRASE = 5, 96 CONNMAN_SERVICE_ERROR_BAD_PASSPHRASE = 5,
88 CONNMAN_SERVICE_ERROR_BAD_WEPKEY = 6, 97 CONNMAN_SERVICE_ERROR_BAD_WEPKEY = 6,
89 CONNMAN_SERVICE_ERROR_ACTIVATION_FAILED = 7, 98 CONNMAN_SERVICE_ERROR_ACTIVATION_FAILED = 7,
90 CONNMAN_SERVICE_ERROR_NEED_EVDO = 8, 99 CONNMAN_SERVICE_ERROR_NEED_EVDO = 8,
(...skipping 15 matching lines...) Expand all
106 const char *connman_service_get_identifier(const struct connman_service * 115 const char *connman_service_get_identifier(const struct connman_service *
107 service); 116 service);
108 connman_bool_t connman_service_get_autoconnect(const struct connman_service * 117 connman_bool_t connman_service_get_autoconnect(const struct connman_service *
109 service); 118 service);
110 void connman_service_auto_connect(struct connman_service *); 119 void connman_service_auto_connect(struct connman_service *);
111 120
112 connman_bool_t connman_service_get_favorite(const struct connman_service * 121 connman_bool_t connman_service_get_favorite(const struct connman_service *
113 service); 122 service);
114 int connman_service_set_favorite(struct connman_service *service, 123 int connman_service_set_favorite(struct connman_service *service,
115 connman_bool_t favorite); 124 connman_bool_t favorite);
116 void connman_service_set_restricted_pool(struct connman_service *service, 125
117 » » » » » » connman_bool_t restricted); 126 void connman_service_set_connectivity_state(struct connman_service *service,
127 » » enum connman_service_connectivity_state connectivity);
118 128
119 struct connman_device; 129 struct connman_device;
120 struct connman_device *connman_service_get_device(struct connman_service 130 struct connman_device *connman_service_get_device(struct connman_service
121 *service); 131 *service);
122 const char *connman_service_get_state(const struct connman_service *service); 132 const char *connman_service_get_state(const struct connman_service *service);
123 const char *connman_service_get_type(const struct connman_service *service); 133 const char *connman_service_get_type(const struct connman_service *service);
124 134
125 struct connman_network; 135 struct connman_network;
126 struct connman_service *connman_service_lookup_from_network(struct 136 struct connman_service *connman_service_lookup_from_network(struct
127 connman_network *network); 137 connman_network *network);
(...skipping 15 matching lines...) Expand all
143 enum connman_network_phymode connman_service_get_phymode(const struct 153 enum connman_network_phymode connman_service_get_phymode(const struct
144 connman_service *service); 154 connman_service *service);
145 enum connman_service_security connman_service_get_security(const struct 155 enum connman_service_security connman_service_get_security(const struct
146 connman_service *service); 156 connman_service *service);
147 157
148 #ifdef __cplusplus 158 #ifdef __cplusplus
149 } 159 }
150 #endif 160 #endif
151 161
152 #endif /* __CONNMAN_SERVICE_H */ 162 #endif /* __CONNMAN_SERVICE_H */
OLDNEW
« 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