summaryrefslogtreecommitdiff
path: root/payload_generator/annotated_operation.h
diff options
context:
space:
mode:
authorSen Jiang <senj@chromium.org>2015-08-10 10:04:54 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-13 21:40:57 +0000
commit8cc502dacbccdab96824d42287f230ce04004784 (patch)
tree1e5cf087e09bb55ee76545414385d18c1f8478fc /payload_generator/annotated_operation.h
parent535f3b738b0bcbca23a6e361c84bf84145d6a3e6 (diff)
update_engine: Change OperationsGenerator to use BlobFileWriter
BUG=chromium:517280 TEST=Unit test for BlobFileWriter Change-Id: Ib49925676331acee97ff6b4cec38a81ca8b157a1 Reviewed-on: https://chromium-review.googlesource.com/291441 Tested-by: Sen Jiang <senj@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Sen Jiang <senj@chromium.org>
Diffstat (limited to 'payload_generator/annotated_operation.h')
-rw-r--r--payload_generator/annotated_operation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/payload_generator/annotated_operation.h b/payload_generator/annotated_operation.h
index bacc0ab1..2a88bef1 100644
--- a/payload_generator/annotated_operation.h
+++ b/payload_generator/annotated_operation.h
@@ -9,6 +9,8 @@
#include <string>
#include <chromeos/secure_blob.h>
+
+#include "update_engine/payload_generator/blob_file_writer.h"
#include "update_engine/update_metadata.pb.h"
namespace chromeos_update_engine {
@@ -24,8 +26,7 @@ struct AnnotatedOperation {
// Writes |blob| to the end of |data_fd|, and updates |data_file_size| to
// match the new size of |data_fd|. It sets the data_offset and data_length
// in AnnotatedOperation to match the offset and size of |blob| in |data_fd|.
- bool SetOperationBlob(chromeos::Blob* blob, int data_fd,
- off_t* data_file_size);
+ bool SetOperationBlob(chromeos::Blob* blob, BlobFileWriter* blob_file);
};
// For logging purposes.