summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/imgtool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/imgtool/imgtool.h')
-rw-r--r--src/tools/imgtool/imgtool.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tools/imgtool/imgtool.h b/src/tools/imgtool/imgtool.h
index ca8d19aed85..c7b59aafeee 100644
--- a/src/tools/imgtool/imgtool.h
+++ b/src/tools/imgtool/imgtool.h
@@ -95,7 +95,7 @@ namespace imgtool
public:
typedef std::unique_ptr<image> ptr;
- image(const imgtool_module &module, object_pool *pool, void *extra_bytes);
+ image(const imgtool_module &module);
~image();
static imgtoolerr_t identify_file(const char *filename, imgtool_module **modules, size_t count);
@@ -115,14 +115,12 @@ namespace imgtool
imgtoolerr_t write_block(uint64_t block, const void *buffer);
imgtoolerr_t clear_block(uint64_t block, uint8_t data);
imgtoolerr_t list_partitions(std::vector<imgtool::partition_info> &partitions);
- void *malloc(size_t size);
const imgtool_module &module() { return m_module; }
- void *extra_bytes() { return m_extra_bytes; }
+ void *extra_bytes() { return m_extra_bytes.get(); }
private:
const imgtool_module &m_module;
- object_pool *m_pool;
- void *m_extra_bytes;
+ std::unique_ptr<uint8_t[]> m_extra_bytes;
// because of an idiosyncrasy of how imgtool::image::internal_open() works, we are only "okay to close"
// by invoking the module's close function once internal_open() succeeds. the long term solution is