Merge tag 'u-boot-rockchip-20191124' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / include / image-sparse.h
index 72f4036d813d949fdacea72794eac2659fa17eaa..234c237b845fe592077d4be51e98ffe7cfb8ef3b 100644 (file)
@@ -22,6 +22,8 @@ struct sparse_storage {
        lbaint_t        (*reserve)(struct sparse_storage *info,
                                 lbaint_t blk,
                                 lbaint_t blkcnt);
+
+       void            (*mssg)(const char *str, char *response);
 };
 
 static inline int is_sparse_image(void *buf)
@@ -35,5 +37,5 @@ static inline int is_sparse_image(void *buf)
        return 0;
 }
 
-void write_sparse_image(struct sparse_storage *info, const char *part_name,
-                       void *data);
+int write_sparse_image(struct sparse_storage *info, const char *part_name,
+                      void *data, char *response);