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

Unified Diff: chromeos_network.h

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_cros_api.h ('k') | chromeos_network.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos_network.h
diff --git a/chromeos_network.h b/chromeos_network.h
index a73620913064533a1cc233facc6bb63abebdf6e4..f6fa6013ec450ff1201d29c364db0c5ef4ea1aaa 100644
--- a/chromeos_network.h
+++ b/chromeos_network.h
@@ -149,6 +149,7 @@ extern bool (*ConnectToNetworkWithCertInfo)(const char* service_path,
const char* passphrase,
const char* identity,
const char* certpath);
+
// Connects to the network with the |service_path|.
//
// Set |passphrase| to NULL if the network doesn't require authentication.
@@ -160,6 +161,9 @@ extern bool (*ConnectToNetworkWithCertInfo)(const char* service_path,
extern bool (*ConnectToNetwork)(const char* service_path,
const char* passphrase);
+// Disconnects from the network with the |service_path|.
+extern bool (*DisconnectFromNetwork)(const char* service_path);
+
// This will delete this service from the list of remembered service.
//
// Returns false on failure and true on success.
@@ -209,6 +213,11 @@ extern bool (*SetOfflineMode)(bool offline);
// Returns true on success.
extern bool (*SetAutoConnect)(const char* service_path, bool auto_connect);
+// Set passphrase for service.
+//
+// Returns true on success.
+extern bool (*SetPassphrase)(const char* service_path, const char* passphrase);
+
// Gets a list of all the IPConfigs using a given device path
extern IPConfigStatus* (*ListIPConfigs)(const char* device_path);
« no previous file with comments | « chromeos_cros_api.h ('k') | chromeos_network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698