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

Side by Side Diff: load.cc

Issue 1695032: Added DisconnectFromNetwork and SetPassphrase. (Closed) Base URL: ssh://git@chromiumos-git//cros.git
Patch Set: Created 10 years, 7 months 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
« no previous file with comments | « chromeos_network.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <cstdio> 5 #include <cstdio>
6 #include <dlfcn.h> 6 #include <dlfcn.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "chromeos_cros_api.h" // NOLINT 9 #include "chromeos_cros_api.h" // NOLINT
10 #include "chromeos_input_method.h" // NOLINT 10 #include "chromeos_input_method.h" // NOLINT
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 DECL_FUNC_1(FreeMountStatus, void, MountStatus*); 127 DECL_FUNC_1(FreeMountStatus, void, MountStatus*);
128 DECL_FUNC_1(MountDevicePath, bool, const char*); 128 DECL_FUNC_1(MountDevicePath, bool, const char*);
129 129
130 // Networking 130 // Networking
131 DECL_FUNC_0(GetSystemInfo, SystemInfo*); 131 DECL_FUNC_0(GetSystemInfo, SystemInfo*);
132 DECL_FUNC_1(RequestScan, void, ConnectionType); 132 DECL_FUNC_1(RequestScan, void, ConnectionType);
133 DECL_FUNC_2(GetWifiService, ServiceInfo*, const char*, ConnectionSecurity); 133 DECL_FUNC_2(GetWifiService, ServiceInfo*, const char*, ConnectionSecurity);
134 DECL_FUNC_2(ConnectToNetwork, bool, const char*, const char*); 134 DECL_FUNC_2(ConnectToNetwork, bool, const char*, const char*);
135 DECL_FUNC_4(ConnectToNetworkWithCertInfo, bool, const char*, const char*, 135 DECL_FUNC_4(ConnectToNetworkWithCertInfo, bool, const char*, const char*,
136 const char*, const char*); 136 const char*, const char*);
137 DECL_FUNC_1(DisconnectFromNetwork, bool, const char*);
137 DECL_FUNC_1(DeleteRememberedService, bool, const char*); 138 DECL_FUNC_1(DeleteRememberedService, bool, const char*);
138 DECL_FUNC_1(FreeSystemInfo, void, SystemInfo*); 139 DECL_FUNC_1(FreeSystemInfo, void, SystemInfo*);
139 DECL_FUNC_1(FreeServiceInfo, void, ServiceInfo*); 140 DECL_FUNC_1(FreeServiceInfo, void, ServiceInfo*);
140 DECL_FUNC_2(MonitorNetwork, 141 DECL_FUNC_2(MonitorNetwork,
141 MonitorNetworkConnection, MonitorNetworkCallback, void*); 142 MonitorNetworkConnection, MonitorNetworkCallback, void*);
142 DECL_FUNC_1(DisconnectMonitorNetwork, void, MonitorNetworkConnection); 143 DECL_FUNC_1(DisconnectMonitorNetwork, void, MonitorNetworkConnection);
143 DECL_FUNC_2(EnableNetworkDevice, bool, ConnectionType, bool); 144 DECL_FUNC_2(EnableNetworkDevice, bool, ConnectionType, bool);
144 DECL_FUNC_1(SetOfflineMode, bool, bool); 145 DECL_FUNC_1(SetOfflineMode, bool, bool);
145 DECL_FUNC_2(SetAutoConnect, bool, const char*, bool); 146 DECL_FUNC_2(SetAutoConnect, bool, const char*, bool);
147 DECL_FUNC_2(SetPassphrase, bool, const char*, const char*);
146 DECL_FUNC_1(ListIPConfigs, IPConfigStatus*, const char*); 148 DECL_FUNC_1(ListIPConfigs, IPConfigStatus*, const char*);
147 DECL_FUNC_2(AddIPConfig, bool, const char*, IPConfigType); 149 DECL_FUNC_2(AddIPConfig, bool, const char*, IPConfigType);
148 DECL_FUNC_1(SaveIPConfig, bool, IPConfig*); 150 DECL_FUNC_1(SaveIPConfig, bool, IPConfig*);
149 DECL_FUNC_1(RemoveIPConfig, bool, IPConfig*); 151 DECL_FUNC_1(RemoveIPConfig, bool, IPConfig*);
150 DECL_FUNC_1(FreeIPConfig, void, IPConfig*); 152 DECL_FUNC_1(FreeIPConfig, void, IPConfig*);
151 DECL_FUNC_1(FreeIPConfigStatus, void, IPConfigStatus*); 153 DECL_FUNC_1(FreeIPConfigStatus, void, IPConfigStatus*);
152 154
153 // Touchpad 155 // Touchpad
154 DECL_FUNC_2(SetSynapticsParameter, void, SynapticsParameter, int); 156 DECL_FUNC_2(SetSynapticsParameter, void, SynapticsParameter, int);
155 157
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 INIT_FUNC(RetrieveMountInformation); 273 INIT_FUNC(RetrieveMountInformation);
272 INIT_FUNC(FreeMountStatus); 274 INIT_FUNC(FreeMountStatus);
273 INIT_FUNC(MountDevicePath); 275 INIT_FUNC(MountDevicePath);
274 276
275 // Networking 277 // Networking
276 INIT_FUNC(GetSystemInfo); 278 INIT_FUNC(GetSystemInfo);
277 INIT_FUNC(RequestScan); 279 INIT_FUNC(RequestScan);
278 INIT_FUNC(GetWifiService); 280 INIT_FUNC(GetWifiService);
279 INIT_FUNC(ConnectToNetwork); 281 INIT_FUNC(ConnectToNetwork);
280 INIT_FUNC(ConnectToNetworkWithCertInfo); 282 INIT_FUNC(ConnectToNetworkWithCertInfo);
283 INIT_FUNC(DisconnectFromNetwork);
281 INIT_FUNC(DeleteRememberedService); 284 INIT_FUNC(DeleteRememberedService);
282 INIT_FUNC(FreeSystemInfo); 285 INIT_FUNC(FreeSystemInfo);
283 INIT_FUNC(FreeServiceInfo); 286 INIT_FUNC(FreeServiceInfo);
284 INIT_FUNC(MonitorNetwork); 287 INIT_FUNC(MonitorNetwork);
285 INIT_FUNC(DisconnectMonitorNetwork); 288 INIT_FUNC(DisconnectMonitorNetwork);
286 INIT_FUNC(EnableNetworkDevice); 289 INIT_FUNC(EnableNetworkDevice);
287 INIT_FUNC(SetOfflineMode); 290 INIT_FUNC(SetOfflineMode);
288 INIT_FUNC(SetAutoConnect); 291 INIT_FUNC(SetAutoConnect);
292 INIT_FUNC(SetPassphrase);
289 INIT_FUNC(ListIPConfigs); 293 INIT_FUNC(ListIPConfigs);
290 INIT_FUNC(AddIPConfig); 294 INIT_FUNC(AddIPConfig);
291 INIT_FUNC(SaveIPConfig); 295 INIT_FUNC(SaveIPConfig);
292 INIT_FUNC(RemoveIPConfig); 296 INIT_FUNC(RemoveIPConfig);
293 INIT_FUNC(FreeIPConfig); 297 INIT_FUNC(FreeIPConfig);
294 INIT_FUNC(FreeIPConfigStatus); 298 INIT_FUNC(FreeIPConfigStatus);
295 299
296 // Touchpad 300 // Touchpad
297 INIT_FUNC(SetSynapticsParameter); 301 INIT_FUNC(SetSynapticsParameter);
298 302
(...skipping 14 matching lines...) Expand all
313 317
314 INIT_FUNC(Speak); 318 INIT_FUNC(Speak);
315 INIT_FUNC(SetSpeakProperties); 319 INIT_FUNC(SetSpeakProperties);
316 INIT_FUNC(StopSpeaking); 320 INIT_FUNC(StopSpeaking);
317 INIT_FUNC(IsSpeaking); 321 INIT_FUNC(IsSpeaking);
318 322
319 return error_string.empty(); 323 return error_string.empty();
320 } 324 }
321 325
322 } // namespace chromeos 326 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos_network.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698