diff options
Diffstat (limited to 'cgpt/cgpt.h')
-rw-r--r-- | cgpt/cgpt.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cgpt/cgpt.h b/cgpt/cgpt.h index 47630928..3d09fb97 100644 --- a/cgpt/cgpt.h +++ b/cgpt/cgpt.h @@ -5,11 +5,6 @@ #ifndef VBOOT_REFERENCE_UTILITY_CGPT_CGPT_H_ #define VBOOT_REFERENCE_UTILITY_CGPT_CGPT_H_ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif - -#define _FILE_OFFSET_BITS 64 #include <fcntl.h> #include <features.h> #include <stdint.h> @@ -20,13 +15,6 @@ #include "cgptlib.h" -// Just for clarity -enum { - CGPT_OK = 0, - CGPT_FAILED, -}; - - struct legacy_partition { uint8_t status; uint8_t f_head; @@ -67,19 +55,6 @@ int DriveOpen(const char *drive_path, struct drive *drive, int mode); int DriveClose(struct drive *drive, int update_as_needed); int CheckValid(const struct drive *drive); -/* GUID conversion functions. Accepted format: - * - * "C12A7328-F81F-11D2-BA4B-00A0C93EC93B" - * - * At least GUID_STRLEN bytes should be reserved in 'str' (included the tailing - * '\0'). - */ -#define GUID_STRLEN 37 -int StrToGuid(const char *str, Guid *guid); -void GuidToStr(const Guid *guid, char *str, unsigned int buflen); -int GuidEqual(const Guid *guid1, const Guid *guid2); -int GuidIsZero(const Guid *guid); - /* Constant global type values to compare against */ extern const Guid guid_chromeos_firmware; extern const Guid guid_chromeos_kernel; |