OLD | NEW |
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 Loading... |
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_ */ |
OLD | NEW |