1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 3 #ifndef SMMSTORETOOL__GUIDS_H__ 4 #define SMMSTORETOOL__GUIDS_H__ 5 6 #include <stdbool.h> 7 8 #include "udk2017.h" 9 10 #define GUID_LEN 35 11 12 struct guid_alias_t { 13 const char *alias; 14 EFI_GUID guid; 15 }; 16 17 extern const struct guid_alias_t known_guids[]; 18 19 extern const int known_guid_count; 20 21 char *format_guid(const EFI_GUID *guid, bool use_alias); 22 23 bool parse_guid(const char str[], EFI_GUID *guid); 24 25 #endif // SMMSTORETOOL__GUIDS_H__ 26