| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // 55: Added GetServiceInfo and GetRememberedServiceInfo on SystemInfo struct. | 126 // 55: Added GetServiceInfo and GetRememberedServiceInfo on SystemInfo struct. |
| 127 // 56: Added RestartJob to chromeos_login.{cc,h}. | 127 // 56: Added RestartJob to chromeos_login.{cc,h}. |
| 128 // 57: Added UnmountDevicePath to chromeos_mount.h | 128 // 57: Added UnmountDevicePath to chromeos_mount.h |
| 129 // 58: Added GetHardwareKeyboardLayoutName | 129 // 58: Added GetHardwareKeyboardLayoutName |
| 130 // 59: Added ActivateCellularModem and activation_state | 130 // 59: Added ActivateCellularModem and activation_state |
| 131 // This is not backwards compatible, b/c we added a field to ServiceInfo. | 131 // This is not backwards compatible, b/c we added a field to ServiceInfo. |
| 132 // Client will need to use GetServiceInfo() which was added in version 55. | 132 // Client will need to use GetServiceInfo() which was added in version 55. |
| 133 // 60: Changed GetSystemLogs to accept a NULL parameter. | 133 // 60: Changed GetSystemLogs to accept a NULL parameter. |
| 134 // 61: Added chromeos_imageburn.{cc,h} API for burning a recovery image | 134 // 61: Added chromeos_imageburn.{cc,h} API for burning a recovery image |
| 135 // 62: Added async API for setting the Owner's public key. | 135 // 62: Added async API for setting the Owner's public key. |
| 136 // 63: Added async APIs for managing user whitelist and system settings. |
| 136 | 137 |
| 137 namespace chromeos { // NOLINT | 138 namespace chromeos { // NOLINT |
| 138 | 139 |
| 139 enum CrosAPIVersion { | 140 enum CrosAPIVersion { |
| 140 kCrosAPIMinVersion = 55, | 141 kCrosAPIMinVersion = 55, |
| 141 kCrosAPIVersion = 61 | 142 kCrosAPIVersion = 63 |
| 142 }; | 143 }; |
| 143 | 144 |
| 144 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 145 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
| 145 extern char const * const kCrosDefaultPath; | 146 extern char const * const kCrosDefaultPath; |
| 146 | 147 |
| 147 // |path_to_libcros| is the path to the libcros.so file. | 148 // |path_to_libcros| is the path to the libcros.so file. |
| 148 // Returns true to indicate success. | 149 // Returns true to indicate success. |
| 149 // If returns false, |load_error| will contain a string describing the | 150 // If returns false, |load_error| will contain a string describing the |
| 150 // problem. | 151 // problem. |
| 151 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 152 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
| 152 | 153 |
| 153 } // namespace chromeos | 154 } // namespace chromeos |
| 154 | 155 |
| 155 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 156 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
| OLD | NEW |