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

Side by Side Diff: host/include/crossystem.h

Issue 6413002: Initial version of crossystem. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Fixed issues from first pass of code review Created 9 years, 10 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
OLDNEW
(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_ */
OLDNEW
« no previous file with comments | « host/Makefile ('k') | host/lib/crossystem.c » ('j') | host/lib/crossystem.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698