OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium 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 module arc; | 5 module arc; |
6 | 6 |
7 [Extensible] | 7 [Extensible] |
8 enum NetworkResult { | 8 enum NetworkResult { |
9 SUCCESS = 0, | 9 SUCCESS = 0, |
10 FAILURE = 1, | 10 FAILURE = 1, |
(...skipping 15 matching lines...) Expand all Loading... | |
26 array<WifiConfiguration> networks; | 26 array<WifiConfiguration> networks; |
27 }; | 27 }; |
28 | 28 |
29 interface NetHost { | 29 interface NetHost { |
30 // Sends a request to get configured or visible WiFi networks based on the | 30 // Sends a request to get configured or visible WiFi networks based on the |
31 // |configured_only| and |visible_only| flags. | 31 // |configured_only| and |visible_only| flags. |
32 GetNetworks@0(bool configured_only, bool visible_only) => (NetworkData data); | 32 GetNetworks@0(bool configured_only, bool visible_only) => (NetworkData data); |
33 | 33 |
34 // Sends a request to get enabled / disabled status of WiFi. | 34 // Sends a request to get enabled / disabled status of WiFi. |
35 GetWifiEnabledState@1() => (bool is_enabled); | 35 GetWifiEnabledState@1() => (bool is_enabled); |
36 | |
37 // Sends a request to start scan of WiFi APs. | |
38 StartScan@2() => (bool result); | |
Luis Héctor Chávez
2016/02/08 16:35:46
[MinVersion=1]
abhishekbh
2016/02/12 02:17:33
Done.
| |
36 }; | 39 }; |
37 | 40 |
38 interface NetInstance { | 41 interface NetInstance { |
39 // Establishes full-duplex communication with the host. | 42 // Establishes full-duplex communication with the host. |
40 Init@0(NetHost host_ptr); | 43 Init@0(NetHost host_ptr); |
41 }; | 44 }; |
OLD | NEW |