summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/imghd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/imgtool/imghd.h')
-rw-r--r--src/tools/imgtool/imghd.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tools/imgtool/imghd.h b/src/tools/imgtool/imghd.h
index d4ae341af1e..c49e87fe8db 100644
--- a/src/tools/imgtool/imghd.h
+++ b/src/tools/imgtool/imghd.h
@@ -11,8 +11,17 @@
#ifndef IMGHD_H
#define IMGHD_H
+#include "imgterrs.h"
+
+#include "chd.h"
#include "harddisk.h"
+
+namespace imgtool
+{
+ class stream;
+}
+
struct mess_hard_disk_file
{
imgtool::stream *stream;
@@ -37,6 +46,6 @@ imgtoolerr_t imghd_read(struct mess_hard_disk_file *disk, uint32_t lbasector, vo
imgtoolerr_t imghd_write(struct mess_hard_disk_file *disk, uint32_t lbasector, const void *buffer);
/* gets the header from a hard disk */
-const hard_disk_info *imghd_get_header(struct mess_hard_disk_file *disk);
+const hard_disk_file::info &imghd_get_header(struct mess_hard_disk_file *disk);
#endif /* IMGHD_H */