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

Side by Side Diff: src/platform/vboot_reference/utility/cgpt/cgpt.h

Issue 2438005: Much rearranging of cgptlib. Passes all its (new) unit tests. (Closed) Base URL: ssh://gitrw.chromium.org/chromiumos
Patch Set: Pre commit Created 10 years, 6 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
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 * Header file for cgpt. 5 * Header file for cgpt.
6 */ 6 */
7 #ifndef VBOOT_REFERENCE_UTILITY_CGPT_CGPT_H_ 7 #ifndef VBOOT_REFERENCE_UTILITY_CGPT_CGPT_H_
8 #define VBOOT_REFERENCE_UTILITY_CGPT_CGPT_H_ 8 #define VBOOT_REFERENCE_UTILITY_CGPT_CGPT_H_
9 9
10 #include <getopt.h> 10 #include <getopt.h>
11 #include <stdint.h> 11 #include <stdint.h>
12 #include "cgptlib.h" 12 #include "cgptlib.h"
13 #include "gpt.h"
13 14
14 enum { 15 enum {
15 CGPT_OK = 0, 16 CGPT_OK = 0,
16 CGPT_FAILED, /* generic error */ 17 CGPT_FAILED, /* generic error */
17 }; 18 };
18 19
19 #define NOT_INITED (-1) /* to indicated a signed integer is not initialed. */ 20 #define NOT_INITED (-1) /* to indicated a signed integer is not initialed. */
20 21
21 #define ARRAY_COUNT(array) (sizeof(array)/sizeof((array)[0])) 22 #define ARRAY_COUNT(array) (sizeof(array)/sizeof((array)[0]))
22 23
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 /* Function declarations for commands. 149 /* Function declarations for commands.
149 * The return value of these functions is passed to main()'s exit value. */ 150 * The return value of these functions is passed to main()'s exit value. */
150 int CgptAdm(int argc, char *argv[]); 151 int CgptAdm(int argc, char *argv[]);
151 int CgptAttribute(int argc, char *argv[]); 152 int CgptAttribute(int argc, char *argv[]);
152 int CgptDev(int argc, char *argv[]); 153 int CgptDev(int argc, char *argv[]);
153 int CgptRepair(int argc, char *argv[]); 154 int CgptRepair(int argc, char *argv[]);
154 int CgptShow(int argc, char *argv[]); 155 int CgptShow(int argc, char *argv[]);
155 156
156 #endif /* VBOOT_REFERENCE_UTILITY_CGPT_CGPT_H_ */ 157 #endif /* VBOOT_REFERENCE_UTILITY_CGPT_CGPT_H_ */
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/utility/cgpt/Makefile ('k') | src/platform/vboot_reference/utility/cgpt/cgpt.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698