summaryrefslogtreecommitdiff
path: root/ubi-utils/include/libubi.h
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-01-25 23:31:49 -0800
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-01-27 16:55:24 +0200
commit780ebf0db71429b508ac64b3133f8e4901f64733 (patch)
tree00446cc75d4b514e8873ce13f17e78a3bd06442b /ubi-utils/include/libubi.h
parentbacf173c87a936858125d3248067329c5b069e58 (diff)
libubi: make `ubi_dev_present()' a library function
We will use this function in ubinfo. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'ubi-utils/include/libubi.h')
-rw-r--r--ubi-utils/include/libubi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ubi-utils/include/libubi.h b/ubi-utils/include/libubi.h
index 02017e8..dc03d02 100644
--- a/ubi-utils/include/libubi.h
+++ b/ubi-utils/include/libubi.h
@@ -346,6 +346,15 @@ int ubi_get_dev_info(libubi_t desc, const char *node,
struct ubi_dev_info *info);
/**
+ * ubi_dev_present - check whether an UBI device is present.
+ * @desc: UBI library descriptor
+ * @dev_num: UBI device number to check
+ *
+ * This function returns %1 if UBI device is present and %0 if not.
+ */
+int ubi_dev_present(libubi_t desc, int dev_num);
+
+/**
* ubi_get_dev_info1 - get UBI device information.
* @desc: UBI library descriptor
* @dev_num: UBI device number to fetch information about