From e6c387a96f6c3cae91e5bf1a6f7e6574cbe03b80 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 17 Apr 2008 15:53:35 +0300 Subject: Teach libubi_open not to prirnt error message ... when it is expected that UBI is not necessarily present Signed-off-by: Artem Bityutskiy --- ubi-utils/new-utils/include/libubi.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ubi-utils/new-utils/include') 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. -- cgit v1.2.3