summaryrefslogtreecommitdiff
path: root/futility/updater.h
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2019-11-22 08:29:37 +0800
committerCommit Bot <commit-bot@chromium.org>2019-11-22 22:09:24 +0000
commit16c91aa86c73b9013d6e1397b7d0267a74f9540a (patch)
tree2d2db2a7df5a2bef986d6ca7cfb7f720555a290b /futility/updater.h
parent10c0559dd45092c26fbab9d2c9663c2d51382bae (diff)
downloadvboot-16c91aa86c73b9013d6e1397b7d0267a74f9540a.tar.gz
futility: updater: refactor: isolate tempfile functions from updater_config
The updater_utils.c should not deal with updater_config directly. Currently everything relates to generating temporary files will need updater_config due to updater_create_temp_file. By moving that out (let every caller to pass &cfg->tempfiles) we can detach updater_utils.c from updater_config. BRANCH=none BUG=chromium:1024401 TEST=make clean && make runtests Change-Id: I44bc4df0152596a822b1e0672f41c16825472249 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1928358 Tested-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Commit-Queue: Hung-Te Lin <hungte@chromium.org> Auto-Submit: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'futility/updater.h')
-rw-r--r--futility/updater.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/futility/updater.h b/futility/updater.h
index 91d3286a..c8f0f844 100644
--- a/futility/updater.h
+++ b/futility/updater.h
@@ -27,6 +27,7 @@ static const char * const FMAP_RO_FRID = "RO_FRID",
* const FMAP_SI_DESC = "SI_DESC",
* const FMAP_SI_ME = "SI_ME";
+struct updater_config;
struct quirk_entry {
const char *name;
const char *help;
@@ -59,7 +60,7 @@ struct updater_config {
struct system_property system_properties[SYS_PROP_MAX];
struct quirk_entry quirks[QUIRK_MAX];
struct archive *archive;
- struct tempfile *tempfiles;
+ struct tempfile tempfiles;
int try_update;
int force_update;
int legacy_update;