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

Side by Side Diff: chromeos_cros_api.h

Issue 3166035: add more ownership API methods to libcros (Closed) Base URL: http://git.chromium.org/git/cros.git
Patch Set: Forgot to INIT_FUNC some new stuff Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chromeos_login.h » ('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) 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
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_ */
OLDNEW
« no previous file with comments | « no previous file | chromeos_login.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698