summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorParide Legovini <pl@ninthfloor.org>2016-09-28 18:59:15 +0200
committerBert Münnich <ber.t@posteo.de>2016-09-28 19:27:48 +0200
commit86dc6860f9def64ad554a7c69eeae28203661e2c (patch)
treefc80e651e96c22990c941091985cd1e992403a1a /util.h
parentd69f39e3aad6a7c5fb110dabb068a7bbb2229750 (diff)
downloadnsxiv-86dc6860f9def64ad554a7c69eeae28203661e2c.tar.zst
Allow opening directories non-recursively
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.h b/util.h
index 91b76d1..8918f75 100644
--- a/util.h
+++ b/util.h
@@ -55,6 +55,7 @@ typedef struct {
DIR *dir;
char *name;
int d;
+ bool recursive;
char **stack;
int stcap;
@@ -71,7 +72,7 @@ void error(int, int, const char*, ...);
void size_readable(float*, const char**);
-int r_opendir(r_dir_t*, const char*);
+int r_opendir(r_dir_t*, const char*, bool);
int r_closedir(r_dir_t*);
char* r_readdir(r_dir_t*);
int r_mkdir(char*);