| OLD | NEW |
| (Empty) |
| 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 | |
| 3 * found in the LICENSE file. | |
| 4 */ | |
| 5 | |
| 6 #ifndef CGPT_TOFIX_H_ | |
| 7 #define CGPT_TOFIX_H_ | |
| 8 | |
| 9 #include <stdint.h> | |
| 10 #include "cgptlib.h" | |
| 11 #include "cgptlib_internal.h" | |
| 12 #include "gpt.h" | |
| 13 | |
| 14 /* TODO: This is stuff copied out of cgptlib. cgptlib doesn't need it anymore,b
ut currently the cgpt tool does. */ | |
| 15 | |
| 16 const char *GptError(int errno); | |
| 17 | |
| 18 int IsSynonymous(const GptHeader* a, const GptHeader* b); | |
| 19 uint8_t RepairEntries(GptData *gpt, const uint32_t valid_entries); | |
| 20 uint8_t RepairHeader(GptData *gpt, const uint32_t valid_headers); | |
| 21 void UpdateCrc(GptData *gpt); | |
| 22 int NonZeroGuid(const Guid *guid); | |
| 23 uint32_t CheckValidEntries(GptData *gpt); | |
| 24 uint32_t CheckOverlappedPartition(GptData *gpt); | |
| 25 | |
| 26 GptEntry *GetEntry(GptData *gpt, int secondary, int entry_index); | |
| 27 void SetPriority(GptData *gpt, int secondary, int entry_index, int priority); | |
| 28 int GetPriority(GptData *gpt, int secondary, int entry_index); | |
| 29 void SetBad(GptData *gpt, int secondary, int entry_index, int bad); | |
| 30 int GetBad(GptData *gpt, int secondary, int entry_index); | |
| 31 void SetTries(GptData *gpt, int secondary, int entry_index, int tries); | |
| 32 int GetTries(GptData *gpt, int secondary, int entry_index); | |
| 33 void SetSuccessful(GptData *gpt, int secondary, int entry_index, int success); | |
| 34 int GetSuccessful(GptData *gpt, int secondary, int entry_index); | |
| 35 | |
| 36 /* Get number of entries value in primary header */ | |
| 37 uint32_t GetNumberOfEntries(const GptData *gpt); | |
| 38 | |
| 39 | |
| 40 #endif /* CGPT_TOFIX_H_ */ | |
| OLD | NEW |