| OLD | NEW |
| 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 #ifndef CHROMEOS_CROS_API_VERSION_H_ | 5 #ifndef CHROMEOS_CROS_API_VERSION_H_ |
| 6 #define CHROMEOS_CROS_API_VERSION_H_ | 6 #define CHROMEOS_CROS_API_VERSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 // This file defines two version numbers for the CrosAPI. | 10 // This file defines two version numbers for the CrosAPI. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // 79: Added RequestRestart to power library. | 153 // 79: Added RequestRestart to power library. |
| 154 // 80: Added a context parameter to GetSystemLogs | 154 // 80: Added a context parameter to GetSystemLogs |
| 155 // 81: Added SetTrack and GetTrack to update engine library. | 155 // 81: Added SetTrack and GetTrack to update engine library. |
| 156 // 82: Add *Safe calls for the ownership API, which use memory safely. | 156 // 82: Add *Safe calls for the ownership API, which use memory safely. |
| 157 // 83: Changed CellularDataPlan APIs, which use memory safely | 157 // 83: Changed CellularDataPlan APIs, which use memory safely |
| 158 // 84: Added Connectable property to network services. | 158 // 84: Added Connectable property to network services. |
| 159 // 85: Changed DeviceInfo in network library. | 159 // 85: Changed DeviceInfo in network library. |
| 160 // 86: Deprecated restricted_pool and added connectivity_state in ServiceInfo | 160 // 86: Deprecated restricted_pool and added connectivity_state in ServiceInfo |
| 161 // struct in network library | 161 // struct in network library |
| 162 // 87: Added entd restarting ability. | 162 // 87: Added entd restarting ability. |
| 163 // 88: Added MonitorBrightness and DisconnectBrightness. |
| 163 | 164 |
| 164 namespace chromeos { // NOLINT | 165 namespace chromeos { // NOLINT |
| 165 | 166 |
| 166 enum CrosAPIVersion { | 167 enum CrosAPIVersion { |
| 167 kCrosAPIMinVersion = 83, | 168 kCrosAPIMinVersion = 83, |
| 168 kCrosAPIVersion = 87 | 169 kCrosAPIVersion = 88 |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 172 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
| 172 extern char const * const kCrosDefaultPath; | 173 extern char const * const kCrosDefaultPath; |
| 173 | 174 |
| 174 // |path_to_libcros| is the path to the libcros.so file. | 175 // |path_to_libcros| is the path to the libcros.so file. |
| 175 // Returns true to indicate success. | 176 // Returns true to indicate success. |
| 176 // If returns false, |load_error| will contain a string describing the | 177 // If returns false, |load_error| will contain a string describing the |
| 177 // problem. | 178 // problem. |
| 178 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 179 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
| 179 | 180 |
| 180 } // namespace chromeos | 181 } // namespace chromeos |
| 181 | 182 |
| 182 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 183 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
| OLD | NEW |