summaryrefslogtreecommitdiff
path: root/index.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-07-26 17:53:55 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-07-26 17:53:55 -0300
commit8c633723964993a2ce6fb1717823caf46514a167 (patch)
tree5bb4a59cc083364c24eb14d586f4be14bef85951 /index.h
parent4fc5243fa6c249c1f1e118f95f42870b7ccf8c6e (diff)
index: Add `index_path_exists()`
This function checks if the converted path of a given index exists, or not. It also returns the converted path in `path` if the path exists.
Diffstat (limited to 'index.h')
-rw-r--r--index.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.h b/index.h
index d579d98..4b37534 100644
--- a/index.h
+++ b/index.h
@@ -17,5 +17,6 @@ struct index {
extern int is_valid_index(index *idx);
extern char *make_index_path(const char *root, index *idx, int path_type);
extern char *index_to_str(index *idx);
+extern int index_path_exists(index *idx, const char *root, char **path);
#endif