| 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 | 5 |
| 6 #ifndef VBOOT_REFERENCE_CGPTLIB_H_ | 6 #ifndef VBOOT_REFERENCE_CGPTLIB_H_ |
| 7 #define VBOOT_REFERENCE_CGPTLIB_H_ | 7 #define VBOOT_REFERENCE_CGPTLIB_H_ |
| 8 | 8 |
| 9 #include <stdint.h> | 9 #include "sysincludes.h" |
| 10 | 10 |
| 11 enum { | 11 enum { |
| 12 GPT_SUCCESS = 0, | 12 GPT_SUCCESS = 0, |
| 13 GPT_ERROR_NO_VALID_KERNEL, | 13 GPT_ERROR_NO_VALID_KERNEL, |
| 14 GPT_ERROR_INVALID_HEADERS, | 14 GPT_ERROR_INVALID_HEADERS, |
| 15 GPT_ERROR_INVALID_ENTRIES, | 15 GPT_ERROR_INVALID_ENTRIES, |
| 16 GPT_ERROR_INVALID_SECTOR_SIZE, | 16 GPT_ERROR_INVALID_SECTOR_SIZE, |
| 17 GPT_ERROR_INVALID_SECTOR_NUMBER, | 17 GPT_ERROR_INVALID_SECTOR_NUMBER, |
| 18 GPT_ERROR_INVALID_UPDATE_TYPE, | 18 GPT_ERROR_INVALID_UPDATE_TYPE, |
| 19 }; | 19 }; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 * of update (GPT_UPDATE_ENTRY_*). | 106 * of update (GPT_UPDATE_ENTRY_*). |
| 107 * | 107 * |
| 108 * On return the modified field may be set, if the GPT data has been modified | 108 * On return the modified field may be set, if the GPT data has been modified |
| 109 * and should be written to disk. | 109 * and should be written to disk. |
| 110 * | 110 * |
| 111 * Returns GPT_SUCCESS if successful, else | 111 * Returns GPT_SUCCESS if successful, else |
| 112 * GPT_ERROR_INVALID_UPDATE_TYPE, invalid 'update_type' is given. | 112 * GPT_ERROR_INVALID_UPDATE_TYPE, invalid 'update_type' is given. |
| 113 */ | 113 */ |
| 114 | 114 |
| 115 #endif /* VBOOT_REFERENCE_CGPTLIB_H_ */ | 115 #endif /* VBOOT_REFERENCE_CGPTLIB_H_ */ |
| OLD | NEW |