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

Side by Side Diff: load.cc

Issue 652187: Added ConnectToNetwork (Closed)
Patch Set: merge in new changes Created 10 years, 9 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') | monitor_network.cc » ('j') | 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) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 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_ime.h" // NOLINT 10 #include "chromeos_ime.h" // NOLINT
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 DECL_FUNC_1(DisconnectImeStatus, void, ImeStatusConnection*); 87 DECL_FUNC_1(DisconnectImeStatus, void, ImeStatusConnection*);
88 DECL_FUNC_4(NotifyCandidateClicked, void, ImeStatusConnection*, int, int, int); 88 DECL_FUNC_4(NotifyCandidateClicked, void, ImeStatusConnection*, int, int, int);
89 89
90 // Mount 90 // Mount
91 DECL_FUNC_2(MonitorMountStatus, MountStatusConnection, MountMonitor, void*); 91 DECL_FUNC_2(MonitorMountStatus, MountStatusConnection, MountMonitor, void*);
92 DECL_FUNC_1(DisconnectMountStatus, void, MountStatusConnection); 92 DECL_FUNC_1(DisconnectMountStatus, void, MountStatusConnection);
93 DECL_FUNC_0(RetrieveMountInformation, MountStatus*); 93 DECL_FUNC_0(RetrieveMountInformation, MountStatus*);
94 DECL_FUNC_1(FreeMountStatus, void, MountStatus*); 94 DECL_FUNC_1(FreeMountStatus, void, MountStatus*);
95 95
96 // Networking 96 // Networking
97 DECL_FUNC_3(ConnectToWifiNetwork, bool, const char*, const char*, const char*); 97 DECL_FUNC_2(ConnectToNetwork, bool, const char*, const char*);
98 DECL_FUNC_0(GetAvailableNetworks, ServiceStatus*); 98 DECL_FUNC_0(GetAvailableNetworks, ServiceStatus*);
99 DECL_FUNC_1(FreeServiceStatus, void, ServiceStatus*); 99 DECL_FUNC_1(FreeServiceStatus, void, ServiceStatus*);
100 DECL_FUNC_2(MonitorNetworkStatus, 100 DECL_FUNC_2(MonitorNetworkStatus,
101 NetworkStatusConnection, NetworkMonitor, void*); 101 NetworkStatusConnection, NetworkMonitor, void*);
102 DECL_FUNC_1(DisconnectNetworkStatus, void, NetworkStatusConnection); 102 DECL_FUNC_1(DisconnectNetworkStatus, void, NetworkStatusConnection);
103 DECL_FUNC_0(GetEnabledNetworkDevices, int); 103 DECL_FUNC_0(GetEnabledNetworkDevices, int);
104 DECL_FUNC_2(EnableNetworkDevice, bool, ConnectionType, bool); 104 DECL_FUNC_2(EnableNetworkDevice, bool, ConnectionType, bool);
105 DECL_FUNC_1(SetOfflineMode, bool, bool); 105 DECL_FUNC_1(SetOfflineMode, bool, bool);
106 DECL_FUNC_1(ListIPConfigs, IPConfigStatus*, const char*); 106 DECL_FUNC_1(ListIPConfigs, IPConfigStatus*, const char*);
107 DECL_FUNC_2(AddIPConfig, bool, const char*, IPConfigType); 107 DECL_FUNC_2(AddIPConfig, bool, const char*, IPConfigType);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 INIT_FUNC(DisconnectImeStatus); 210 INIT_FUNC(DisconnectImeStatus);
211 INIT_FUNC(NotifyCandidateClicked); 211 INIT_FUNC(NotifyCandidateClicked);
212 212
213 // Mount 213 // Mount
214 INIT_FUNC(MonitorMountStatus); 214 INIT_FUNC(MonitorMountStatus);
215 INIT_FUNC(DisconnectMountStatus); 215 INIT_FUNC(DisconnectMountStatus);
216 INIT_FUNC(RetrieveMountInformation); 216 INIT_FUNC(RetrieveMountInformation);
217 INIT_FUNC(FreeMountStatus); 217 INIT_FUNC(FreeMountStatus);
218 218
219 // Networking 219 // Networking
220 INIT_FUNC(ConnectToWifiNetwork); 220 INIT_FUNC(ConnectToNetwork);
221 INIT_FUNC(GetAvailableNetworks); 221 INIT_FUNC(GetAvailableNetworks);
222 INIT_FUNC(FreeServiceStatus); 222 INIT_FUNC(FreeServiceStatus);
223 INIT_FUNC(MonitorNetworkStatus); 223 INIT_FUNC(MonitorNetworkStatus);
224 INIT_FUNC(DisconnectNetworkStatus); 224 INIT_FUNC(DisconnectNetworkStatus);
225 INIT_FUNC(GetEnabledNetworkDevices); 225 INIT_FUNC(GetEnabledNetworkDevices);
226 INIT_FUNC(EnableNetworkDevice); 226 INIT_FUNC(EnableNetworkDevice);
227 INIT_FUNC(SetOfflineMode); 227 INIT_FUNC(SetOfflineMode);
228 INIT_FUNC(ListIPConfigs); 228 INIT_FUNC(ListIPConfigs);
229 INIT_FUNC(AddIPConfig); 229 INIT_FUNC(AddIPConfig);
230 INIT_FUNC(SaveIPConfig); 230 INIT_FUNC(SaveIPConfig);
(...skipping 10 matching lines...) Expand all
241 INIT_FUNC(StopSession); 241 INIT_FUNC(StopSession);
242 242
243 // Update 243 // Update
244 INIT_FUNC(Update); 244 INIT_FUNC(Update);
245 INIT_FUNC(CheckForUpdate); 245 INIT_FUNC(CheckForUpdate);
246 246
247 return error_string.empty(); 247 return error_string.empty();
248 } 248 }
249 249
250 } // namespace chromeos 250 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos_network.cc ('k') | monitor_network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698