Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: utility/include/gbb_utility.h

Issue 6173001: vboot_reference: add creation of GBB blob to gbb_utility (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: fix lint warnings Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utility/gbb_utility.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
-
« no previous file with comments | « utility/gbb_utility.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698