summaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/include/libubi.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/new-utils/include/libubi.h')
-rw-r--r--ubi-utils/new-utils/include/libubi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ubi-utils/new-utils/include/libubi.h b/ubi-utils/new-utils/include/libubi.h
index 4308bed..1299e81 100644
--- a/ubi-utils/new-utils/include/libubi.h
+++ b/ubi-utils/new-utils/include/libubi.h
@@ -264,6 +264,18 @@ int ubi_mkvol(libubi_t desc, const char *node, struct ubi_mkvol_request *req);
*/
int ubi_rmvol(libubi_t desc, const char *node, int vol_id);
+
+/**
+ * ubi_rnvols - rename UBI volumes.
+ * @desc: UBI library descriptor
+ * @node: name of the UBI character device to remove a volume from
+ * @rnvol: description of volumes to rename
+ *
+ * This function removes volume @vol_id from UBI device @node and returns %0 in
+ * case of success and %-1 in case of failure.
+ */
+int ubi_rnvols(libubi_t desc, const char *node, struct ubi_rnvol_req *rnvol);
+
/**
* ubi_rsvol - re-size UBI volume.
* @desc: UBI library descriptor