OLD | NEW |
---|---|
(Empty) | |
1 /* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | |
2 * Use of this source code is governed by a BSD-style license that can be | |
3 * found in the LICENSE file. | |
4 */ | |
5 | |
6 #ifndef VBOOT_REFERENCE_CROSSYSTEM_H_ | |
7 #define VBOOT_REFERENCE_CROSSYSTEM_H_ | |
8 | |
9 /* Reads a system property integer. | |
10 * | |
11 * Returns the property value, or -1 if error. */ | |
12 int VbGetSystemPropertyInt(const char* name); | |
13 | |
14 /* Read a system property string into a destination buffer of the specified | |
15 * size. | |
Bill Richardson
2011/02/07 18:49:51
Might also comment that the returned string will b
| |
16 * | |
17 * Returns the passed buffer, or NULL if error. */ | |
18 const char* VbGetSystemPropertyString(const char* name, char* dest, int size); | |
19 | |
20 /* Sets a system property integer. | |
21 * | |
22 * Returns 0 if success, -1 if error. */ | |
23 int VbSetSystemPropertyInt(const char* name, int value); | |
24 | |
25 /* Set a system property string. | |
26 * | |
27 * Returns 0 if success, -1 if error. */ | |
28 int VbSetSystemPropertyString(const char* name, const char* value); | |
29 | |
30 #endif /* VBOOT_REFERENCE__CROSSYSTEM_H_ */ | |
OLD | NEW |