From 0e1d18a2d0f48243fc4e0d40515bb0f224f618f0 Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Sun, 1 May 2016 14:40:54 +0200 Subject: Make imv_navigator_add() return an integer value In case of error return non-zero value instead of cleaning up navigator. This way main loop may do some more cleanup, or maybe even act differently. --- src/navigator.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/navigator.h') diff --git a/src/navigator.h b/src/navigator.h index 5933aa4..ac3cc59 100644 --- a/src/navigator.h +++ b/src/navigator.h @@ -41,8 +41,9 @@ void imv_navigator_destroy(struct imv_navigator *nav); /* Adds the given path to the navigator's internal list. * If a directory is given, all files within that directory are added. * An internal copy of path is made. - * If recursive is non-zero then subdirectories are recursed into. */ -void imv_navigator_add(struct imv_navigator *nav, const char *path, + * If recursive is non-zero then subdirectories are recursed into. + * Non-zero return code denotes failure. */ +int imv_navigator_add(struct imv_navigator *nav, const char *path, int recursive); /* Returns a read-only reference to the current path. The pointer is only -- cgit v1.2.3