diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-08-09 23:16:27 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-08-09 23:16:27 +0000 |
commit | 770395dee1e3fd632f0cbb71a24f2648d4d50f1b (patch) | |
tree | 7e1ef9306d349b688817734bca18381cbe38f4ff /fastboot/engine.cpp | |
parent | 18eae78c09d8e037fc0e3d038cf338e15ba7ddcb (diff) | |
parent | 0d4277d7b34eb1f5e37f268732ad7230ad903855 (diff) |
Merge "fastbootd: Add commands for logical partitions."
Diffstat (limited to 'fastboot/engine.cpp')
-rw-r--r-- | fastboot/engine.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fastboot/engine.cpp b/fastboot/engine.cpp index 63ee2af5b..689064339 100644 --- a/fastboot/engine.cpp +++ b/fastboot/engine.cpp @@ -155,6 +155,21 @@ void fb_queue_flash_sparse(const std::string& partition, struct sparse_file* s, total); } +void fb_queue_create_partition(const std::string& partition, const std::string& size) { + Action& a = queue_action(OP_COMMAND, FB_CMD_CREATE_PARTITION ":" + partition + ":" + size); + a.msg = "Creating '" + partition + "'"; +} + +void fb_queue_delete_partition(const std::string& partition) { + Action& a = queue_action(OP_COMMAND, FB_CMD_DELETE_PARTITION ":" + partition); + a.msg = "Deleting '" + partition + "'"; +} + +void fb_queue_resize_partition(const std::string& partition, const std::string& size) { + Action& a = queue_action(OP_COMMAND, FB_CMD_RESIZE_PARTITION ":" + partition + ":" + size); + a.msg = "Resizing '" + partition + "'"; +} + static int match(const char* str, const char** value, unsigned count) { unsigned n; |