summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sbat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sbat.h b/include/sbat.h
index acda5ef6..ab2325bd 100644
--- a/include/sbat.h
+++ b/include/sbat.h
@@ -6,5 +6,24 @@
#ifndef SBAT_H_
#define SBAT_H_
+#include "shim.h"
+
+struct sbat_entry {
+ const CHAR8 *component_name;
+ const CHAR8 *component_generation;
+ const CHAR8 *vendor_name;
+ const CHAR8 *vendor_package_name;
+ const CHAR8 *vendor_version;
+ const CHAR8 *vendor_url;
+};
+
+struct sbat {
+ unsigned int size;
+ struct sbat_entry **entries;
+};
+
+EFI_STATUS parse_sbat(char *sbat_base, size_t sbat_size, char *buffer,
+ struct sbat *sbat);
+
#endif /* !SBAT_H_ */
// vim:fenc=utf-8:tw=75:noet