summaryrefslogtreecommitdiff
path: root/browse.h
diff options
context:
space:
mode:
Diffstat (limited to 'browse.h')
-rw-r--r--browse.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/browse.h b/browse.h
index 68d8c45..144eada 100644
--- a/browse.h
+++ b/browse.h
@@ -33,9 +33,20 @@
#include <kcgi.h>
+#include "file.h"
+
#define BROWSE_URL "browse"
/*
+ * Build the URL to browse to a directory and assign it to the file's
+ * action_url.
+ * All parameters are required.
+ * Returns the length of the created URL, or 0 in case of failure.
+ */
+size_t
+build_browse_url(struct kreq *, struct file *);
+
+/*
* Print a browse page that allows to browse through the folder hierarchy.
* The KCGI request is required.
*/