Index: utility/include/gbb_utility.h |
diff --git a/utility/include/gbb_utility.h b/utility/include/gbb_utility.h |
index 468cddf99b999aef17af6d9d1c984f6a3b6bbee2..55d4a390bfa3ce4531795de582f764d69be81fa5 100644 |
--- a/utility/include/gbb_utility.h |
+++ b/utility/include/gbb_utility.h |
@@ -7,6 +7,7 @@ |
#define VBOOT_REFERENCE_GBB_UTILITY_H_ |
#include <string> |
+#include <vector> |
#include "gbb_header.h" |
namespace vboot_reference { |
@@ -33,6 +34,11 @@ class GoogleBinaryBlockUtil { |
// return true on success. |
bool save_to_file(const char *filename); |
+ // create a new GBB blob by providing a list of reserved data size for each |
+ // properties, following the order described in GoogleBinaryBlockHeader. |
+ // return true on success. |
+ bool create_new(const std::vector<uint32_t> &create_param); |
+ |
// retrieve the value of a property from GBB data. |
// return the property value. |
std::string get_property(PROPINDEX i) const; |
@@ -86,4 +92,3 @@ class GoogleBinaryBlockUtil { |
} // namespace vboot_reference |
#endif // VBOOT_REFERENCE_GBB_UTILITY_H_ |
- |