diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-04-20 18:14:37 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-04-20 18:14:37 +0300 |
commit | 1e9b0691a9c52f8b56abc10a214a8aaa228b361b (patch) | |
tree | 0a6c23bcbcca951b69a664e1367817aeda59ca0f /ubi-utils/new-utils/include/libubi.h | |
parent | 49953500edc32e949b5f567fca67ed5430a68540 (diff) |
ubi-utils: various clean-ups and preparations
This patch introduces many clean-ups, nicifications and preparations
to the following ubiformat utility. There are also fixes.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/include/libubi.h')
-rw-r--r-- | ubi-utils/new-utils/include/libubi.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ubi-utils/new-utils/include/libubi.h b/ubi-utils/new-utils/include/libubi.h index 3e8c55a..0f5c9c8 100644 --- a/ubi-utils/new-utils/include/libubi.h +++ b/ubi-utils/new-utils/include/libubi.h @@ -195,6 +195,17 @@ void libubi_close(libubi_t desc); int ubi_get_info(libubi_t desc, struct ubi_info *info); /** + * mtd_num2ubi_dev - find UBI device by attached MTD device. + * @@desc: UBI library descriptor + * @mtd_num: MTD device number + * @dev_num: UBI device number is returned here + * + * This function finds UBI device to which MTD device @mtd_num is attached. + * Returns %0 if the UBI device was found and %-1 if not. + */ +int mtd_num2ubi_dev(libubi_t desc, int mtd_num, int *dev_num); + +/** * ubi_attach_mtd - attach MTD device to UBI. * @desc: UBI library descriptor * @node: name of the UBI control character device node |