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

Unified Diff: load.cc

Issue 1695032: Added DisconnectFromNetwork and SetPassphrase. (Closed) Base URL: ssh://git@chromiumos-git//cros.git
Patch Set: Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos_network.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: load.cc
diff --git a/load.cc b/load.cc
index 6d35d8734cdba3d906d5be910466935126f57c6c..a9c32078b5bc4c2e08b4e46f40eef59da6f4f15e 100644
--- a/load.cc
+++ b/load.cc
@@ -134,6 +134,7 @@ DECL_FUNC_2(GetWifiService, ServiceInfo*, const char*, ConnectionSecurity);
DECL_FUNC_2(ConnectToNetwork, bool, const char*, const char*);
DECL_FUNC_4(ConnectToNetworkWithCertInfo, bool, const char*, const char*,
const char*, const char*);
+DECL_FUNC_1(DisconnectFromNetwork, bool, const char*);
DECL_FUNC_1(DeleteRememberedService, bool, const char*);
DECL_FUNC_1(FreeSystemInfo, void, SystemInfo*);
DECL_FUNC_1(FreeServiceInfo, void, ServiceInfo*);
@@ -143,6 +144,7 @@ DECL_FUNC_1(DisconnectMonitorNetwork, void, MonitorNetworkConnection);
DECL_FUNC_2(EnableNetworkDevice, bool, ConnectionType, bool);
DECL_FUNC_1(SetOfflineMode, bool, bool);
DECL_FUNC_2(SetAutoConnect, bool, const char*, bool);
+DECL_FUNC_2(SetPassphrase, bool, const char*, const char*);
DECL_FUNC_1(ListIPConfigs, IPConfigStatus*, const char*);
DECL_FUNC_2(AddIPConfig, bool, const char*, IPConfigType);
DECL_FUNC_1(SaveIPConfig, bool, IPConfig*);
@@ -278,6 +280,7 @@ bool LoadLibcros(const char* path_to_libcros, std::string& error_string) {
INIT_FUNC(GetWifiService);
INIT_FUNC(ConnectToNetwork);
INIT_FUNC(ConnectToNetworkWithCertInfo);
+ INIT_FUNC(DisconnectFromNetwork);
INIT_FUNC(DeleteRememberedService);
INIT_FUNC(FreeSystemInfo);
INIT_FUNC(FreeServiceInfo);
@@ -286,6 +289,7 @@ bool LoadLibcros(const char* path_to_libcros, std::string& error_string) {
INIT_FUNC(EnableNetworkDevice);
INIT_FUNC(SetOfflineMode);
INIT_FUNC(SetAutoConnect);
+ INIT_FUNC(SetPassphrase);
INIT_FUNC(ListIPConfigs);
INIT_FUNC(AddIPConfig);
INIT_FUNC(SaveIPConfig);
« 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