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

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

Issue 2809037: Make vboot_reference build in MSVC command line environment. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Integrated trunk changes. Created 10 years, 5 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
« no previous file with comments | « host/include/host_keyblock.h ('k') | host/include/host_signature.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 * Host-side misc functions for verified boot. 5 * Host-side misc functions for verified boot.
6 */ 6 */
7 7
8 #ifndef VBOOT_REFERENCE_HOST_MISC_H_ 8 #ifndef VBOOT_REFERENCE_HOST_MISC_H_
9 #define VBOOT_REFERENCE_HOST_MISC_H_ 9 #define VBOOT_REFERENCE_HOST_MISC_H_
10 10
11 #include <stdint.h>
12
13 #include "host_misc.h"
14 #include "utility.h" 11 #include "utility.h"
15 #include "vboot_struct.h" 12 #include "vboot_struct.h"
16 13
17 14
18 /* Read data from [filename]. Store the size of returned data in [size]. 15 /* Read data from [filename]. Store the size of returned data in [size].
19 * 16 *
20 * Returns the data buffer, which the caller must Free(), or NULL if 17 * Returns the data buffer, which the caller must Free(), or NULL if
21 * error. */ 18 * error. */
22 uint8_t* ReadFile(const char* filename, uint64_t* size); 19 uint8_t* ReadFile(const char* filename, uint64_t* size);
23 20
24 21
25 /* Writes [size] bytes of [data] to [filename]. 22 /* Writes [size] bytes of [data] to [filename].
26 * 23 *
27 * Returns 0 if success, 1 if error. */ 24 * Returns 0 if success, 1 if error. */
28 int WriteFile(const char* filename, const void *data, uint64_t size); 25 int WriteFile(const char* filename, const void *data, uint64_t size);
29 26
30 27
31 #endif /* VBOOT_REFERENCE_HOST_MISC_H_ */ 28 #endif /* VBOOT_REFERENCE_HOST_MISC_H_ */
OLDNEW
« no previous file with comments | « host/include/host_keyblock.h ('k') | host/include/host_signature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698