diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-04-22 14:32:08 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-04-22 17:27:54 +0300 |
commit | e4d974bb63355d1fff92eaae4df5f0cdf3597dc3 (patch) | |
tree | bfba4f78f412a479e14cada6908140173d1f8a91 /ubi-utils/include | |
parent | 3ec498778b26134f82bca32c0dc0a71befc48f29 (diff) |
libubi: improve libubi_open interface
Remove the not very nice @required parameter, and add a
possibility to distinguish between real errors and
a situation when UBI is not present.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/include')
-rw-r--r-- | ubi-utils/include/libubi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ubi-utils/include/libubi.h b/ubi-utils/include/libubi.h index 71a78a3..bc3404c 100644 --- a/ubi-utils/include/libubi.h +++ b/ubi-utils/include/libubi.h @@ -170,13 +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. + * descriptor in case of success and %NULL in case of failure. In case of + * failure, errno contains the error code or zero if UBI is not present in the + * system. */ -libubi_t libubi_open(int required); +libubi_t libubi_open(void); /** * libubi_close - close UBI library. |