summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'file.h')
-rw-r--r--file.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/file.h b/file.h
index a478e98..46a4f5c 100644
--- a/file.h
+++ b/file.h
@@ -70,6 +70,12 @@ char *
file_get_basename(const struct file *);
/*
+ * Get the parent file of the given file. Returns NULLL in case of error.
+ */
+struct file *
+file_get_parent(const struct file *);
+
+/*
* Build the data path (on the filesystem) for a file and optionally append
* another component to the path. If no additional component is needed, it
* should be NULL.