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

Side by Side Diff: utility/cgpt/cgpt_tofix.h

Issue 2719008: Nearly complete rewrite of cgpt tool. (Closed) Base URL: ssh://git@chromiumos-git//vboot_reference.git
Patch Set: 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
« no previous file with comments | « utility/cgpt/cgpt_show.c ('k') | utility/cgpt/cgpt_tofix.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_ */
OLDNEW
« no previous file with comments | « utility/cgpt/cgpt_show.c ('k') | utility/cgpt/cgpt_tofix.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698