summaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/include
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-04-17 15:53:35 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-04-17 15:53:35 +0300
commite6c387a96f6c3cae91e5bf1a6f7e6574cbe03b80 (patch)
treeef8c4f2e88c740ef1d597d54f33199c5ae2550e1 /ubi-utils/new-utils/include
parentbcc87aa2d908389534394caa8659fd613817584f (diff)
Teach libubi_open not to prirnt error message
... when it is expected that UBI is not necessarily present Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/include')
-rw-r--r--ubi-utils/new-utils/include/libubi.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ubi-utils/new-utils/include/libubi.h b/ubi-utils/new-utils/include/libubi.h
index 7e0bfcd..3e8c55a 100644
--- a/ubi-utils/new-utils/include/libubi.h
+++ b/ubi-utils/new-utils/include/libubi.h
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * Author: Artem B. Bityutskiy
+ * Author: Artem Bityutskiy
*
* UBI (Unsorted Block Images) library.
*/
@@ -170,10 +170,13 @@ struct ubi_vol_info
/**
* libubi_open - open UBI library.
+ * @required: if non-zero, libubi will print an error messages if this UBI is
+ * not present in the system
+ *
* This function initializes and opens the UBI library and returns UBI library
* descriptor in case of success and %NULL in case of failure.
*/
-libubi_t libubi_open(void);
+libubi_t libubi_open(int required);
/**
* libubi_close - close UBI library.