aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/serd/serd.h')
-rw-r--r--include/serd/serd.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 72a4c3fa..362de28d 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -256,6 +256,19 @@ size_t
serd_strlen(const char* SERD_NONNULL str, SerdNodeFlags* SERD_NULLABLE flags);
/**
+ Return `path` as a canonical absolute path.
+
+ This expands all symbolic links, relative references, and removes extra
+ directory separators. Null is returned on error, including if the path does
+ not exist.
+
+ @return A new string that must be freed with serd_free(), or null.
+*/
+SERD_API
+char* SERD_NULLABLE
+serd_canonical_path(const char* SERD_NONNULL path);
+
+/**
@}
@defgroup serd_io_functions I/O Function Types
@{