summaryrefslogtreecommitdiff
path: root/ubi-utils/include
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/include')
-rw-r--r--ubi-utils/include/libscan.h1
-rw-r--r--ubi-utils/include/libubigen.h5
2 files changed, 4 insertions, 2 deletions
diff --git a/ubi-utils/include/libscan.h b/ubi-utils/include/libscan.h
index 3ba291f..a2b8657 100644
--- a/ubi-utils/include/libscan.h
+++ b/ubi-utils/include/libscan.h
@@ -111,4 +111,3 @@ void ubi_scan_free(struct ubi_scan_info *si);
#endif
#endif /* __LIBSCAN_H__ */
-
diff --git a/ubi-utils/include/libubigen.h b/ubi-utils/include/libubigen.h
index 34cd91a..2b567d3 100644
--- a/ubi-utils/include/libubigen.h
+++ b/ubi-utils/include/libubigen.h
@@ -42,6 +42,7 @@ extern "C" {
* @ubi_ver: UBI version
* @vtbl_size: volume table size
* @max_volumes: maximum amount of volumes
+ * @image_seq: UBI image sequence number
*/
struct ubigen_info
{
@@ -53,6 +54,7 @@ struct ubigen_info
int ubi_ver;
int vtbl_size;
int max_volumes;
+ uint32_t image_seq;
};
/**
@@ -89,7 +91,8 @@ struct ubigen_vol_info
};
void ubigen_info_init(struct ubigen_info *ui, int peb_size, int min_io_size,
- int subpage_size, int vid_hdr_offs, int ubi_ver);
+ int subpage_size, int vid_hdr_offs, int ubi_ver,
+ uint32_t image_seq);
struct ubi_vtbl_record *ubigen_create_empty_vtbl(const struct ubigen_info *ui);
void ubigen_init_ec_hdr(const struct ubigen_info *ui,
struct ubi_ec_hdr *hdr, long long ec);