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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // 49: Added RebootIfUpdated. | 119 // 49: Added RebootIfUpdated. |
120 // 50: Added new flimflam error codes. | 120 // 50: Added new flimflam error codes. |
121 // 51: Added GetMachineInfo | 121 // 51: Added GetMachineInfo |
122 // 52: Added ConfigureWifiService. | 122 // 52: Added ConfigureWifiService. |
123 // 53: Added TPM APIs to Cryptohome. | 123 // 53: Added TPM APIs to Cryptohome. |
124 // 54: Added GetAutoRepeatEnabled, SetAutoRepeatEnabled, GetAutoRepeatRate, and | 124 // 54: Added GetAutoRepeatEnabled, SetAutoRepeatEnabled, GetAutoRepeatRate, and |
125 // SetAutoRepeatRate | 125 // SetAutoRepeatRate |
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 | 130 |
130 namespace chromeos { // NOLINT | 131 namespace chromeos { // NOLINT |
131 | 132 |
132 enum CrosAPIVersion { | 133 enum CrosAPIVersion { |
133 kCrosAPIMinVersion = 29, | 134 kCrosAPIMinVersion = 29, |
134 kCrosAPIVersion = 57 | 135 kCrosAPIVersion = 58 |
135 }; | 136 }; |
136 | 137 |
137 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" | 138 // Default path to pass to LoadCros: "/opt/google/chrome/chromeos/libcros.so" |
138 extern char const * const kCrosDefaultPath; | 139 extern char const * const kCrosDefaultPath; |
139 | 140 |
140 // |path_to_libcros| is the path to the libcros.so file. | 141 // |path_to_libcros| is the path to the libcros.so file. |
141 // Returns true to indicate success. | 142 // Returns true to indicate success. |
142 // If returns false, |load_error| will contain a string describing the | 143 // If returns false, |load_error| will contain a string describing the |
143 // problem. | 144 // problem. |
144 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); | 145 bool LoadLibcros(const char* path_to_libcros, std::string& load_error); |
145 | 146 |
146 } // namespace chromeos | 147 } // namespace chromeos |
147 | 148 |
148 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ | 149 #endif /* CHROMEOS_CROS_API_VERSION_H_ */ |
OLD | NEW |