mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
Improve coverage of cgptlib.c
BUG=chromium-os:38139 BRANCH=none TEST=make runtests Change-Id: I5719c6b8aa1a23fc65bf38d7096320479152f0ca Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/41955 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
committed by
ChromeBot
parent
e9213a7c13
commit
0bda13f515
@@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2010-2011 The Chromium OS Authors. All rights reserved.
|
||||
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style license that can be
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
@@ -89,6 +89,15 @@ uint32_t HeaderCrc(GptHeader* h);
|
||||
* Returns 0 if entries are valid, 1 if invalid. */
|
||||
int CheckEntries(GptEntry* entries, GptHeader* h);
|
||||
|
||||
/* Return 0 if the GptHeaders are the same for all fields which don't
|
||||
* differ between the primary and secondary headers - that is, all
|
||||
* fields other than:
|
||||
*
|
||||
* my_lba
|
||||
* alternate_lba
|
||||
* entries_lba */
|
||||
int HeaderFieldsSame(GptHeader *h1, GptHeader *h2);
|
||||
|
||||
/* Check GptData, headers, entries.
|
||||
*
|
||||
* If successful, sets gpt->valid_headers and gpt->valid_entries and returns
|
||||
|
||||
Reference in New Issue
Block a user