summaryrefslogtreecommitdiff
path: root/ubi-utils/include/libubigen.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-06-14 15:19:12 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-06-14 15:22:39 +0300
commitc9c3eb5308bc235158547a31edc436cd05efde5c (patch)
tree793ed7e2e3684774611542721422a990ad5e6c67 /ubi-utils/include/libubigen.h
parent3fcc99577e12f909fdd013f3d3d5564f761e673a (diff)
libubigen: make init_vid_hdr externally visible
ubi-tests need it. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/include/libubigen.h')
-rw-r--r--ubi-utils/include/libubigen.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ubi-utils/include/libubigen.h b/ubi-utils/include/libubigen.h
index d4bbe3e..c25ac20 100644
--- a/ubi-utils/include/libubigen.h
+++ b/ubi-utils/include/libubigen.h
@@ -125,6 +125,23 @@ void ubigen_init_ec_hdr(const struct ubigen_info *ui,
struct ubi_ec_hdr *hdr, long long ec);
/**
+ * ubigen_init_vid_hdr - initialize VID header.
+ * @ui: libubigen information
+ * @vi: volume information
+ * @hdr: the VID header to initialize
+ * @lnum: logical eraseblock number
+ * @data: the contents of the LEB (static volumes only)
+ * @data_size: amount of data in this LEB (static volumes only)
+ *
+ * Note, @used_ebs, @data and @data_size are ignored in case of dynamic
+ * volumes.
+ */
+void ubigen_init_vid_hdr(const struct ubigen_info *ui,
+ const struct ubigen_vol_info *vi,
+ struct ubi_vid_hdr *hdr, int lnum,
+ const void *data, int data_size);
+
+/**
* ubigen_add_volume - add a volume to the volume table.
* @ui: libubigen information
* @vi: volume information