summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-12-24 11:52:50 +0100
committerVincent Douillet <vincent@vdouillet.fr>2024-12-26 10:49:13 +0100
commit2e04b2c23c66a42372d0ecaea2b0f4b2c7b7c7e5 (patch)
tree9249bb0e9792a11bb27df78a4d93a0b3c0be0b33 /file.h
parent878cd6e8792d5ac03eea59fec9fe8e325440d50c (diff)
delete files
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.