aboutsummaryrefslogtreecommitdiff
path: root/src/navigator.h
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@gmail.com>2016-05-01 14:40:54 +0200
committerDmitrij D. Czarkoff <czarkoff@gmail.com>2016-05-01 14:40:54 +0200
commit0e1d18a2d0f48243fc4e0d40515bb0f224f618f0 (patch)
treecb984b95afc544bb5a457c6d5799c6aacf7125af /src/navigator.h
parentaaab6d54a4cee653290d9cca59811e3f14217b7c (diff)
downloadimv-0e1d18a2d0f48243fc4e0d40515bb0f224f618f0.tar.gz
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.
Diffstat (limited to 'src/navigator.h')
-rw-r--r--src/navigator.h5
1 files changed, 3 insertions, 2 deletions
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